@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, setStatementPooling
finalize, getQueue, physicalConnectionDeallocated, pooledObjectReleased, restart, shutdown
getParentLogger
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlockingTimeout, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize, getPingInterval, isPooling, isStatementPooling, restart, setBlockingTimeout, setMaxIdleTime, setMaxPoolSize, setMaxStatements, setMinPoolSize, setPingInterval, setPooling, setStatementPooling, shutdown
getIdleTimeout, getMaxConnections, getMinConnections, getRetryInterval
public 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()
AbstractConnectionPool
getLogger
in class AbstractConnectionPool
Logger
.protected PooledConnectionManager getConnectionManager()
AbstractConnectionPool
PooledConnectionManager
responsible for
instantiating pooled connections.getConnectionManager
in class AbstractConnectionPool
PooledConnectionManager
protected java.lang.String getPoolName()
getPoolName
in class AbstractConnectionPool
AbstractConnectionPool.getPoolName()
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.sql.CommonDataSource
getLogWriter
in class BasicAbstractConnectionPool
public void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.sql.CommonDataSource
setLogWriter
in class BasicAbstractConnectionPool
public int getLoginTimeout()
getLoginTimeout
in interface javax.sql.CommonDataSource
getLoginTimeout
in class BasicAbstractConnectionPool
setLoginTimeout(int)
method or 0.public void setLoginTimeout(int seconds)
setLoginTimeout
in interface javax.sql.CommonDataSource
setLoginTimeout
in class BasicAbstractConnectionPool
seconds
- 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 AbstractConnectionPool
queue
- 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.ConnectionPoolDataSource
getPooledConnection
in class BasicAbstractConnectionPool
PooledConnection
.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.ConnectionPoolDataSource
getPooledConnection
in class BasicAbstractConnectionPool
user
- 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.XADataSource
XAConnection
.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.XADataSource
user
- 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.ConnectionEventListener
connectionEvent
- instance of ConnectionEvent
.public void physicalConnectionClosed(javax.sql.ConnectionEvent connectionEvent)
physicalConnectionClosed
in interface PooledConnectionEventListener
connectionEvent
- instance of ConnectionEvent
.public void physicalConnectionDeallocated(javax.sql.ConnectionEvent connectionEvent)
physicalConnectionDeallocated
in interface PooledConnectionEventListener
connectionEvent
- instance of ConnectionEvent
.public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
connectionErrorOccurred
in interface javax.sql.ConnectionEventListener
event
- instance of ConnectionEvent
containing
information about an error.public int getFreeSize() throws java.sql.SQLException
AbstractConnectionPool
getMaxSize() != 0 && getMaxSize() == getWorkingSize()
,
meaning that we have allocated maximum number of connections and all
of them are in use.getFreeSize
in interface FirebirdPool
getFreeSize
in class AbstractConnectionPool
java.sql.SQLException
public int getTotalSize() throws java.sql.SQLException
AbstractConnectionPool
getTotalSize
in interface FirebirdPool
getTotalSize
in class AbstractConnectionPool
java.sql.SQLException
public int getWorkingSize() throws java.sql.SQLException
AbstractConnectionPool
getWorkingSize
in interface FirebirdPool
getWorkingSize
in class AbstractConnectionPool
java.sql.SQLException
public boolean isPingable()
isPingable
in interface ConnectionPoolConfiguration
isPingable
in class BasicAbstractConnectionPool
true
if this pool supports pingable connections.ConnectionPoolConfiguration.isPingable()
public java.lang.String getPingStatement()
getPingStatement
in interface ConnectionPoolConfiguration
getPingStatement
in class BasicAbstractConnectionPool
ConnectionPoolConfiguration.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 FirebirdConnectionProperties
type
- 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)
FirebirdConnectionProperties
getNonStandardProperty
in interface FirebirdConnectionProperties
key
- name of the property to get.public void setNonStandardProperty(java.lang.String key, java.lang.String value)
FirebirdConnectionProperties
setNonStandardProperty
in interface FirebirdConnectionProperties
key
- name of the property to set.value
- value of the property.public void setNonStandardProperty(java.lang.String propertyMapping)
setNonStandardProperty
in interface FirebirdConnectionProperties
propertyMapping
- 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 FirebirdConnectionProperties
public void setBlobBufferSize(int blobBufferSize)
setBlobBufferSize
in interface FirebirdConnectionProperties
blobBufferSize
- size of the BLOB buffer in bytes.public java.lang.String getEncoding()
getEncoding
in interface FirebirdConnectionProperties
FirebirdConnectionProperties.setEncoding(String)
public void setEncoding(java.lang.String encoding)
setEncoding
in interface FirebirdConnectionProperties
encoding
- Character encoding for the connection. See Firebird
documentation for more information.public java.lang.String getCharSet()
getCharSet
in interface FirebirdConnectionProperties
FirebirdConnectionProperties.setCharSet(String)
public void setCharSet(java.lang.String charSet)
setCharSet
in interface FirebirdConnectionProperties
charSet
- 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 FirebirdConnectionProperties
public void setPassword(java.lang.String password)
setPassword
in interface FirebirdConnectionProperties
password
- password corresponding to the specified user name.public int getSocketBufferSize()
getSocketBufferSize
in interface FirebirdConnectionProperties
public void setSocketBufferSize(int socketBufferSize)
setSocketBufferSize
in interface FirebirdConnectionProperties
socketBufferSize
- socket buffer size in bytes.public java.lang.String getRoleName()
getRoleName
in interface FirebirdConnectionProperties
public void setRoleName(java.lang.String roleName)
setRoleName
in interface FirebirdConnectionProperties
roleName
- 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()
FirebirdConnectionProperties
getTpbMapping
in interface FirebirdConnectionProperties
FirebirdConnectionProperties.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 FirebirdConnectionProperties
tpbMapping
- path to the properties file.public java.lang.String getUserName()
getUserName
in interface FirebirdConnectionProperties
public void setUserName(java.lang.String userName)
setUserName
in interface FirebirdConnectionProperties
userName
- name of the user that will be used when connecting to the
database.public int getBuffersNumber()
getBuffersNumber
in interface FirebirdConnectionProperties
public java.lang.String getDatabase()
getDatabase
in interface FirebirdConnectionProperties
public DatabaseParameterBuffer getDatabaseParameterBuffer() throws java.sql.SQLException
FirebirdConnectionProperties
getDatabaseParameterBuffer
in interface FirebirdConnectionProperties
DatabaseParameterBuffer
.java.sql.SQLException
- if database parameter buffer cannot be created.public java.lang.String getDefaultIsolation()
FirebirdConnectionProperties
FirebirdConnectionProperties.getDefaultTransactionIsolation()
, however
it takes a string as parameter instead of a numeric constant.getDefaultIsolation
in interface FirebirdConnectionProperties
FirebirdConnectionProperties.setDefaultIsolation(String)
public int getDefaultTransactionIsolation()
FirebirdConnectionProperties
getDefaultTransactionIsolation
in interface FirebirdConnectionProperties
public java.lang.String getSqlDialect()
getSqlDialect
in interface FirebirdConnectionProperties
public TransactionParameterBuffer getTransactionParameters(int isolation)
FirebirdConnectionProperties
getTransactionParameters
in interface FirebirdConnectionProperties
isolation
- transaction isolation level for which TPB should be returned.TransactionParameterBuffer
.public java.lang.String getUseTranslation()
getUseTranslation
in interface FirebirdConnectionProperties
public boolean isTimestampUsesLocalTimezone()
isTimestampUsesLocalTimezone
in interface FirebirdConnectionProperties
true
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 FirebirdConnectionProperties
true
if driver should assume that standard UDF are
installed.public boolean isUseStreamBlobs()
isUseStreamBlobs
in interface FirebirdConnectionProperties
true
if stream blobs should be created, otherwise
false
.public void setBuffersNumber(int buffersNumber)
setBuffersNumber
in interface FirebirdConnectionProperties
buffersNumber
- 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 FirebirdConnectionProperties
database
- path to the database including the server name and the
port, if needed.public void setDefaultIsolation(java.lang.String isolation)
FirebirdConnectionProperties
FirebirdConnectionProperties.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 FirebirdConnectionProperties
isolation
- string constant representing a default isolation level.public void setDefaultTransactionIsolation(int defaultIsolationLevel)
FirebirdConnectionProperties
setDefaultTransactionIsolation
in interface FirebirdConnectionProperties
defaultIsolationLevel
- default transaction isolation level.public void setSqlDialect(java.lang.String sqlDialect)
setSqlDialect
in interface FirebirdConnectionProperties
sqlDialect
- SQL dialect of the client.public void setTimestampUsesLocalTimezone(boolean timestampUsesLocalTimezone)
setTimestampUsesLocalTimezone
in interface FirebirdConnectionProperties
timestampUsesLocalTimezone
- 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)
FirebirdConnectionProperties
setTransactionParameters
in interface FirebirdConnectionProperties
isolation
- transaction isolation level.tpb
- instance of TransactionParameterBuffer
containing
transaction parameters.public void setUseStandardUdf(boolean useStandardUdf)
setUseStandardUdf
in interface FirebirdConnectionProperties
useStandardUdf
- true
if driver should assume that standard UDF
are installed.public void setUseStreamBlobs(boolean useStreamBlobs)
setUseStreamBlobs
in interface FirebirdConnectionProperties
useStreamBlobs
- true
if stream blobs should be created,
otherwise false
.public void setUseTranslation(java.lang.String translationPath)
setUseTranslation
in interface FirebirdConnectionProperties
translationPath
- path to the character translation table.public boolean isDefaultResultSetHoldable()
FirebirdConnectionProperties
isDefaultResultSetHoldable
in interface FirebirdConnectionProperties
true
when ResultSets are holdable by default, false
not holdable.public void setDefaultResultSetHoldable(boolean isHoldable)
FirebirdConnectionProperties
setDefaultResultSetHoldable
in interface FirebirdConnectionProperties
isHoldable
- true
when ResultSets are holdable by default, false
not holdable.public int getSoTimeout()
FirebirdConnectionProperties
getSoTimeout
in interface FirebirdConnectionProperties
public void setSoTimeout(int soTimeout)
FirebirdConnectionProperties
setSoTimeout
in interface FirebirdConnectionProperties
soTimeout
- Timeout in milliseconds (0 is 'infinite')public int getConnectTimeout()
FirebirdConnectionProperties
getConnectTimeout
in interface FirebirdConnectionProperties
public void setConnectTimeout(int connectTimeout)
FirebirdConnectionProperties
setConnectTimeout
in interface FirebirdConnectionProperties
connectTimeout
- Connect timeout in seconds (0 is 'infinite', or better: OS specific timeout)public boolean isUseFirebirdAutocommit()
FirebirdConnectionProperties
isUseFirebirdAutocommit
in interface FirebirdConnectionProperties
public void setUseFirebirdAutocommit(boolean useFirebirdAutocommit)
FirebirdConnectionProperties
setUseFirebirdAutocommit
in interface FirebirdConnectionProperties
useFirebirdAutocommit
- true
Use Firebird autocommitpublic javax.naming.Reference getDefaultReference()
BasicAbstractConnectionPool
getDefaultReference
in class BasicAbstractConnectionPool
Reference
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.Exception
protected BasicAbstractConnectionPool createObjectInstance()
createObjectInstance
in class BasicAbstractConnectionPool
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.