public class TrafT4ConnectionPoolDataSource extends T4DSProperties implements ConnectionPoolDataSource, Serializable, Referenceable
JDBC Type 4 Driver ConnectionPoolDataSource class.
Description: A ConnectionPoolDataSource object is a factory
for PooledConnection objects. As the name indicates, this
object provides a PooledConnection for data sources to be used
by the application servers.
The TrafT4ConnectionPoolDataSource class should be used to
provide JDBC3.0 connection pooling features. The
TrafT4ConnectionPoolDataSource is used by the application
servers like WSAS to provide connection pooling features to the J2EE
applications. TrafT4ConnectionPoolDataSource.getPooledConnection()
returns the javax.sql.PooledConnection object.
Licensed to the Apache Software Foundation (ASF)
T4Properties,
TrafT4DataSource,
Serialized Form| Constructor and Description |
|---|
TrafT4ConnectionPoolDataSource()
Creates a pooled connection object.
|
TrafT4ConnectionPoolDataSource(Properties props)
Creates a pooled connection object with the properties specified.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNameType()
Deprecated.
|
Logger |
getParentLogger() |
PooledConnection |
getPooledConnection()
Attempts to establish a physical database connection that can be used as
a pooled connection.
|
PooledConnection |
getPooledConnection(String username,
String password)
Attempts to establish a physical database connection that can be used as
a pooled connection.
|
int |
getPropertyCycle()
Returns the Property cycle property.
|
Reference |
getReference()
Returns all the properties associated with this
ConnectionPoolDataSource. |
void |
setNameType(String nameType)
Deprecated.
|
void |
setPropertyCycle(int propertyCycle)
Sets the Property cycle property.
|
getBlobTableName, getCatalog, getClobTableName, getConnectionTimeout, getDataSourceName, getDescription, getInitialPoolSize, getLocale, getLoginTimeout, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize, getNetworkTimeout, getReserveDataLocator, getRoundingMode, getSchema, getServerDataSource, getT4LogFile, getT4LogLevel, getUrl, getURL, getUser, setBlobTableName, setCatalog, setClobTableName, setConnectionTimeout, setConnectionTimeout, setDataSourceName, setDescription, setInitialPoolSize, setInitialPoolSize, setLoginTimeout, setLoginTimeout, setMaxIdleTime, setMaxIdleTime, setMaxPoolSize, setMaxPoolSize, setMaxStatements, setMaxStatements, setMinPoolSize, setMinPoolSize, setNetworkTimeout, setNetworkTimeout, setPassword, setReserveDataLocator, setReserveDataLocator, setRoundingMode, setRoundingMode, setSchema, setServerDataSource, setT4LogFile, setT4LogLevel, setUrl, setURL, setUsergetApplicationName, getCertificateDir, getCertificateFile, getCertificateFileActive, getCompression, getCpuToUse, getDelayedErrorMode, getKeepAlive, getKeepRawFetchBuffer, getLogWriter, getProperties, getReplacementString, getRoleName, getSessionName, getSPJEnv, getTcpNoDelay, getTokenAuth, setApplicationName, setCertificateDir, setCertificateFile, setCertificateFileActive, setCompression, setCompression, setCpuToUse, setCpuToUse, setDelayedErrorMode, setDelayedErrorMode, setKeepAlive, setKeepAlive, setKeepRawFetchBuffer, setKeepRawFetchBuffer, setLogWriter, setReplacementString, setRoleName, setSessionName, setSPJEnv, setSPJEnv, setTcp_NoDelay, setTcpNoDelay, setTokenAuth, setTokenAuthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterpublic TrafT4ConnectionPoolDataSource()
public TrafT4ConnectionPoolDataSource(Properties props)
props - properties for the Type 4 connectionTrafT4ConnectionPoolDataSource()public PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourcePooledConnection object that is a physical
connection to the NDCS server that this
TrafT4ConnectionPoolDataSource object represents.SQLException - If any NDCS error occurs.public PooledConnection getPooledConnection(String username, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceusername - Safeguard user name.password - Safeguard user password.PooledConnection object that is a physical
connection to the NDCS server that this
TrafT4ConnectionPoolDataSource object represents.SQLException - If any NDCS error occurs.public Reference getReference() throws NamingException
ConnectionPoolDataSource.getReference in interface ReferenceableNamingExceptionpublic void setPropertyCycle(int propertyCycle)
propertyCycle - public int getPropertyCycle()
public void setNameType(String nameType)
public String getNameType()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2017. All Rights Reserved.