org.firebirdsql.pool
Class AbstractFBConnectionPoolDataSource

java.lang.Object
  extended by org.firebirdsql.ds.RootCommonDataSource
      extended by org.firebirdsql.pool.AbstractConnectionPool
          extended by org.firebirdsql.pool.BasicAbstractConnectionPool
              extended by org.firebirdsql.pool.AbstractFBConnectionPoolDataSource
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.ConnectionEventListener, javax.sql.ConnectionPoolDataSource, javax.sql.XADataSource, FirebirdConnectionProperties, ConnectionPoolConfiguration, FirebirdPool, PooledConnectionEventListener, PooledObjectListener
Direct Known Subclasses:
FBConnectionPoolDataSource

Deprecated.

@Deprecated
public abstract class AbstractFBConnectionPoolDataSource
extends BasicAbstractConnectionPool
implements javax.sql.ConnectionPoolDataSource, javax.sql.XADataSource, PooledConnectionEventListener, FirebirdPool

Connection pool for Firebird JDBC driver. Following properties are supported:

Author:
Roman Rokytskyy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.firebirdsql.pool.AbstractConnectionPool
AbstractConnectionPool.UserPasswordPair
 
Field Summary
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 Summary
AbstractFBConnectionPoolDataSource()
          Deprecated.  
 
Method Summary
 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.  
 
Methods inherited from class org.firebirdsql.pool.BasicAbstractConnectionPool
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
 
Methods inherited from class org.firebirdsql.pool.AbstractConnectionPool
finalize, getQueue, physicalConnectionDeallocated, pooledObjectReleased, restart, shutdown
 
Methods inherited from class org.firebirdsql.ds.RootCommonDataSource
getParentLogger
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.firebirdsql.pool.FirebirdPool
getBlockingTimeout, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize, getPingInterval, isPooling, isStatementPooling, restart, setBlockingTimeout, setMaxIdleTime, setMaxPoolSize, setMaxStatements, setMinPoolSize, setPingInterval, setPooling, setStatementPooling, shutdown
 
Methods inherited from interface org.firebirdsql.pool.ConnectionPoolConfiguration
getIdleTimeout, getMaxConnections, getMinConnections, getRetryInterval
 

Field Detail

EMPTY_USER_PASSWORD

public static final AbstractConnectionPool.UserPasswordPair EMPTY_USER_PASSWORD
Deprecated. 

REF_PROPERTIES

protected static final java.lang.String REF_PROPERTIES
Deprecated. 
See Also:
Constant Field Values

REF_NON_STANDARD_PROPERTY

protected static final java.lang.String REF_NON_STANDARD_PROPERTY
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

AbstractFBConnectionPoolDataSource

public AbstractFBConnectionPoolDataSource()
Deprecated. 
Method Detail

getConnectionProperties

public FBConnectionProperties getConnectionProperties()
Deprecated. 
Get connection properties. This method returns a live object where connection properties can be set. Usually application does not need to call this method, since this class implements appropriate interface and all properties can set directly. However, this is needed for custom serialization.

Returns:
"live" instance of FBConnectionProperties.

setConnectionProperties

public void setConnectionProperties(FBConnectionProperties props)
Deprecated. 
Set the connection properties in bulk. This method replaces the instance created in constructor, therefore, if the managed connection factory was already initialized with that instance, change will not be visible to it. In this case appropriate exception is thrown.

Parameters:
props - instance of FBConnectionProperties.
Throws:
java.lang.IllegalStateException - if managed connection factory is already initialized.

getLogger

protected org.firebirdsql.logging.Logger getLogger()
Deprecated. 
Description copied from class: AbstractConnectionPool
Get logger for this instance. By default all log messages belong to this class. Subclasses can override this behavior.

Specified by:
getLogger in class AbstractConnectionPool
Returns:
instance of Logger.

getConnectionManager

protected PooledConnectionManager getConnectionManager()
Deprecated. 
Description copied from class: AbstractConnectionPool
Get instance of PooledConnectionManager responsible for instantiating pooled connections.

Specified by:
getConnectionManager in class AbstractConnectionPool
Returns:
instance of PooledConnectionManager

getPoolName

protected java.lang.String getPoolName()
Deprecated. 
Get name of the connection queue.

