com.jnetdirect.jsql
Class JSQLConnectionPoolDataSource

java.lang.Object
  extended by com.jnetdirect.datasource.BaseDatasource
      extended by com.jnetdirect.jsql.JSQLDataSource
          extended by com.jnetdirect.jsql.JSQLConnectionPoolDataSource
All Implemented Interfaces:
java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.ConnectionPoolDataSource, javax.sql.DataSource
Direct Known Subclasses:
JSQLPoolingDataSource, JSQLXADataSource

public class JSQLConnectionPoolDataSource
extends JSQLDataSource
implements javax.sql.ConnectionPoolDataSource

ConnectionPoolDataSource provides physical database connections for connection pool managers. ConnectionPoolDataSource is typically used for managed environments that support built-in connection pooling and require a ConnectionPoolDataSource to provide physical connections. For example, J2EE application servers that provide connection pooling.

ConnectionPoolDataSource does not implement connection pooling directly. If you need connection pooling outside a managed environment please use PoolingDataSource.

Since:
1.0
Author:
David Murphy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jnetdirect.datasource.BaseDatasource
debugLog
 
Constructor Summary
JSQLConnectionPoolDataSource()
           
JSQLConnectionPoolDataSource(java.lang.String superclassName)
           
 
Method Summary
 javax.sql.PooledConnection getPooledConnection()
           
 javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password)
           
 boolean isWrapperFor(java.lang.Class iface)
           
 java.lang.Object unwrap(java.lang.Class iface)
           
 
Methods inherited from class com.jnetdirect.jsql.JSQLDataSource
getApplicationName, getAsciiStringParameters, getBooleanLiterals, getCodepage, getConnection, getConnection, getConnectionRetryCount, getConnectionRetryWait, getDisableStatementPooling, getDomain, getEnableFailover, getInstanceName, getIterativeBatching, getLastUpdateCount, getLockTimeout, getNetLibType, getPacketSize, getPreExecuteMetaData, getSelectMethod, getSqlVersion, getSsl, getSslTrusted, getTrustedAuthentication, getTrustedAuthenticationPort, getXopenStates, setApplicationName, setAsciiStringParameters, setBooleanLiterals, setCodepage, setConnectionRetryCount, setConnectionRetryWait, setDisableStatementPooling, setDomain, setEnableFailover, setInstanceName, setIterativeBatching, setLastUpdateCount, setLockTimeout, setNetLibType, setPacketSize, setPreExecuteMetaData, setSelectMethod, setSqlVersion, setSsl, setSslTrusted, setTrustedAuthentication, setTrustedAuthenticationPort, setXopenStates
 
Methods inherited from class com.jnetdirect.datasource.BaseDatasource
getConnectionVerifyTable, getDatabase, getDatabaseName, getDescription, getInitialPoolSize, getLogfile, getLoginTimeout, getLogWriter, getManagementCycleTime, getMaxConnectionBacklog, getMaxIdleTime, getMaxPoolSize, getMinPoolSize, getPassword, getPortNumber, getProperties, getPropertyCycle, getReference, getServerName, getUrl, getURL, getUser, setConnectionVerifyTable, setDatabase, setDatabaseName, setDescription, setInitialPoolSize, setLogfile, setLoginTimeout, setLogWriter, setManagementCycleTime, setMaxConnectionBacklog, setMaxIdleTime, setMaxPoolSize, setMinPoolSize, setPassword, setPortNumber, setProperties, setProperty, setPropertyCycle, setServerName, setUrl, setURL, setUser
 
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

JSQLConnectionPoolDataSource

public JSQLConnectionPoolDataSource()

JSQLConnectionPoolDataSource

public JSQLConnectionPoolDataSource(java.lang.String superclassName)
Method Detail

getPooledConnection

public javax.sql.PooledConnection getPooledConnection()
                                               throws java.sql.SQLException
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
Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Throws:
java.sql.SQLException

isWrapperFor

public boolean isWrapperFor(java.lang.Class iface)
                     throws java.sql.SQLException
Specified by:
isWrapperFor in interface java.sql.Wrapper
Overrides:
isWrapperFor in class JSQLDataSource
Throws:
java.sql.SQLException

unwrap

public java.lang.Object unwrap(java.lang.Class iface)
                        throws java.sql.SQLException
Specified by:
unwrap in interface java.sql.Wrapper
Overrides:
unwrap in class JSQLDataSource
Throws:
java.sql.SQLException