public class DatabaseTableConfiguration extends AbstractConfiguration
Configuration interface to provide all the necessary
parameters to initialize the JDBC Connector.AbstractConfiguration.ConfigurationChangeCallback| Modifier and Type | Field and Description |
|---|---|
boolean |
allNative
Some JDBC drivers (ex: DerbyDB) may need to access all the datatypes with native types
to get correct value.
|
boolean |
enableEmptyString
The empty string setting
allow conversion of a null into an empty string for not-null char columns
|
boolean |
nativeTimestamps
Some JDBC drivers (ex: Oracle) may not be able to get correct string representation of
TIMESTAMP data type of the column from the database table.
|
boolean |
rethrowAllSQLExceptions
Some database drivers will throw the SQLError when setting the
parameters to the statement with zero ErrorCode.
|
| Constructor and Description |
|---|
DatabaseTableConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatUrlTemplate()
Format a URL given a template.
|
String |
getChangeLogColumn()
Log Column is required be SyncOp
|
String |
getDatabase() |
String |
getDatasource()
Return the datasource
|
String |
getHost()
NameQoute getter
|
String |
getJdbcDriver() |
String |
getJdbcUrlTemplate()
Return the jdbcUrlTemplate
|
String[] |
getJndiProperties()
Return the jndiFactory
|
String |
getKeyColumn()
Key Column getter
|
String |
getMessage(String key)
Format the connector message
|
String |
getMessage(String key,
Object... objects)
Format message with arguments
|
GuardedString |
getPassword() |
String |
getPasswordColumn()
Password Column getter
|
String |
getPort()
NameQoute getter
|
String |
getQuoting()
NameQoute getter
|
boolean |
getSuppressPassword()
If set to true then the password will not be returned.
|
String |
getTable()
The table name
|
String |
getUser() |
String |
getValidConnectionQuery()
connection validation query getter
|
boolean |
isAllNative()
Accessor for the allNativeproperty
|
boolean |
isEnableEmptyString()
Accessor for the enableEmptyString property
|
boolean |
isNativeTimestamps()
Accessor for the nativeTimestamps property
|
boolean |
isRethrowAllSQLExceptions()
Accessor for the rethrowAllSQLExceptions property
|
void |
setAllNative(boolean allNative)
Setter for the allNative property.
|
void |
setChangeLogColumn(String value) |
void |
setDatabase(String value) |
void |
setDatasource(String value) |
void |
setEnableEmptyString(boolean enableEmptyString)
Setter for the enableEmptyString property.
|
void |
setHost(String value)
NameQuote Setter
|
void |
setJdbcDriver(String value) |
void |
setJdbcUrlTemplate(String value) |
void |
setJndiProperties(String[] value) |
void |
setKeyColumn(String keyColumn)
Key Column setter
|
void |
setNativeTimestamps(boolean nativeTimestamps)
Setter for the nativeTimestamps property.
|
void |
setPassword(GuardedString value) |
void |
setPasswordColumn(String value)
Password Column setter
|
void |
setPort(String value)
NameQuote Setter
|
void |
setQuoting(String value)
NameQuote Setter
|
void |
setRethrowAllSQLExceptions(boolean rethrowAllSQLExceptions)
Setter for the rethrowAllSQLExceptions property.
|
void |
setSuppressPassword(boolean suppressPassword) |
void |
setTable(String table)
Table setter
|
void |
setUser(String value) |
void |
setValidConnectionQuery(String value)
Connection validation query setter
|
void |
validate()
Attempt to validate the arguments added to the Configuration.
|
addChangeCallback, getConnectorMessages, notifyConfigurationUpdate, setConnectorMessagespublic boolean enableEmptyString
public boolean rethrowAllSQLExceptions
public boolean nativeTimestamps
public boolean allNative
public String getQuoting()
public void setQuoting(String value)
value - public String getHost()
public void setHost(String value)
value - public String getPort()
public void setPort(String value)
value - public String getUser()
public void setUser(String value)
value - public GuardedString getPassword()
public void setPassword(GuardedString value)
value - public String getDatabase()
public void setDatabase(String value)
value - public String getTable()
public void setTable(String table)
table - name valuepublic String getKeyColumn()
public void setKeyColumn(String keyColumn)
keyColumn - valuepublic String getPasswordColumn()
public void setPasswordColumn(String value)
value - public String getJdbcDriver()
public void setJdbcDriver(String value)
value - public String getJdbcUrlTemplate()
public void setJdbcUrlTemplate(String value)
value - public boolean isEnableEmptyString()
public void setEnableEmptyString(boolean enableEmptyString)
enableEmptyString - the enableEmptyString to setpublic boolean isRethrowAllSQLExceptions()
public void setRethrowAllSQLExceptions(boolean rethrowAllSQLExceptions)
rethrowAllSQLExceptions - the rethrowAllSQLExceptions to setpublic boolean isNativeTimestamps()
public void setNativeTimestamps(boolean nativeTimestamps)
nativeTimestamps - the nativeTimestamps to setpublic boolean isAllNative()
public void setAllNative(boolean allNative)
allNative - the allNative to setpublic String getValidConnectionQuery()
public void setValidConnectionQuery(String value)
value - public String getChangeLogColumn()
public void setChangeLogColumn(String value)
value - public String getDatasource()
public void setDatasource(String value)
value - public String[] getJndiProperties()
public void setJndiProperties(String[] value)
value - public boolean getSuppressPassword()
public void setSuppressPassword(boolean suppressPassword)
public void validate()
public String formatUrlTemplate()
public String getMessage(String key)
key - key of the messageCopyright © 2018–2025. All rights reserved.