Specified by:
getPoolName in class AbstractConnectionPool
Returns:
name of the connection queue.
See Also:
AbstractConnectionPool.getPoolName()

getLogWriter

public java.io.PrintWriter getLogWriter()
Deprecated. 
Specified by:
getLogWriter in interface javax.sql.CommonDataSource
Specified by:
getLogWriter in class BasicAbstractConnectionPool

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
Deprecated. 
Specified by:
setLogWriter in interface javax.sql.CommonDataSource
Specified by:
setLogWriter in class BasicAbstractConnectionPool

getLoginTimeout

public int getLoginTimeout()
Deprecated. 
Get login timeout.

Specified by:
getLoginTimeout in interface javax.sql.CommonDataSource
Specified by:
getLoginTimeout in class BasicAbstractConnectionPool
Returns:
value set in setLoginTimeout(int) method or 0.

setLoginTimeout

public void setLoginTimeout(int seconds)
Deprecated. 
Set login timeout for new connection. Currently ignored.

Specified by:
setLoginTimeout in interface javax.sql.CommonDataSource
Specified by:
setLoginTimeout in class BasicAbstractConnectionPool
Parameters:
seconds - how long pool should wait until new connection is granted.

getPooledConnection

protected PooledObject getPooledConnection(org.firebirdsql.pool.PooledConnectionQueue queue)
                                    throws java.sql.SQLException
Deprecated. 
Get pooled connection from the pooled queue.

Overrides:
getPooledConnection in class AbstractConnectionPool
Parameters:
queue - instance of PooledConnectionQueue where connection will be obtained.
Returns:
instance of PooledObject.
Throws:
java.sql.SQLException - if pooled connection cannot be obtained.

getPooledConnection

public javax.sql.PooledConnection getPooledConnection()
                                               throws java.sql.SQLException
Deprecated. 
Get pooled connection. This method will block until there will be free connection to return.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Specified by:
getPooledConnection in class BasicAbstractConnectionPool
Returns:
instance of PooledConnection.
Throws:
java.sql.SQLException - if pooled connection cannot be obtained.

getPooledConnection

public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
                                                      java.lang.String password)
                                               throws java.sql.SQLException
Deprecated. 
Get pooled connection for the specified user name and password.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Specified by:
getPooledConnection in class BasicAbstractConnectionPool
Parameters:
user - user name.
password - password corresponding to specified user name.
Returns:
instance of PooledConnection for the specified credentials.
Throws:
java.sql.SQLException - always, this method is not yet implemented.

getXAConnection

public javax.sql.XAConnection getXAConnection()
                                       throws java.sql.SQLException
Deprecated. 
Get XA connection. This method will block until there will be free connection to return.

Specified by:
getXAConnection in interface javax.sql.XADataSource
Returns:
instance of XAConnection.
Throws:
java.sql.SQLException - if pooled connection cannot be obtained.

getXAConnection

public javax.sql.XAConnection getXAConnection(java.lang.String user,
                                              java.lang.String password)
                                       throws java.sql.SQLException
Deprecated. 
Get XA connection for the specified user name and password.

Specified by:
getXAConnection in interface javax.sql.XADataSource
Parameters:
user - user name.
password - password corresponding to specified user name.
Returns:
instance of XAConnection for the specified credentials.
Throws:
java.sql.SQLException - always, this method is not yet implemented.

connectionClosed

public void connectionClosed(javax.sql.ConnectionEvent connectionEvent)
Deprecated. 
Notify about connection being closed.

Specified by:
connectionClosed in interface javax.sql.ConnectionEventListener
Parameters:
connectionEvent - instance of ConnectionEvent.

physicalConnectionClosed

public void physicalConnectionClosed(javax.sql.ConnectionEvent connectionEvent)
Deprecated. 
Notify about physical connection being closed.

Specified by:
physicalConnectionClosed in interface PooledConnectionEventListener
Parameters:
connectionEvent - instance of ConnectionEvent.

physicalConnectionDeallocated

public void physicalConnectionDeallocated(javax.sql.ConnectionEvent connectionEvent)
Deprecated. 
Notify about the deallocation of the physical connection.

Specified by:
physicalConnectionDeallocated in interface PooledConnectionEventListener
Parameters:
connectionEvent - instance of ConnectionEvent.

connectionErrorOccurred

public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
Deprecated. 
Notify about serious error when using the connection. Currently these events are ignored.

