public class SqlConnectorParams extends DataSetConnectorParams
DataSetConnectorParams
used by SqlConnector
.SqlConnector
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ENCODING_PROP
The encoding property.
|
static String |
PREFIX
The PREFIX.
|
static String |
TABLE_NAME_PROP
The TABLE NAME property.
|
AUTO_COMMIT_PROP, FILE_NAME_PROP, MAX_ROWS_EXCEEDED_EXCEPTION, PASSWORD_PROP, PROPERTIES_PROP, TRANSPORT_PROP, USE_SELECTED_PROP, USER_ID_PROP
Constructor and Description |
---|
SqlConnectorParams()
Instantiates a new SqlConnectorParams.
|
SqlConnectorParams(ResultSet rs,
CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep)
Instantiates a new SqlConnectorParams.
|
Modifier and Type | Method and Description |
---|---|
Alias |
alias2alias(Alias source)
Creates an new Alias object using given source alias.
|
SqlConnectorParams |
copy()
Create a copy of this object.
|
String |
getEncoding()
Gets the char encoding.
|
ListHashMap<String,String> |
getFieldsMapping()
Gets the fields mapping.
|
String |
getFileName()
Gets the file name.
|
String |
getFileName(String name)
Gets the file name.
|
String |
getFilterByField()
Gets the field name to filter by.
|
String |
getFilterByFieldValue()
Gets the field value to filter by.
|
String |
getInitStr(String name,
Alias alias)
Gets the initialization string using given alias.
|
String |
getPropsHint()
Gets the hint displayed next to the properties editor.
|
String |
getPropsWizardResource(Driver driver,
String connectionDriver)
Gets the name of the xml file used to create a wizard for editing
properties.
|
String |
getRealFileName()
Gets the real file name.
|
ResultSet |
getResultSet()
Gets the result set.
|
String |
getTableName()
Gets the table name.
|
Writer |
getWriter()
Gets the writer.
|
void |
init(Alias alis)
Initializes itself using given alias.
|
void |
init(Map<String,String> props)
Initializes itself using given properties.
|
void |
init(ObjectStorage storage)
Initializes itself using given object storage.
|
boolean |
isCheckKeyField()
Checks if "check key field" flag was set.
|
boolean |
isFileNameRequired()
Checks if file name is required.
|
boolean |
isObjectsAsStrings()
Checks if objects such as arrays, structs, etc should deserialized as strings.
|
boolean |
isUnique()
Checks if is unique.
|
boolean |
needToEncode()
Checks if char values need to be encoded.
|
void |
setCheckKeyField(boolean value)
Sets the "check key field: flag.
|
void |
setEncoding(String value)
Sets the encoding.
|
void |
setFieldsMapping(ListHashMap<String,String> value)
Sets the fields mapping.
|
void |
setFileName(String value)
Sets the file name.
|
void |
setFileNameRequired(boolean value)
Sets the "file name required" flag.
|
void |
setFilterByField(String value)
Sets the field name to filter by.
|
void |
setFilterByFieldValue(String value)
Sets the field value to filter by.
|
void |
setObjectsAsStrings(boolean objectsAsStrings)
Sets the flag "objects as strings".
|
void |
setRealFileName(String value)
Sets the real file name.
|
void |
setResultSet(ResultSet value)
Sets the result set.
|
void |
setTableName(String value)
Sets the table name.
|
void |
setUnique(boolean value)
Sets the "is unique" flag.
|
void |
setWriter(Writer value)
Sets the writer.
|
getAddFieldValueCallback, getAddRecordCallback, getAfterCallback, getBeforeCallback, getCacheProvider, getCrudAction, getInputStream, getIoProcessor, getLogStep, getMaxRows, getOutputStream, getParams, getReadTracker, getTarget, getTransactionMonitor, hasAddRecordCallback, isCleanUpPersistOccured, isCloseInput, isCloseOutput, isEnabled, isIgnoreEmpty, isIgnoreNoRecords, isMaxRowsExceededException, isPostPersistOccured, isPrePersistOccured, isReadOnlyMetadata, isSilent, isStreaming, prepareForPopulate, setAddFieldValueCallback, setAddRecordCallback, setAfterCallback, setBeforeCallback, setCacheProvider, setCleanUpPersistOccurred, setCloseInput, setCloseOutput, setCrudAction, setEnabled, setHasAddRecordCallback, setIgnoreEmpty, setIgnoreNoRecords, setInputStream, setIoProcessor, setLogStep, setMaxRows, setOutputStream, setPostPersistOccured, setPrePersistOccured, setReadOnlyMetadata, setReadTracker, setSilent, setTarget, setTransactionMonitor, setUseSelectedDataSet, useSelectedDataSet
public static final String PREFIX
public static final String TABLE_NAME_PROP
public static final String ENCODING_PROP
public SqlConnectorParams()
public SqlConnectorParams(ResultSet rs, CacheProvider<String,Object> cacheProvider, boolean silent, int logStep)
rs
- the result setcacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log steppublic Alias alias2alias(Alias source) throws Exception
DataSetConnectorParams
alias2alias
in class DataSetConnectorParams
source
- the source aliasException
- in case of any errorpublic SqlConnectorParams copy()
DataSetConnectorParams
copy
in class DataSetConnectorParams
public String getEncoding()
public ListHashMap<String,String> getFieldsMapping()
public String getFileName()
public String getFileName(String name)
name
- the namepublic String getFilterByField()
public String getFilterByFieldValue()
public String getInitStr(String name, Alias alias)
DataSetConnectorParams
getInitStr
in class DataSetConnectorParams
name
- the namealias
- the aliaspublic String getPropsHint()
DataSetConnectorParams
getPropsHint
in class DataSetConnectorParams
public String getPropsWizardResource(Driver driver, String connectionDriver)
DataSetConnectorParams
getPropsWizardResource
in class DataSetConnectorParams
driver
- the ETL driverconnectionDriver
- the connection driverpublic String getRealFileName()
public ResultSet getResultSet()
public String getTableName()
public Writer getWriter()
public void init(Alias alis)
DataSetConnectorParams
init
in class DataSetConnectorParams
alis
- the aliaspublic void init(Map<String,String> props)
DataSetConnectorParams
init
in class DataSetConnectorParams
props
- the propertiespublic void init(ObjectStorage storage)
DataSetConnectorParams
init
in class DataSetConnectorParams
storage
- the object storagepublic boolean isCheckKeyField()
public boolean isFileNameRequired()
public boolean isUnique()
public boolean needToEncode()
public void setCheckKeyField(boolean value)
value
- the new value for the "check key field" flagpublic void setEncoding(String value)
value
- the new HTML encodingpublic void setFieldsMapping(ListHashMap<String,String> value)
value
- the fields mappingpublic void setFileName(String value)
value
- the new file namepublic void setFileNameRequired(boolean value)
value
- the new value for the "file name required" flagpublic void setFilterByField(String value)
value
- the new field name to filter bypublic void setFilterByFieldValue(String value)
value
- the new field value to filter bypublic void setRealFileName(String value)
value
- the new real file namepublic void setResultSet(ResultSet value)
value
- the new result setpublic void setTableName(String value)
value
- the new table namepublic void setUnique(boolean value)
value
- the new value for the "is unique" flagpublic void setWriter(Writer value)
value
- the new writerpublic boolean isObjectsAsStrings()
public void setObjectsAsStrings(boolean objectsAsStrings)
objectsAsStrings
- the new value of the "objects as strings" flagCopyright © 2010-2020 Toolsverse. All Rights Reserved.