|
Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference 11g Release 2 (11.2.2) E21647-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.timesten.jdbc.JdbcOdbcObject
com.timesten.jdbc.TimesTenDriverBase
com.timesten.jdbc.TimesTenDataSource
com.timesten.jdbc.ObservableConnectionDS
public class ObservableConnectionDS
An 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.
| Field Summary |
|---|
| Fields inherited from class com.timesten.jdbc.JdbcOdbcObject |
|---|
TT_JAVA_TIME_DIFFERENCE |
| Constructor Summary | |
|---|---|
ObservableConnectionDS()Creates new ObservableConnectionDS. |
|
| Method Summary | ||
|---|---|---|
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. |
|
|
unwrap(java.lang.Class<T> iface) |
|
| Methods inherited from class com.timesten.jdbc.TimesTenDataSource |
|---|
getConnection, getConnection, getDescription, getLoginTimeout, getLogWriter, getOraclePassword, getPassword, getUrl, getUser, setDescription, setLoginTimeout, setLogWriter, setOraclePassword, setPassword, setUrl, setUser |
| Methods inherited from class com.timesten.jdbc.TimesTenDriverBase |
|---|
getProtocol, getSubName, getSubProtocol, getSubProtocolType, isCSConnection, isDirectConnection |
| Methods inherited from class com.timesten.jdbc.JdbcOdbcObject |
|---|
BytesToChars, CharsToBytes, CharsToBytes, hexPad, hexPairToInt, hexStringToByteArray, isConnectionBroken, toHex |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.CommonDataSource |
|---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Constructor Detail |
|---|
public ObservableConnectionDS()
| Method Detail |
|---|
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
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 -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 occurs
public 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 occurs
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.WrapperisWrapperFor in class TimesTenDataSourcejava.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperunwrap in class TimesTenDataSourcejava.sql.SQLException
|
Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference 11g Release 2 (11.2.2) E21647-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||