Specified by:
connectionErrorOccurred in interface javax.sql.ConnectionEventListener
Parameters:
event - instance of ConnectionEvent containing information about an error.

getFreeSize

public int getFreeSize()
                throws java.sql.SQLException
Deprecated. 
Description copied from class: AbstractConnectionPool
Get number of free connections in this pool. This method returns the number of free open connections to the specified database. It might return 0, but this does not mean that next request will block. This will happen only if getMaxSize() != 0 && getMaxSize() == getWorkingSize(), meaning that we have allocated maximum number of connections and all of them are in use.

Specified by:
getFreeSize in interface FirebirdPool
Specified by:
getFreeSize in class AbstractConnectionPool
Returns:
number of free connections left.
Throws:
java.sql.SQLException

getTotalSize

public int getTotalSize()
                 throws java.sql.SQLException
Deprecated. 
Description copied from class: AbstractConnectionPool
Get total size of physical connections opened to the database.

Specified by:
getTotalSize in interface FirebirdPool
Specified by:
getTotalSize in class AbstractConnectionPool
Returns:
total number of opened connections to the database.
Throws:
java.sql.SQLException

getWorkingSize

public int getWorkingSize()
                   throws java.sql.SQLException
Deprecated. 
Description copied from class: AbstractConnectionPool
Get number of connections that are in use.

Specified by:
getWorkingSize in interface FirebirdPool
Specified by:
getWorkingSize in class AbstractConnectionPool
Returns:
number of working connections.
Throws:
java.sql.SQLException

isPingable

public boolean isPingable()
Deprecated. 
Check if this configuation defines a pingable connection JDBC pool.

Specified by:
isPingable in interface ConnectionPoolConfiguration
Overrides:
isPingable in class BasicAbstractConnectionPool
Returns:
true if this pool supports pingable connections.
See Also:
ConnectionPoolConfiguration.isPingable()

getPingStatement

public java.lang.String getPingStatement()
Deprecated. 
Get SQL statement that will be used to "ping" the connection.

Specified by:
getPingStatement in interface ConnectionPoolConfiguration
Overrides:
getPingStatement in class BasicAbstractConnectionPool
Returns:
SQL statement that will be used to ping connection.
See Also:
ConnectionPoolConfiguration.getPingStatement()

setProperties

public void setProperties(java.util.Properties properties)
Deprecated. 
Set JDBC properties that will be passed when opening a connection.

Parameters:
properties - instance of Properties containing properties of a connection to open.

getType

public java.lang.String getType()
Deprecated. 
Get type of JDBC driver that will be used. Note, value returned by this method might be different from that used in setType(String) if you used synonym (either "TYPE4" or "TYPE2").

Specified by:
getType in interface FirebirdConnectionProperties
Returns:
one of the following values:
  • "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.

setType

public void setType(java.lang.String type)
Deprecated. 
Set type of JDBC driver to use.

Specified by:
setType in interface FirebirdConnectionProperties
Parameters:
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.

getGDSType

public org.firebirdsql.gds.impl.GDSType getGDSType()
Deprecated. 
Get type of JDBC driver that is used.

Returns:
type of JDBC driver that is used.

setGDSType

public void setGDSType(org.firebirdsql.gds.impl.GDSType gdsType)
Deprecated. 
Set type of the JDBC driver to use.

Parameters:
gdsType - type of the JDBC driver.

getNonStandardProperty

public java.lang.String getNonStandardProperty(java.lang.String key)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the property that does not have corresponding getter method by its name.

Specified by:
getNonStandardProperty in interface FirebirdConnectionProperties
Parameters:
key - name of the property to get.
Returns:
value of the property.

setNonStandardProperty

public void setNonStandardProperty(java.lang.String key,
                                   java.lang.String value)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set the property that does not have corresponding setter method.

Specified by:
setNonStandardProperty in interface FirebirdConnectionProperties
Parameters:
key - name of the property to set.
value - value of the property.

setNonStandardProperty

public void setNonStandardProperty(java.lang.String propertyMapping)
Deprecated. 
Method that allows setting non-standard property in the form "key=value" form. This method is needed by some containers to specify properties in the configuration.

Specified by:
setNonStandardProperty in interface FirebirdConnectionProperties
Parameters:
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.

getBlobBufferSize

