public final class Alias extends Object implements ConnectionParamsProvider<Alias>, ConnectionParams, Serializable, DataProvider<String>, DataConsumer<String>
Modifier and Type | Field and Description |
---|---|
static String |
ENCODING_PROP
The encoding property.
|
static String |
OVERRIDE_SUPPORST_READ_PROP
The Constant OVERRIDE_SUPPORST_READ_PROP.
|
static String |
OVERRIDE_SUPPORST_WRITE_PROP
The Constant OVERRIDE_SUPPORST_WRITE_PROP.
|
Constructor and Description |
---|
Alias()
Instantiates a new Alias.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String key,
String value)
Adds the parameter (a key=value pair) if it does not exist.
|
void |
askCredentials(Runnable callBack)
Checks if system need to ask credentials and if it is instantiated credentials dialog.
|
boolean |
checkIFF(Object value)
Check IFF tag.
|
String |
consume(DataProvider<?> provider)
Consumes data from the provider.
|
ConnectionParams |
copy(String id)
Copy.
|
boolean |
equals(Object obj) |
String |
getCatalog()
Gets the catalog.
|
Object |
getCData()
Gets the cdata.
|
Alias |
getConnectionParams()
Gets the connection parameters.
|
String |
getConnectorClassName()
Gets the connector class name.
|
String |
getData()
Gets the data.
|
String |
getDatabase()
Gets the database.
|
String |
getDefaultFields()
Gets the template.
|
String |
getEncoding()
Gets the encoding.
|
String |
getEtlDriverClassname()
Gets the etl driver classname.
|
int |
getFetchSize()
Gets the fetch size.
|
String |
getInitSql()
Gets the sql which will be executed right after JDBC connection is
established.
|
IoProcessor |
getIoProcessor()
Gets the io processor.
|
String |
getJdbcDriverClass()
Gets the name of the driver for the JDBC database connection.
|
int |
getMaxFieldSize()
Gets the max field size.
|
int |
getMaxRows()
Gets the max rows.
|
String |
getMetadataDriverClassname()
Gets the metadata driver classname.
|
String |
getName()
Gets name of the alias.
|
String |
getOriginalUrl()
Gets the original url without replacing url tokens.
|
String |
getParams()
Gets the additional parameters.
|
Alias |
getParentAlias()
Gets the parent alias.
|
String |
getParentConnectorClassname()
Gets the parent connector classname.
|
String |
getParentEtlDriverClassname()
Gets the parent etl driver classname.
|
String |
getParentJdbcDriverClass()
Gets the parent jdbc driver class.
|
String |
getParentMetadataDriverClassname()
Gets the parent metadata driver classname.
|
String |
getParentTransport()
Gets the parent transport.
|
String |
getParentUrlPattern()
Gets the parent url pattern.
|
String |
getPassword()
Gets the password for the JDBC database connection.
|
String |
getPersistedId()
Gets the persisted id.
|
String |
getQuery()
Gets the query which transfrom dataset.
|
String |
getResponseFileName()
Gets the response file name.
|
String |
getResponseHttpCodeVariable()
Gets the response http code variable.
|
String |
getSchema()
Gets the schema.
|
int |
getStringFieldSizeMultiplier()
Gets the string field size multiplier.
|
String |
getTransport()
Gets the transport protocol suh as file, ftp, sftp.
|
String |
getUniqueDataId()
Gets the unique data id.
|
String |
getUniqueId()
Gets the unique id.
|
String |
getUniqueProperty()
Gets the unique property.
|
String |
getUrl()
Gets the url.
|
String |
getUserId()
Gets the user id for the JDBC database connection.
|
int |
hashCode() |
boolean |
isAlwaysEncloseTableAndColumnsInQuotes()
Always enclose table and columns in quotes.
|
boolean |
isAutoCommit()
Checks if "auto commit" flag set.
|
boolean |
isCurrentOnly()
Checks if is current only.
|
boolean |
isDbConnection()
Checks if it is a database connection.
|
boolean |
isLocalCommit()
Checks if local commit field is set for the connection.
|
boolean |
isNoOwner()
Checks if is no owner.
|
boolean |
isReadOnly()
Checks if is read only.
|
boolean |
isVarcharOnly()
Checks if all fields are varchars only.
|
void |
setAlwaysEncloseTableAndColumnsInQuotes(boolean value)
Sets the always enclose table and columns in quotes.
|
void |
setAutoCommit(boolean value)
Sets the auto commit flag.
|
void |
setCatalog(String value)
Sets the catalog.
|
void |
setCData(Object value)
Sets the cdata.
|
void |
setConnectorClassName(String value)
Sets the connector class name.
|
void |
setCurrentOnly(boolean currentOnly)
Sets the current only.
|
void |
setData(String data)
Sets the data.
|
void |
setDatabase(String database)
Sets the database.
|
void |
setDefaultFields(String fields)
Sets the template.
|
void |
setEtlDriverClassname(String etlDriverClassname)
Sets the etl driver classname.
|
void |
setFetchSize(int fetchSize)
Sets the fetch size.
|
void |
setInitSql(String value)
Sets the sql which will be executed right after JDBC connection is
established.
|
void |
setJdbcDriverClass(String value)
Sets the class name of the driver for the JDBC database connection.
|
void |
setLocalCommit(boolean value)
Sets the value for local commit field.
|
void |
setMaxFieldSize(int maxFieldSize)
Sets the max field size.
|
void |
setMaxRows(int maxRows)
Sets the max rows.
|
void |
setMetadataDriverClassname(String metadataDriverClassname)
Sets the metadata driver classname.
|
void |
setName(String value)
Sets the name of the alias.
|
void |
setNoOwner(boolean noOwner)
Sets the no owner.
|
void |
setParams(String value)
Sets the additional parameters for the connection.
|
void |
setParentConnectorClassname(String parentConnectorClassname)
Sets the parent connector classname.
|
void |
setParentEtlDriverClassname(String parentEtlDriverClassname)
Sets the parent etl driver classname.
|
void |
setParentJdbcDriverClass(String parentJdbcDriverClass)
Sets the parent jdbc driver class.
|
void |
setParentMetadataDriverClassname(String parentMetadataDriverClassname)
Sets the parent metadata driver classname.
|
void |
setParentTransport(String parentTransport)
Sets the parent transport.
|
void |
setParentUrlPattern(String parentUrlPattern)
Sets the parent url pattern.
|
void |
setPassword(String value)
Sets the password of the JDBC database connection.
|
void |
setPersistedId(String value)
Sets the persisted id.
|
void |
setQuery(String query)
Sets the query which transform dataset.
|
void |
setReadOnly(boolean readOnly)
Sets the read only.
|
void |
setResponseFileName(String responseFileName)
Sets the response file name.
|
void |
setResponseHttpCodeVariable(String responseHttpCodeVariable)
Sets the response http code variable.
|
void |
setSchema(String value)
Sets the schema.
|
void |
setStringFieldSizeMultiplier(int multiplier)
Sets the sclale string field size.
|
void |
setTransport(String value)
Sets the transport protocol such as file, ftp, sftp.
|
void |
setUniqueId(String value)
Sets the unique id.
|
void |
setUrl(String value)
Sets the url for the JDBC database connection.
|
void |
setUserId(String value)
Sets the user id of the JDBC database connection.
|
void |
setVarcharOnly(boolean isVarcharOnly)
Sets the value of the varchar only flag.
|
public static final String OVERRIDE_SUPPORST_WRITE_PROP
public static final String OVERRIDE_SUPPORST_READ_PROP
public static final String ENCODING_PROP
public Alias getParentAlias()
public void askCredentials(Runnable callBack)
ConnectionParamsProvider
askCredentials
in interface ConnectionParamsProvider<Alias>
callBack
- the call back methodpublic ConnectionParams copy(String id)
ConnectionParams
copy
in interface ConnectionParams
id
- the unique idpublic boolean equals(Object obj)
equals
in class Object
public String getCatalog()
public Object getCData()
public Alias getConnectionParams()
ConnectionParamsProvider
getConnectionParams
in interface ConnectionParamsProvider<Alias>
public String getConnectorClassName()
public String getEtlDriverClassname()
public String getInitSql()
Example:
init(); insert into test values(1);
public IoProcessor getIoProcessor()
public String getJdbcDriverClass()
Example:
oracle.jdbc.driver.OracleDriver
public String getMetadataDriverClassname()
public String getName()
Example:
informix etl
getName
in interface ConnectionParams
public String getOriginalUrl()
public String getParams()
Example:
SERVER=ol_svr_custom;DB=etl
public String getPassword()
NOTE: password is not encrypted
public String getPersistedId()
public String getSchema()
public String getTransport()
public String getUniqueId()
ConnectionParams
getUniqueId
in interface ConnectionParams
public String getUniqueProperty()
ConnectionParams
getUniqueProperty
in interface ConnectionParams
public String getUrl()
Example:
jdbc:oracle:thin:@dev:1521:txn
{app.data}/test.xml
public String getUserId()
public int hashCode()
hashCode
in class Object
public boolean isAutoCommit()
ConnectionParams
isAutoCommit
in interface ConnectionParams
public boolean isDbConnection()
ConnectionParams
isDbConnection
in interface ConnectionParams
public boolean isLocalCommit()
true
, if local commit field set for the connectionpublic void setAutoCommit(boolean value)
value
- the new auto commit flagpublic void setCatalog(String value)
value
- the new catalogpublic void setCData(Object value)
value
- the new cdatapublic void setConnectorClassName(String value)
value
- the new connector class namepublic void setEtlDriverClassname(String etlDriverClassname)
etlDriverClassname
- the etlDriverClassname to setpublic void setInitSql(String value)
Example:
call init(); insert into test values(1);
value
- The new init sqlpublic void setJdbcDriverClass(String value)
Example:
oracle.jdbc.driver.OracleDriver
value
- The new class name of the driverpublic void setLocalCommit(boolean value)
value
- The new local commit valuepublic void setMetadataDriverClassname(String metadataDriverClassname)
metadataDriverClassname
- the metadataDriverClassname to setpublic void setName(String value)
Example:informix etl
value
- The new name of the aliaspublic void setParams(String value)
Example:SERVER=ol_svr_custom;DB=etl
value
- The new additional parameterspublic void setPassword(String value)
NOTE: password is not encrypted
value
- The new passwordpublic void setPersistedId(String value)
value
- the new persisted idpublic void setSchema(String value)
value
- the new schemapublic void setTransport(String value)
value
- the new transport protocolpublic void setUniqueId(String value)
value
- the new unique idpublic void setUrl(String value)
Example:
jdbc:oracle:thin:@dev:1521:txn
value
- The new urlpublic void setUserId(String value)
value
- The new user idpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- the new read onlypublic String getData()
DataProvider
getData
in interface DataProvider<String>
public void setData(String data)
data
- the new datapublic String getUniqueDataId()
DataProvider
DataConsumer
for IFF identificationgetUniqueDataId
in interface DataProvider<String>
public boolean checkIFF(Object value)
DataConsumer
checkIFF
in interface DataConsumer<String>
value
- the valuepublic String getEncoding()
DataConsumer
getEncoding
in interface DataConsumer<String>
public String consume(DataProvider<?> provider)
DataConsumer
consume
in interface DataConsumer<String>
provider
- the providerpublic String getDefaultFields()
public void setDefaultFields(String fields)
fields
- the new templatepublic String getQuery()
public void setQuery(String query)
query
- the new querypublic void addParameter(String key, String value)
key
- the keyvalue
- the valuepublic String getResponseFileName()
public void setResponseFileName(String responseFileName)
responseFileName
- the new response file namepublic int getMaxRows()
public void setMaxRows(int maxRows)
maxRows
- the new max rowspublic int getFetchSize()
public void setFetchSize(int fetchSize)
fetchSize
- the new fetch sizepublic boolean isAlwaysEncloseTableAndColumnsInQuotes()
public void setAlwaysEncloseTableAndColumnsInQuotes(boolean value)
value
- the new always enclose table and columns in quotespublic int getMaxFieldSize()
public void setMaxFieldSize(int maxFieldSize)
maxFieldSize
- the new max field sizepublic String getParentEtlDriverClassname()
public void setParentEtlDriverClassname(String parentEtlDriverClassname)
parentEtlDriverClassname
- the new parent etl driver classnamepublic String getParentMetadataDriverClassname()
public void setParentMetadataDriverClassname(String parentMetadataDriverClassname)
parentMetadataDriverClassname
- the new parent metadata driver classnamepublic String getParentJdbcDriverClass()
public void setParentJdbcDriverClass(String parentJdbcDriverClass)
parentJdbcDriverClass
- the new parent jdbc driver classpublic String getParentUrlPattern()
public void setParentUrlPattern(String parentUrlPattern)
parentUrlPattern
- the new parent url patternpublic String getParentConnectorClassname()
public void setParentConnectorClassname(String parentConnectorClassname)
parentConnectorClassname
- the new parent connector classnamepublic String getParentTransport()
public void setParentTransport(String parentTransport)
parentTransport
- the new parent transportpublic String getResponseHttpCodeVariable()
public void setResponseHttpCodeVariable(String responseHttpCodeVariable)
responseHttpCodeVariable
- the new response http code variablepublic String getDatabase()
public void setDatabase(String database)
database
- the new databasepublic boolean isCurrentOnly()
public void setCurrentOnly(boolean currentOnly)
currentOnly
- the new current onlypublic boolean isNoOwner()
public void setNoOwner(boolean noOwner)
noOwner
- the new no ownerpublic int getStringFieldSizeMultiplier()
public void setStringFieldSizeMultiplier(int multiplier)
multiplier
- the new multiplierpublic boolean isVarcharOnly()
public void setVarcharOnly(boolean isVarcharOnly)
isVarcharOnly
- booleanCopyright © 2010-2020 Toolsverse. All Rights Reserved.