public class ObservableConnectionDS extends TimesTenDataSource implements javax.sql.ConnectionPoolDataSource
ObservableConnectionDS implements the javax.sql.ConnectionPoolDataSource, which is a factory for PooledConnection objects.
NOTE: TimesTen JDBC driver itself does NOT implement database connection pools. This class merely implements ConnectionPoolDataSource, a standard J2EE interface, which faciliates creation and management of database connection pools per the J2EE standard.
| Constructor and Description |
|---|
ObservableConnectionDS()
Creates new ObservableConnectionDS.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInitialPoolSize()
Initial pool size for the connection.
|
int |
getMaxIdleTime()
Maximum idle time for the connection pool.
|
int |
getMaxPoolSize()
Maximum pool size for the connection pool.
|
int |
getMaxStatements()
Returns the the total number of prepared statements that the pool keeps open.
|
int |
getMinPoolSize()
Minimum pool size for the connection pool.
|
javax.sql.PooledConnection |
getPooledConnection()
This method is a required part of the
ConnectionPoolDataSource interface. |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user, java.lang.String password)
This method is a required part of the
ConnectionPoolDataSource interface. |
int |
getPropertyCycle()
Property cycle.
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setInitialPoolSize(int initialPoolSize)
Set initial connection pool size.
|
void |
setMaxIdleTime(int maxIdleTime)
Set maximum idle time for the connection pool.
|
void |
setMaxPoolSize(int maxPoolSize)
Set maximum pool size for the connection pool.
|
void |
setMaxStatements(int maxStatements)
Sets the the total number of prepared statements that the pool keeps open.
|
void |
setMinPoolSize(int minPoolSize)
Set minimum pool size for the connection pool.
|
void |
setPropertyCycle(int propertyCycle)
Property cycle.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
createTimesTenConnectionBuilder, createTimesTenDistributionKeyBuilder, getConnection, getConnection, getDescription, getLoginTimeout, getLogWriter, getOraclePassword, getParentLogger, getPassword, getUrl, getUser, setDescription, setLoginTimeout, setLogWriter, setOraclePassword, setPassword, setUrl, setUsergetProtocol, getSubName, getSubProtocol, getSubProtocolType, isCSConnection, isDirectConnectionbytesToChars, charsToBytes, charsToBytes, hexPad, hexPairToInt, hexStringToByteArray, isConnectionBroken, toHexpublic ObservableConnectionDS()
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
maxStatements - The total number of prepared statements that the pool keeps open.public int getInitialPoolSize()
public void setInitialPoolSize(int initialPoolSize)
initialPoolSize - Initial pool size for the connection pool.public int getMinPoolSize()
public void setMinPoolSize(int minPoolSize)
minPoolSize - The minimum size for the connection pool.public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
maxPoolSize - Maximum pool size for the connection pool.public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
maxIdleTime - Maximum idle time for the connection pool.public int getPropertyCycle()
public void setPropertyCycle(int propertyCycle)
propertyCycle - Property cycle.public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
ConnectionPoolDataSource interface. Attempts to establish a physical database connection that can be used as a pooled connection by some connection pool implementation. This is an overloaded method.getPooledConnection in interface javax.sql.ConnectionPoolDataSourcePooledConnection object that is a physical connection to the database using the properties that this ConnectionPoolDataSource object has set at the time.java.sql.SQLException - if a database access error occurspublic javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
ConnectionPoolDataSource interface. Attempts to establish a physical database connection that can be used as a pooled connection by some connection pool implementation. This is an overloaded method.getPooledConnection in interface javax.sql.ConnectionPoolDataSourceuser - the database user on whose behalf the connection is being madepassword - the user's passwordPooledConnection object that is a physical connection to the database using the properties that this ConnectionPoolDataSource object has set at the time.java.sql.SQLException - if a database access error occurspublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.WrapperisWrapperFor in class TimesTenDataSourcejava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperunwrap in class TimesTenDataSourcejava.sql.SQLException