public int getBlobBufferSize()
Deprecated. 
Specified by:
getBlobBufferSize in interface FirebirdConnectionProperties
Returns:
BLOB buffer size in bytes.

setBlobBufferSize

public void setBlobBufferSize(int blobBufferSize)
Deprecated. 
Specified by:
setBlobBufferSize in interface FirebirdConnectionProperties
Parameters:
blobBufferSize - size of the BLOB buffer in bytes.

getEncoding

public java.lang.String getEncoding()
Deprecated. 
Specified by:
getEncoding in interface FirebirdConnectionProperties
Returns:
Character encoding for the connection.
See Also:
FirebirdConnectionProperties.setEncoding(String)

setEncoding

public void setEncoding(java.lang.String encoding)
Deprecated. 
Specified by:
setEncoding in interface FirebirdConnectionProperties
Parameters:
encoding - Character encoding for the connection. See Firebird documentation for more information.

getCharSet

public java.lang.String getCharSet()
Deprecated. 
Specified by:
getCharSet in interface FirebirdConnectionProperties
Returns:
Character set for the connection.
See Also:
FirebirdConnectionProperties.setCharSet(String)

setCharSet

public void setCharSet(java.lang.String charSet)
Deprecated. 
Specified by:
setCharSet in interface FirebirdConnectionProperties
Parameters:
charSet - Character set for the connection. Similar to encoding property, but accepts Java names instead of Firebird ones.

getPassword

public java.lang.String getPassword()
Deprecated. 
Specified by:
getPassword in interface FirebirdConnectionProperties
Returns:
password corresponding to the specified user name.

setPassword

public void setPassword(java.lang.String password)
Deprecated. 
Specified by:
setPassword in interface FirebirdConnectionProperties
Parameters:
password - password corresponding to the specified user name.

getSocketBufferSize

public int getSocketBufferSize()
Deprecated. 
Specified by:
getSocketBufferSize in interface FirebirdConnectionProperties
Returns:
socket buffer size in bytes, or -1 is not specified.

setSocketBufferSize

public void setSocketBufferSize(int socketBufferSize)
Deprecated. 
Specified by:
setSocketBufferSize in interface FirebirdConnectionProperties
Parameters:
socketBufferSize - socket buffer size in bytes.

getRoleName

public java.lang.String getRoleName()
Deprecated. 
Specified by:
getRoleName in interface FirebirdConnectionProperties
Returns:
SQL role to use.

setRoleName

public void setRoleName(java.lang.String roleName)
Deprecated. 
Specified by:
setRoleName in interface FirebirdConnectionProperties
Parameters:
roleName - SQL role to use.

getSqlRole

public java.lang.String getSqlRole()
Deprecated. please use getRoleName() instead.


setSqlRole

public void setSqlRole(java.lang.String sqlRole)
Deprecated. please use setRoleName(String) instead.


getTpbMapping

public java.lang.String getTpbMapping()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the used TPB mapping.

Specified by:
getTpbMapping in interface FirebirdConnectionProperties
Returns:
path to the TPB mapping.
See Also:
FirebirdConnectionProperties.setTpbMapping(String)

setTpbMapping

public void setTpbMapping(java.lang.String tpbMapping)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set path to the properties file with the TPB mapping. The path begins with the protocol specification followed by the path to the resource. A special protocol "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.

Specified by:
setTpbMapping in interface FirebirdConnectionProperties
Parameters:
tpbMapping - path to the properties file.

getUserName

public java.lang.String getUserName()
Deprecated. 
Specified by:
getUserName in interface FirebirdConnectionProperties
Returns:
name of the user that will be used when connecting to the database.

setUserName

public void setUserName(java.lang.String userName)
Deprecated. 
Specified by:
setUserName in interface FirebirdConnectionProperties
Parameters:
userName - name of the user that will be used when connecting to the database.

getBuffersNumber

public int getBuffersNumber()
Deprecated. 
Specified by:
getBuffersNumber in interface FirebirdConnectionProperties
Returns:
number of cache buffers that should be allocated for this connection, should be specified for ClassicServer instances, SuperServer has a server-wide configuration parameter.

getDatabase

public java.lang.String getDatabase()
Deprecated. 
Specified by:
getDatabase in interface FirebirdConnectionProperties
Returns:
path to the database including the server name and the port, if needed.

getDatabaseParameterBuffer

public DatabaseParameterBuffer getDatabaseParameterBuffer()
                                                   throws java.sql.SQLException
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the database parameter buffer corresponding to the current connection request information.

Specified by:
getDatabaseParameterBuffer in interface FirebirdConnectionProperties
Returns:
instance of DatabaseParameterBuffer.
Throws:
java.sql.SQLException - if database parameter buffer cannot be created.

getDefaultIsolation

public java.lang.String getDefaultIsolation()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the default transaction isolation level as string. This method is complementary to the FirebirdConnectionProperties.getDefaultTransactionIsolation(), however it takes a string as parameter instead of a numeric constant.

Specified by:
getDefaultIsolation in interface FirebirdConnectionProperties
Returns:
default transaction isolation as string.
See Also:
FirebirdConnectionProperties.setDefaultIsolation(String)

getDefaultTransactionIsolation

public int getDefaultTransactionIsolation()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the default transaction isolation level. This is the transaction isolation level for the newly created connections.

Specified by:
getDefaultTransactionIsolation in interface FirebirdConnectionProperties
Returns:
default transaction isolation level.

getSqlDialect

public java.lang.String getSqlDialect()
Deprecated. 
Specified by:
getSqlDialect in interface FirebirdConnectionProperties
Returns:
SQL dialect of the client.

getTransactionParameters

public TransactionParameterBuffer getTransactionParameters(int isolation)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the transaction parameter buffer corresponding to the current connection request information.

Specified by:
getTransactionParameters in interface FirebirdConnectionProperties
Parameters:
isolation - transaction isolation level for which TPB should be returned.
Returns:
instance of TransactionParameterBuffer.

getUseTranslation

public java.lang.String getUseTranslation()
Deprecated. 
Specified by:
getUseTranslation in interface FirebirdConnectionProperties
Returns:
path to the character translation table.

isTimestampUsesLocalTimezone

public boolean isTimestampUsesLocalTimezone()
Deprecated. 
Specified by:
isTimestampUsesLocalTimezone in interface FirebirdConnectionProperties
Returns:
true if the Jaybird 1.0 handling of the calendar in corresponding setters. This is also compatible with MySQL calendar treatment.

isUseStandardUdf

public boolean isUseStandardUdf()
Deprecated. 
Specified by:
isUseStandardUdf in interface FirebirdConnectionProperties
Returns:
true if driver should assume that standard UDF are installed.

isUseStreamBlobs

public boolean isUseStreamBlobs()
Deprecated. 
Specified by:
isUseStreamBlobs in interface FirebirdConnectionProperties
Returns:
true if stream blobs should be created, otherwise false.

setBuffersNumber

public void setBuffersNumber(int buffersNumber)
Deprecated. 
Specified by:
setBuffersNumber in interface FirebirdConnectionProperties
Parameters:
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.

setDatabase

public void setDatabase(java.lang.String database)
Deprecated. 
Specified by:
setDatabase in interface FirebirdConnectionProperties
Parameters:
database - path to the database including the server name and the port, if needed.

setDefaultIsolation

public void setDefaultIsolation(java.lang.String isolation)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set the default transaction isolation level as string. This method is complementary to the FirebirdConnectionProperties.setDefaultTransactionIsolation(int), however it takes a string as parameter instead of a numeric constant.

Following strings are allowed:

Specified by:
setDefaultIsolation in interface FirebirdConnectionProperties
Parameters:
isolation - string constant representing a default isolation level.

setDefaultTransactionIsolation

public void setDefaultTransactionIsolation(int defaultIsolationLevel)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set the default transaction isolation level.

Specified by:
setDefaultTransactionIsolation in interface FirebirdConnectionProperties
Parameters:
defaultIsolationLevel - default transaction isolation level.

setSqlDialect

public void setSqlDialect(java.lang.String sqlDialect)
Deprecated. 
Specified by:
setSqlDialect in interface FirebirdConnectionProperties
Parameters:
sqlDialect - SQL dialect of the client.

setTimestampUsesLocalTimezone

public void setTimestampUsesLocalTimezone(boolean timestampUsesLocalTimezone)
Deprecated. 
Specified by:
setTimestampUsesLocalTimezone in interface FirebirdConnectionProperties
Parameters:
timestampUsesLocalTimezone - true if the Jaybird 1.0 handling of the calendar in corresponding setters. This is also compatible with MySQL calendar treatment.

