com.mchange.v2.c3p0
Class JndiRefConnectionPoolDataSource
java.lang.Object
com.mchange.v2.c3p0.JndiRefConnectionPoolDataSource
- All Implemented Interfaces:
- javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable, java.io.Serializable
- public final class JndiRefConnectionPoolDataSource
- extends java.lang.Object
- implements javax.sql.ConnectionPoolDataSource, java.io.Serializable, javax.naming.Referenceable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiRefConnectionPoolDataSource
public JndiRefConnectionPoolDataSource()
isJndiLookupCaching
public boolean isJndiLookupCaching()
setJndiLookupCaching
public void setJndiLookupCaching(boolean caching)
getJndiEnv
public java.util.Hashtable getJndiEnv()
setJndiEnv
public void setJndiEnv(java.util.Hashtable jndiEnv)
getJndiName
public java.lang.Object getJndiName()
setJndiName
public void setJndiName(java.lang.Object jndiName)
throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
getAcquireIncrement
public int getAcquireIncrement()
setAcquireIncrement
public void setAcquireIncrement(int acquireIncrement)
isAutoCommitOnClose
public boolean isAutoCommitOnClose()
setAutoCommitOnClose
public void setAutoCommitOnClose(boolean autoCommitOnClose)
getConnectionTesterClassName
public java.lang.String getConnectionTesterClassName()
setConnectionTesterClassName
public void setConnectionTesterClassName(java.lang.String connectionTesterClassName)
throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
isForceIgnoreUnresolvedTransactions
public boolean isForceIgnoreUnresolvedTransactions()
setForceIgnoreUnresolvedTransactions
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
getIdleConnectionTestPeriod
public int getIdleConnectionTestPeriod()
setIdleConnectionTestPeriod
public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
getInitialPoolSize
public int getInitialPoolSize()
setInitialPoolSize
public void setInitialPoolSize(int initialPoolSize)
getMaxIdleTime
public int getMaxIdleTime()
setMaxIdleTime
public void setMaxIdleTime(int maxIdleTime)
getMaxPoolSize
public int getMaxPoolSize()
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize)
getMaxStatements
public int getMaxStatements()
setMaxStatements
public void setMaxStatements(int maxStatements)
getMinPoolSize
public int getMinPoolSize()
setMinPoolSize
public void setMinPoolSize(int minPoolSize)
getPropertyCycle
public int getPropertyCycle()
setPropertyCycle
public void setPropertyCycle(int propertyCycle)
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout()
setTestConnectionOnCheckout
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
getFactoryClassLocation
public java.lang.String getFactoryClassLocation()
setFactoryClassLocation
public void setFactoryClassLocation(java.lang.String factoryClassLocation)
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Specified by:
getReference
in interface javax.naming.Referenceable
- Throws:
javax.naming.NamingException
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
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- Specified by:
setLogWriter
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interface javax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException