public abstract class ConnectionSourceSkeleton extends ComponentBase implements ConnectionSource
repository
HSQL_DIALECT, MSSQL_DIALECT, MYSQL_DIALECT, ORACLE_DIALECT, POSTGRES_DIALECT, UNKNOWN_DIALECT
Constructor and Description |
---|
ConnectionSourceSkeleton() |
Modifier and Type | Method and Description |
---|---|
void |
discoverConnnectionProperties()
Learn relevant information about this connection source.
|
String |
getOverriddenSupportsGetGeneratedKeys()
Returns the "overridden" value of "supportsGetGeneratedKeys" property of
the JDBC driver.
|
String |
getPassword()
Get the password for this connection source.
|
int |
getSQLDialectCode()
Get the SQL dialect that should be used for this connection.
|
String |
getUser()
Get the user for this connection source.
|
void |
setOverriddenSupportsGetGeneratedKeys(String overriddenSupportsGetGeneratedKeys)
Sets the "overridden" value of "supportsGetGeneratedKeys" property of the
JDBC driver.
|
void |
setPassword(String password)
Sets the password.
|
void |
setUser(String username)
Sets the username.
|
boolean |
supportsBatchUpdates()
Does this connection support batch updates?
|
boolean |
supportsGetGeneratedKeys()
Does this connection support the JDBC Connection.getGeneratedKeys method?
|
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection
setLoggerRepository
public void discoverConnnectionProperties()
public final boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys
in interface ConnectionSource
public final int getSQLDialectCode()
ConnectionSource
getSQLDialectCode
in interface ConnectionSource
public final String getPassword()
public final void setPassword(String password)
password
- The password to setpublic final String getUser()
public final void setUser(String username)
username
- The username to setpublic String getOverriddenSupportsGetGeneratedKeys()
null
if not overridden.public void setOverriddenSupportsGetGeneratedKeys(String overriddenSupportsGetGeneratedKeys)
overriddenSupportsGetGeneratedKeys
- A non null string, with "true" or "false" value, if overridden,
null
if not overridden.public final boolean supportsBatchUpdates()
supportsBatchUpdates
in interface ConnectionSource
Copyright © 2002-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.