setTransactionParameters

public void setTransactionParameters(int isolation,
                                     TransactionParameterBuffer tpb)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set transaction parameters for the specified transaction isolation level. The specified TPB is used as a default mapping for the specified isolation level.

Specified by:
setTransactionParameters in interface FirebirdConnectionProperties
Parameters:
isolation - transaction isolation level.
tpb - instance of TransactionParameterBuffer containing transaction parameters.

setUseStandardUdf

public void setUseStandardUdf(boolean useStandardUdf)
Deprecated. 
Specified by:
setUseStandardUdf in interface FirebirdConnectionProperties
Parameters:
useStandardUdf - true if driver should assume that standard UDF are installed.

setUseStreamBlobs

public void setUseStreamBlobs(boolean useStreamBlobs)
Deprecated. 
Specified by:
setUseStreamBlobs in interface FirebirdConnectionProperties
Parameters:
useStreamBlobs - true if stream blobs should be created, otherwise false.

setUseTranslation

public void setUseTranslation(java.lang.String translationPath)
Deprecated. 
Specified by:
setUseTranslation in interface FirebirdConnectionProperties
Parameters:
translationPath - path to the character translation table.

isDefaultResultSetHoldable

public boolean isDefaultResultSetHoldable()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the default ResultSet holdability.

Specified by:
isDefaultResultSetHoldable in interface FirebirdConnectionProperties
Returns:
true when ResultSets are holdable by default, false not holdable.

setDefaultResultSetHoldable

public void setDefaultResultSetHoldable(boolean isHoldable)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Sets the default ResultSet holdability.

Specified by:
setDefaultResultSetHoldable in interface FirebirdConnectionProperties
Parameters:
isHoldable - true when ResultSets are holdable by default, false not holdable.

getSoTimeout

public int getSoTimeout()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the current Socket blocking timeout (SoTimeout).

Specified by:
getSoTimeout in interface FirebirdConnectionProperties
Returns:
The socket blocking timeout in milliseconds (0 is 'infinite')

setSoTimeout

public void setSoTimeout(int soTimeout)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set the Socket blocking timeout (SoTimeout).

Specified by:
setSoTimeout in interface FirebirdConnectionProperties
Parameters:
soTimeout - Timeout in milliseconds (0 is 'infinite')

getConnectTimeout

public int getConnectTimeout()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get the current connect timeout.

Specified by:
getConnectTimeout in interface FirebirdConnectionProperties
Returns:
Connect timeout in seconds (0 is 'infinite', or better: OS specific timeout)

setConnectTimeout

public void setConnectTimeout(int connectTimeout)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set the connect timeout.

Specified by:
setConnectTimeout in interface FirebirdConnectionProperties
Parameters:
connectTimeout - Connect timeout in seconds (0 is 'infinite', or better: OS specific timeout)

isUseFirebirdAutocommit

public boolean isUseFirebirdAutocommit()
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Get whether to use Firebird autocommit (experimental).

Specified by:
isUseFirebirdAutocommit in interface FirebirdConnectionProperties
Returns:
use Firebird autocommit

setUseFirebirdAutocommit

public void setUseFirebirdAutocommit(boolean useFirebirdAutocommit)
Deprecated. 
Description copied from interface: FirebirdConnectionProperties
Set whether to use Firebird autocommit (experimental).

Specified by:
setUseFirebirdAutocommit in interface FirebirdConnectionProperties
Parameters:
useFirebirdAutocommit - true Use Firebird autocommit

getDefaultReference

public javax.naming.Reference getDefaultReference()
Deprecated. 
Description copied from class: BasicAbstractConnectionPool
Get default JNDI reference for this datasource. This method is called if datasource is used in non-JCA environment.

Overrides:
getDefaultReference in class BasicAbstractConnectionPool
Returns:
instance of Reference containing all information that allows to reconstruct the datasource.

processObjectInstance

protected java.lang.Object processObjectInstance(AbstractFBConnectionPoolDataSource ds,
                                                 javax.naming.Reference ref)
                                          throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

createObjectInstance

protected BasicAbstractConnectionPool createObjectInstance()
Deprecated. 
Specified by:
createObjectInstance in class BasicAbstractConnectionPool


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.