org.enhydra.jdbc.standard
Class StandardConnectionPoolDataSource
java.lang.Object
org.enhydra.jdbc.util.JdbcUtil
org.enhydra.jdbc.core.CoreDataSource
org.enhydra.jdbc.standard.StandardDataSource
org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
- All Implemented Interfaces:
- javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.naming.spi.ObjectFactory, javax.naming.Referenceable, java.io.Serializable
- Direct Known Subclasses:
- InformixConnectionPoolDataSource, StandardXADataSource, SybaseConnectionPoolDataSource
- public class StandardConnectionPoolDataSource
- extends StandardDataSource
- implements javax.sql.ConnectionPoolDataSource
A data source used to create generic pooled connections (factory)
- See Also:
- Serialized Form
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
log |
Methods inherited from class org.enhydra.jdbc.standard.StandardDataSource |
equals, getConnection, getConnection, getDriverName, getObjectInstance, getReference, getTransactionIsolation, getUrl, hashCode, setDriverName, setTransactionIsolation, setUrl |
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setPassword, setThreadFactory, setUser, setVerbose, shutdown |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
DEFAULT_PREPAREDSTMTCACHESIZE
public static final int DEFAULT_PREPAREDSTMTCACHESIZE
- See Also:
- Constant Field Values
StandardConnectionPoolDataSource
public StandardConnectionPoolDataSource()
- Constructor.
getPooledConnection
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
- Create a pooled connection using the default username and password.
- Specified by:
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Create a standard pooled connection using the supplied username and password.
- Specified by:
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
getMasterPrepStmtCache
public java.util.Hashtable getMasterPrepStmtCache()
getPreparedStmtCacheSize
public int getPreparedStmtCacheSize()
- Gets the size of the prepared statement cache
setPreparedStmtCacheSize
public void setPreparedStmtCacheSize(int value)
- Sets the size of the prepared statement cache
toString
public java.lang.String toString()
- Overrides:
toString
in class StandardDataSource