@Deprecated public abstract class AbstractFBConnectionPoolDataSource extends BasicAbstractConnectionPool implements javax.sql.ConnectionPoolDataSource, javax.sql.XADataSource, PooledConnectionEventListener, FirebirdPool
blobBufferSize
size of the buffer used to transfer BLOB data.
blockingTimeout
time in milliseconds during which getPooledConnection() method will
block if no free connection is in pool.
charSet
similar to encoding, but takes Java character set name
instead of Firebird's encoding.
database
path to a database including the server name; for example
localhost/3050:c:/path/to/database.gdb.
encoding
character encoding for the JDBC connection.
freeSize
read-only: gives amount of free connections in the pool, when 0, blocking
will occur if workingSize is equal to maxPoolSize.
isolation
default transaction isolation level for connections as string; possible
values are:
loginTimeout
property from DataSource, in this context is a synonym
for blockingTimeout (however value is specified in seconds).
maxIdleTime
time in milliseconds after which idle physical connection in the
pool is closed.
maxStatements
maximum number of pooled prepared statements, if 0, pooling is switched
off.
maxPoolSize
maximum number of physical connections that can be opened by this data
source.
minPoolSize
minimum number of connections that will remain open by this data source.
nonStandardProperty
a non-standard connection parameter in form name[=value].
password
password that is used to connect to database.
pingInterval
time interval during which connection will be proved for aliveness.
pooling
allows switching pooling off.
statementPooling
alternative way to switch statement pooling off.
socketBufferSize
size of the socket buffer in bytes. In some cases values used by JVM by
default are not optimal. This results in performance degradation
(especially when you transfer big BLOBs). Usually 8192 bytes provides
good results.
sqlRole
SQL role name.
tpbMapping
mapping of the TPB parameters to JDBC transaction isolation levels.
transactionIsolationLevel
default transaction isolation level, number from Connection
interface.
totalSize
total number of allocated connections.
type
type of connection that will be created. There are four possible types:
pure Java (or type 4), type 2 that will use Firebird client library to
connect to the database, local-mode type 2 driver, and embedded that
will use embedded engine (access to local databases). Possible values
are (case insensitive):
"PURE_JAVA" or "TYPE4"
for pure Java (type 4) JDBC connections;
"NATIVE" or "TYPE2"
to use Firebird client library;
"LOCAL"
to use Firebird client library in local-mode (IPC link to server);
"EMBEDDED"
to use embedded engine.
userName
name of the user that will be used to access the database.
workingSize
number of connections that are in use (e.g. were obtained using
getPooledConnection() method, but not yet closed).
AbstractConnectionPool.UserPasswordPair| Modifier and Type | Field and Description |
|---|---|
static AbstractConnectionPool.UserPasswordPair |
EMPTY_USER_PASSWORD
Deprecated.
|
protected static java.lang.String |
REF_NON_STANDARD_PROPERTY
Deprecated.
|
protected static java.lang.String |
REF_PROPERTIES
Deprecated.
|
| Constructor and Description |
|---|
AbstractFBConnectionPoolDataSource()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(javax.sql.ConnectionEvent connectionEvent)
Deprecated.
Notify about connection being closed.
|
void |
connectionErrorOccurred(javax.sql.ConnectionEvent event)
Deprecated.
Notify about serious error when using the connection.
|
protected BasicAbstractConnectionPool |
createObjectInstance()
Deprecated.
|
int |
getBlobBufferSize()
Deprecated.
|
int |
getBuffersNumber()
Deprecated.
|
java.lang.String |
getCharSet()
Deprecated.
|
protected PooledConnectionManager |
getConnectionManager()
Deprecated.
Get instance of
PooledConnectionManager responsible for
instantiating pooled connections. |
FBConnectionProperties |
getConnectionProperties()
Deprecated.
Get connection properties.
|
int |
getConnectTimeout()
Deprecated.
Get the current connect timeout.
|
java.lang.String |
getDatabase()
Deprecated.
|
DatabaseParameterBuffer |
getDatabaseParameterBuffer()
Deprecated.
Get the database parameter buffer corresponding to the current connection
request information.
|
java.lang.String |
getDefaultIsolation()
Deprecated.
Get the default transaction isolation level as string.
|
javax.naming.Reference |
getDefaultReference()
Deprecated.
Get default JNDI reference for this datasource.
|
int |
getDefaultTransactionIsolation()
Deprecated.
Get the default transaction isolation level.
|
java.lang.String |
getEncoding()
Deprecated.
|
int |
getFreeSize()
Deprecated.
Get number of free connections in this pool.
|
org.firebirdsql.gds.impl.GDSType |
getGDSType()
Deprecated.
Get type of JDBC driver that is used.
|
protected org.firebirdsql.logging.Logger |
getLogger()
Deprecated.
Get logger for this instance.
|
int |
getLoginTimeout()
Deprecated.
Get login timeout.
|
java.io.PrintWriter |
getLogWriter()
Deprecated.
|
java.lang.String |
getNonStandardProperty(java.lang.String key)
Deprecated.
Get the property that does not have corresponding getter method by its
name.
|
java.lang.String |
getPassword()
Deprecated.
|
java.lang.String |
getPingStatement()
Deprecated.
Get SQL statement that will be used to "ping" the connection.
|
javax.sql.PooledConnection |
getPooledConnection()
Deprecated.
Get pooled connection.
|
protected PooledObject |
getPooledConnection(org.firebirdsql.pool.PooledConnectionQueue queue)
Deprecated.
Get pooled connection from the pooled queue.
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Deprecated.
Get pooled connection for the specified user name and password.
|
protected java.lang.String |
getPoolName()
Deprecated.
Get name of the connection queue.
|
java.lang.String |
getRoleName()
Deprecated.
|
int |
getSocketBufferSize()
Deprecated.
|
int |
getSoTimeout()
Deprecated.
Get the current Socket blocking timeout (SoTimeout).
|
java.lang.String |
getSqlDialect()
Deprecated.
|
java.lang.String |
getSqlRole()
Deprecated.
please use
getRoleName() instead. |
int |
getTotalSize()
Deprecated.
Get total size of physical connections opened to the database.
|
java.lang.String |
getTpbMapping()
Deprecated.
Get the used TPB mapping.
|
TransactionParameterBuffer |
getTransactionParameters(int isolation)
Deprecated.
Get the transaction parameter buffer corresponding to the current
connection request information.
|
java.lang.String |
getType()
Deprecated.
Get type of JDBC driver that will be used.
|
java.lang.String |
getUserName()
Deprecated.
|
java.lang.String |
getUseTranslation()
Deprecated.
|
int |
getWorkingSize()
Deprecated.
Get number of connections that are in use.
|
javax.sql.XAConnection |
getXAConnection()
Deprecated.
Get XA connection.
|
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Deprecated.
Get XA connection for the specified user name and password.
|
boolean |
isDefaultResultSetHoldable()
Deprecated.
Get the default ResultSet holdability.
|
boolean |
isPingable()
Deprecated.
Check if this configuation defines a pingable connection JDBC pool.
|
boolean |
isTimestampUsesLocalTimezone()
Deprecated.
|
boolean |
isUseFirebirdAutocommit()
Deprecated.
Get whether to use Firebird autocommit (experimental).
|
boolean |
isUseStandardUdf()
Deprecated.
|
boolean |
isUseStreamBlobs()
Deprecated.
|
void |
physicalConnectionClosed(javax.sql.ConnectionEvent connectionEvent)
Deprecated.
Notify about physical connection being closed.
|
void |
physicalConnectionDeallocated(javax.sql.ConnectionEvent connectionEvent)
Deprecated.
Notify about the deallocation of the physical connection.
|
protected java.lang.Object |
processObjectInstance(AbstractFBConnectionPoolDataSource ds,
javax.naming.Reference ref)
Deprecated.
|
void |
setBlobBufferSize(int blobBufferSize)
Deprecated.
|
void |
setBuffersNumber(int buffersNumber)
Deprecated.
|
void |
setCharSet(java.lang.String charSet)
Deprecated.
|
void |
setConnectionProperties(FBConnectionProperties props)
Deprecated.
Set the connection properties in bulk.
|
void |
setConnectTimeout(int connectTimeout)
Deprecated.
Set the connect timeout.
|
void |
setDatabase(java.lang.String database)
Deprecated.
|
void |
setDefaultIsolation(java.lang.String isolation)
Deprecated.
Set the default transaction isolation level as string.
|
void |
setDefaultResultSetHoldable(boolean isHoldable)
Deprecated.
Sets the default ResultSet holdability.
|
void |
setDefaultTransactionIsolation(int defaultIsolationLevel)
Deprecated.
Set the default transaction isolation level.
|
void |
setEncoding(java.lang.String encoding)
Deprecated.
|
void |
setGDSType(org.firebirdsql.gds.impl.GDSType gdsType)
Deprecated.
Set type of the JDBC driver to use.
|
void |
setLoginTimeout(int seconds)
Deprecated.
Set login timeout for new connection.
|
void |
setLogWriter(java.io.PrintWriter out)
Deprecated.
|
void |
setNonStandardProperty(java.lang.String propertyMapping)
Deprecated.
Method that allows setting non-standard property in the form "key=value"
form.
|
void |
setNonStandardProperty(java.lang.String key,
java.lang.String value)
Deprecated.
Set the property that does not have corresponding setter method.
|
void |
setPassword(java.lang.String password)
Deprecated.
|
void |
setProperties(java.util.Properties properties)
Deprecated.
Set JDBC properties that will be passed when opening a connection.
|
void |
setRoleName(java.lang.String roleName)
Deprecated.
|
void |
setSocketBufferSize(int socketBufferSize)
Deprecated.
|
void |
setSoTimeout(int soTimeout)
Deprecated.
Set the Socket blocking timeout (SoTimeout).
|
void |
setSqlDialect(java.lang.String sqlDialect)
Deprecated.
|
void |
setSqlRole(java.lang.String sqlRole)
Deprecated.
please use
setRoleName(String) instead. |
void |
setTimestampUsesLocalTimezone(boolean timestampUsesLocalTimezone)
Deprecated.
|
void |
setTpbMapping(java.lang.String tpbMapping)
Deprecated.
Set path to the properties file with the TPB mapping.
|
void |
setTransactionParameters(int isolation,
TransactionParameterBuffer tpb)
Deprecated.
Set transaction parameters for the specified transaction isolation level.
|
void |
setType(java.lang.String type)
Deprecated.
Set type of JDBC driver to use.
|
void |
setUseFirebirdAutocommit(boolean useFirebirdAutocommit)
Deprecated.
Set whether to use Firebird autocommit (experimental).
|
void |
setUserName(java.lang.String userName)
Deprecated.
|
void |
setUseStandardUdf(boolean useStandardUdf)
Deprecated.
|
void |
setUseStreamBlobs(boolean useStreamBlobs)
Deprecated.
|
void |
setUseTranslation(java.lang.String translationPath)
Deprecated.
|
deserialize, getBlockingTimeout, getConfiguration, getIdleTimeout, getMaxConnections, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinConnections, getMinPoolSize, getObjectInstance, getPingInterval, getRefAddr, getReference, getRetryInterval, isKeepStatements, isPooling, isStatementPooling, serialize, setBlockingTimeout, setIdleTimeout, setKeepStatements, setMaxConnections, setMaxIdleTime, setMaxPoolSize, setMaxStatements, setMinConnections, setMinPoolSize, setPingInterval, setPingStatement, setPooling, setReference, setRetryInterval, setStatementPoolingfinalize, getQueue, physicalConnectionDeallocated, pooledObjectReleased, restart, shutdowngetParentLoggerclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockingTimeout, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize, getPingInterval, isPooling, isStatementPooling, restart, setBlockingTimeout, setMaxIdleTime, setMaxPoolSize, setMaxStatements, setMinPoolSize, setPingInterval, setPooling, setStatementPooling, shutdowngetIdleTimeout, getMaxConnections, getMinConnections, getRetryIntervalpublic static final AbstractConnectionPool.UserPasswordPair EMPTY_USER_PASSWORD
protected static final java.lang.String REF_PROPERTIES
protected static final java.lang.String REF_NON_STANDARD_PROPERTY
public AbstractFBConnectionPoolDataSource()
public FBConnectionProperties getConnectionProperties()
FBConnectionProperties.public void setConnectionProperties(FBConnectionProperties props)
props - instance of FBConnectionProperties.java.lang.IllegalStateException - if managed connection factory is already
initialized.protected org.firebirdsql.logging.Logger getLogger()
AbstractConnectionPoolgetLogger in class AbstractConnectionPoolLogger.protected PooledConnectionManager getConnectionManager()
AbstractConnectionPoolPooledConnectionManager responsible for
instantiating pooled connections.getConnectionManager in class AbstractConnectionPoolPooledConnectionManagerprotected java.lang.String getPoolName()
getPoolName in class AbstractConnectionPoolAbstractConnectionPool.getPoolName()public java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.sql.CommonDataSourcegetLogWriter in class BasicAbstractConnectionPoolpublic void setLogWriter(java.io.PrintWriter out)
setLogWriter in interface javax.sql.CommonDataSourcesetLogWriter in class BasicAbstractConnectionPoolpublic int getLoginTimeout()
getLoginTimeout in interface javax.sql.CommonDataSourcegetLoginTimeout in class BasicAbstractConnectionPoolsetLoginTimeout(int) method or 0.public void setLoginTimeout(int seconds)
setLoginTimeout in interface javax.sql.CommonDataSourcesetLoginTimeout in class BasicAbstractConnectionPoolseconds - how long pool should wait until new connection is
granted.protected PooledObject getPooledConnection(org.firebirdsql.pool.PooledConnectionQueue queue) throws java.sql.SQLException
getPooledConnection in class AbstractConnectionPoolqueue - instance of PooledConnectionQueue where connection
will be obtained.PooledObject.java.sql.SQLException - if pooled connection cannot be obtained.public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcegetPooledConnection in class BasicAbstractConnectionPoolPooledConnection.java.sql.SQLException - if pooled connection cannot be obtained.public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcegetPooledConnection in class BasicAbstractConnectionPooluser - user name.password - password corresponding to specified user name.PooledConnection for the specified
credentials.java.sql.SQLException - always, this method is not yet implemented.public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourceXAConnection.java.sql.SQLException - if pooled connection cannot be obtained.public javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourceuser - user name.password - password corresponding to specified user name.XAConnection for the specified
credentials.java.sql.SQLException - always, this method is not yet implemented.public void connectionClosed(javax.sql.ConnectionEvent connectionEvent)
connectionClosed in interface javax.sql.ConnectionEventListenerconnectionEvent - instance of ConnectionEvent.public void physicalConnectionClosed(javax.sql.ConnectionEvent connectionEvent)
physicalConnectionClosed in interface PooledConnectionEventListenerconnectionEvent - instance of ConnectionEvent.public void physicalConnectionDeallocated(javax.sql.ConnectionEvent connectionEvent)
physicalConnectionDeallocated in interface PooledConnectionEventListenerconnectionEvent - instance of ConnectionEvent.public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
connectionErrorOccurred in interface javax.sql.ConnectionEventListenerevent - instance of ConnectionEvent containing
information about an error.public int getFreeSize()
throws java.sql.SQLException
AbstractConnectionPoolgetMaxSize() != 0 && getMaxSize() == getWorkingSize(),
meaning that we have allocated maximum number of connections and all
of them are in use.getFreeSize in interface FirebirdPoolgetFreeSize in class AbstractConnectionPooljava.sql.SQLExceptionpublic int getTotalSize()
throws java.sql.SQLException
AbstractConnectionPoolgetTotalSize in interface FirebirdPoolgetTotalSize in class AbstractConnectionPooljava.sql.SQLExceptionpublic int getWorkingSize()
throws java.sql.SQLException
AbstractConnectionPoolgetWorkingSize in interface FirebirdPoolgetWorkingSize in class AbstractConnectionPooljava.sql.SQLExceptionpublic boolean isPingable()
isPingable in interface ConnectionPoolConfigurationisPingable in class BasicAbstractConnectionPooltrue if this pool supports pingable connections.ConnectionPoolConfiguration.isPingable()public java.lang.String getPingStatement()
getPingStatement in interface ConnectionPoolConfigurationgetPingStatement in class BasicAbstractConnectionPoolConnectionPoolConfiguration.getPingStatement()public void setProperties(java.util.Properties properties)
properties - instance of Properties containing properties
of a connection to open.public java.lang.String getType()
setType(String) if
you used synonym (either "TYPE4" or "TYPE2").getType in interface FirebirdConnectionProperties"PURE_JAVA" for pure Java type 4 JDBC driver.
"NATIVE" for type 2 JDBC driver that will use Firebird
client library.
"EMBEDDED" for type 2 JDBC driver that will use
embedded engine.
public void setType(java.lang.String type)
setType in interface FirebirdConnectionPropertiestype - type of driver to use. Possible values are (case insensitive):
"PURE_JAVA" or "TYPE4" for pure Java type 4
JDBC driver;
"NATIVE" or "TYPE2" for type 2 JDBC driver
that will use Firebird client library.
"EMBEDDED" for type 2 JDBC driver that will use embedded
version of the server.
public org.firebirdsql.gds.impl.GDSType getGDSType()
public void setGDSType(org.firebirdsql.gds.impl.GDSType gdsType)
gdsType - type of the JDBC driver.public java.lang.String getNonStandardProperty(java.lang.String key)
FirebirdConnectionPropertiesgetNonStandardProperty in interface FirebirdConnectionPropertieskey - name of the property to get.public void setNonStandardProperty(java.lang.String key,
java.lang.String value)
FirebirdConnectionPropertiessetNonStandardProperty in interface FirebirdConnectionPropertieskey - name of the property to set.value - value of the property.public void setNonStandardProperty(java.lang.String propertyMapping)
setNonStandardProperty in interface FirebirdConnectionPropertiespropertyMapping - mapping between property name (key) and its value.
Name and value are separated with "=", ":" or whitespace character.
Whitespace characters on the beginning of the string and between key and
value are ignored. No escaping is possible: "\n" is backslash-en, not
a new line mark.public int getBlobBufferSize()
getBlobBufferSize in interface FirebirdConnectionPropertiespublic void setBlobBufferSize(int blobBufferSize)
setBlobBufferSize in interface FirebirdConnectionPropertiesblobBufferSize - size of the BLOB buffer in bytes.public java.lang.String getEncoding()
getEncoding in interface FirebirdConnectionPropertiesFirebirdConnectionProperties.setEncoding(String)public void setEncoding(java.lang.String encoding)
setEncoding in interface FirebirdConnectionPropertiesencoding - Character encoding for the connection. See Firebird
documentation for more information.public java.lang.String getCharSet()
getCharSet in interface FirebirdConnectionPropertiesFirebirdConnectionProperties.setCharSet(String)public void setCharSet(java.lang.String charSet)
setCharSet in interface FirebirdConnectionPropertiescharSet - Character set for the connection. Similar to
encoding property, but accepts Java names
instead of Firebird ones.public java.lang.String getPassword()
getPassword in interface FirebirdConnectionPropertiespublic void setPassword(java.lang.String password)
setPassword in interface FirebirdConnectionPropertiespassword - password corresponding to the specified user name.public int getSocketBufferSize()
getSocketBufferSize in interface FirebirdConnectionPropertiespublic void setSocketBufferSize(int socketBufferSize)
setSocketBufferSize in interface FirebirdConnectionPropertiessocketBufferSize - socket buffer size in bytes.public java.lang.String getRoleName()
getRoleName in interface FirebirdConnectionPropertiespublic void setRoleName(java.lang.String roleName)
setRoleName in interface FirebirdConnectionPropertiesroleName - SQL role to use.public java.lang.String getSqlRole()
getRoleName() instead.public void setSqlRole(java.lang.String sqlRole)
setRoleName(String) instead.public java.lang.String getTpbMapping()
FirebirdConnectionPropertiesgetTpbMapping in interface FirebirdConnectionPropertiesFirebirdConnectionProperties.setTpbMapping(String)public void setTpbMapping(java.lang.String tpbMapping)
FirebirdConnectionProperties"res:" should be used to specify resource
in the classpath.
For the compatibility reasons, if no protocol is specified, classpath is used by default.
Properties file contains a mapping between the transaction isolation
level (name of the constant in the Connection interface
and a comma-separated list of TPB parameters.
setTpbMapping in interface FirebirdConnectionPropertiestpbMapping - path to the properties file.public java.lang.String getUserName()
getUserName in interface FirebirdConnectionPropertiespublic void setUserName(java.lang.String userName)
setUserName in interface FirebirdConnectionPropertiesuserName - name of the user that will be used when connecting to the
database.public int getBuffersNumber()
getBuffersNumber in interface FirebirdConnectionPropertiespublic java.lang.String getDatabase()
getDatabase in interface FirebirdConnectionPropertiespublic DatabaseParameterBuffer getDatabaseParameterBuffer() throws java.sql.SQLException
FirebirdConnectionPropertiesgetDatabaseParameterBuffer in interface FirebirdConnectionPropertiesDatabaseParameterBuffer.java.sql.SQLException - if database parameter buffer cannot be created.public java.lang.String getDefaultIsolation()
FirebirdConnectionPropertiesFirebirdConnectionProperties.getDefaultTransactionIsolation(), however
it takes a string as parameter instead of a numeric constant.getDefaultIsolation in interface FirebirdConnectionPropertiesFirebirdConnectionProperties.setDefaultIsolation(String)public int getDefaultTransactionIsolation()
FirebirdConnectionPropertiesgetDefaultTransactionIsolation in interface FirebirdConnectionPropertiespublic java.lang.String getSqlDialect()
getSqlDialect in interface FirebirdConnectionPropertiespublic TransactionParameterBuffer getTransactionParameters(int isolation)
FirebirdConnectionPropertiesgetTransactionParameters in interface FirebirdConnectionPropertiesisolation - transaction isolation level for which TPB should be returned.TransactionParameterBuffer.public java.lang.String getUseTranslation()
getUseTranslation in interface FirebirdConnectionPropertiespublic boolean isTimestampUsesLocalTimezone()
isTimestampUsesLocalTimezone in interface FirebirdConnectionPropertiestrue if the Jaybird 1.0 handling of the calendar
in corresponding setters. This is also compatible with MySQL
calendar treatment.public boolean isUseStandardUdf()
isUseStandardUdf in interface FirebirdConnectionPropertiestrue if driver should assume that standard UDF are
installed.public boolean isUseStreamBlobs()
isUseStreamBlobs in interface FirebirdConnectionPropertiestrue if stream blobs should be created, otherwise
false.public void setBuffersNumber(int buffersNumber)
setBuffersNumber in interface FirebirdConnectionPropertiesbuffersNumber - number of cache buffers that should be allocated for this
connection, should be specified for ClassicServer instances,
SuperServer has a server-wide configuration parameter.public void setDatabase(java.lang.String database)
setDatabase in interface FirebirdConnectionPropertiesdatabase - path to the database including the server name and the
port, if needed.public void setDefaultIsolation(java.lang.String isolation)
FirebirdConnectionPropertiesFirebirdConnectionProperties.setDefaultTransactionIsolation(int),
however it takes a string as parameter instead of a numeric constant.
Following strings are allowed:
"TRANSACTION_READ_COMMITTED" for a READ COMMITTED
isolation level.
"TRANSACTION_REPEATABLE_READ" for a REPEATABLE READ
isolation level.
"TRANSACTION_SERIALIZABLE" for a SERIALIZABLE
isolation level.
setDefaultIsolation in interface FirebirdConnectionPropertiesisolation - string constant representing a default isolation level.public void setDefaultTransactionIsolation(int defaultIsolationLevel)
FirebirdConnectionPropertiessetDefaultTransactionIsolation in interface FirebirdConnectionPropertiesdefaultIsolationLevel - default transaction isolation level.public void setSqlDialect(java.lang.String sqlDialect)
setSqlDialect in interface FirebirdConnectionPropertiessqlDialect - SQL dialect of the client.public void setTimestampUsesLocalTimezone(boolean timestampUsesLocalTimezone)
setTimestampUsesLocalTimezone in interface FirebirdConnectionPropertiestimestampUsesLocalTimezone - true if the Jaybird 1.0 handling of the
calendar in corresponding setters. This is also compatible
with MySQL calendar treatment.public void setTransactionParameters(int isolation,
TransactionParameterBuffer tpb)
FirebirdConnectionPropertiessetTransactionParameters in interface FirebirdConnectionPropertiesisolation - transaction isolation level.tpb - instance of TransactionParameterBuffer containing
transaction parameters.public void setUseStandardUdf(boolean useStandardUdf)
setUseStandardUdf in interface FirebirdConnectionPropertiesuseStandardUdf - true if driver should assume that standard UDF
are installed.public void setUseStreamBlobs(boolean useStreamBlobs)
setUseStreamBlobs in interface FirebirdConnectionPropertiesuseStreamBlobs - true if stream blobs should be created,
otherwise false.public void setUseTranslation(java.lang.String translationPath)
setUseTranslation in interface FirebirdConnectionPropertiestranslationPath - path to the character translation table.public boolean isDefaultResultSetHoldable()
FirebirdConnectionPropertiesisDefaultResultSetHoldable in interface FirebirdConnectionPropertiestrue when ResultSets are holdable by default, false not holdable.public void setDefaultResultSetHoldable(boolean isHoldable)
FirebirdConnectionPropertiessetDefaultResultSetHoldable in interface FirebirdConnectionPropertiesisHoldable - true when ResultSets are holdable by default, false not holdable.public int getSoTimeout()
FirebirdConnectionPropertiesgetSoTimeout in interface FirebirdConnectionPropertiespublic void setSoTimeout(int soTimeout)
FirebirdConnectionPropertiessetSoTimeout in interface FirebirdConnectionPropertiessoTimeout - Timeout in milliseconds (0 is 'infinite')public int getConnectTimeout()
FirebirdConnectionPropertiesgetConnectTimeout in interface FirebirdConnectionPropertiespublic void setConnectTimeout(int connectTimeout)
FirebirdConnectionPropertiessetConnectTimeout in interface FirebirdConnectionPropertiesconnectTimeout - Connect timeout in seconds (0 is 'infinite', or better: OS specific timeout)public boolean isUseFirebirdAutocommit()
FirebirdConnectionPropertiesisUseFirebirdAutocommit in interface FirebirdConnectionPropertiespublic void setUseFirebirdAutocommit(boolean useFirebirdAutocommit)
FirebirdConnectionPropertiessetUseFirebirdAutocommit in interface FirebirdConnectionPropertiesuseFirebirdAutocommit - true Use Firebird autocommitpublic javax.naming.Reference getDefaultReference()
BasicAbstractConnectionPoolgetDefaultReference in class BasicAbstractConnectionPoolReference containing all information
that allows to reconstruct the datasource.protected java.lang.Object processObjectInstance(AbstractFBConnectionPoolDataSource ds, javax.naming.Reference ref) throws java.lang.Exception
java.lang.Exceptionprotected BasicAbstractConnectionPool createObjectInstance()
createObjectInstance in class BasicAbstractConnectionPoolCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.