Package com.mchange.v2.c3p0
Class JndiRefConnectionPoolDataSource
- java.lang.Object
-
- com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
-
- com.mchange.v2.c3p0.impl.IdentityTokenResolvable
-
- com.mchange.v2.c3p0.JndiRefConnectionPoolDataSource
-
- All Implemented Interfaces:
IdentityTokenized
,java.io.Serializable
,javax.naming.Referenceable
,javax.sql.CommonDataSource
,javax.sql.ConnectionPoolDataSource
public final class JndiRefConnectionPoolDataSource extends IdentityTokenResolvable implements javax.sql.ConnectionPoolDataSource, java.io.Serializable, javax.naming.Referenceable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JndiRefConnectionPoolDataSource()
JndiRefConnectionPoolDataSource(boolean autoregister)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAcquireIncrement()
int
getAcquireRetryAttempts()
int
getAcquireRetryDelay()
java.lang.String
getAutomaticTestTable()
int
getCheckoutTimeout()
java.lang.String
getConnectionCustomizerClassName()
int
getConnectionIsValidTimeout()
java.lang.String
getConnectionTesterClassName()
java.lang.String
getContextClassLoaderSource()
java.lang.String
getFactoryClassLocation()
java.lang.String
getIdentityToken()
int
getIdleConnectionTestPeriod()
int
getInitialPoolSize()
java.util.Hashtable
getJndiEnv()
java.lang.Object
getJndiName()
int
getLoginTimeout()
java.io.PrintWriter
getLogWriter()
java.lang.String
getMarkSessionBoundaries()
int
getMaxAdministrativeTaskTime()
int
getMaxConnectionAge()
int
getMaxIdleTime()
int
getMaxIdleTimeExcessConnections()
int
getMaxPoolSize()
int
getMaxStatements()
int
getMaxStatementsPerConnection()
int
getMinPoolSize()
java.util.logging.Logger
getParentLogger()
javax.sql.PooledConnection
getPooledConnection()
javax.sql.PooledConnection
getPooledConnection(java.lang.String user, java.lang.String password)
java.lang.String
getPreferredTestQuery()
int
getPropertyCycle()
javax.naming.Reference
getReference()
int
getStatementCacheNumDeferredCloseThreads()
java.lang.String
getTaskRunnerFactoryClassName()
int
getUnreturnedConnectionTimeout()
java.lang.String
getUserOverridesAsString()
boolean
isAttemptResurrectOnCheckin()
boolean
isAutoCommitOnClose()
boolean
isBreakAfterAcquireFailure()
boolean
isDebugUnreturnedConnectionStackTraces()
boolean
isForceIgnoreUnresolvedTransactions()
boolean
isForceSynchronousCheckins()
boolean
isJndiLookupCaching()
boolean
isPrivilegeSpawnedThreads()
boolean
isTestConnectionOnCheckin()
boolean
isTestConnectionOnCheckout()
void
setAcquireIncrement(int acquireIncrement)
void
setAcquireRetryAttempts(int ara)
void
setAcquireRetryDelay(int ard)
void
setAttemptResurrectOnCheckin(boolean attemptResurrectOnCheckin)
void
setAutoCommitOnClose(boolean autoCommitOnClose)
void
setAutomaticTestTable(java.lang.String att)
void
setBreakAfterAcquireFailure(boolean baaf)
void
setCheckoutTimeout(int ct)
void
setConnectionCustomizerClassName(java.lang.String connectionCustomizerClassName)
void
setConnectionIsValidTimeout(int civt)
void
setConnectionTesterClassName(java.lang.String connectionTesterClassName)
void
setContextClassLoaderSource(java.lang.String contextClassLoaderSource)
void
setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces)
void
setFactoryClassLocation(java.lang.String factoryClassLocation)
void
setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
void
setForceSynchronousCheckins(boolean forceSynchronousCheckins)
void
setIdentityToken(java.lang.String identityToken)
void
setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
void
setInitialPoolSize(int initialPoolSize)
void
setJndiEnv(java.util.Hashtable jndiEnv)
void
setJndiLookupCaching(boolean caching)
void
setJndiName(java.lang.Object jndiName)
void
setLoginTimeout(int seconds)
void
setLogWriter(java.io.PrintWriter out)
void
setMarkSessionBoundaries(java.lang.String markSessionBoundaries)
void
setMaxAdministrativeTaskTime(int maxAdministrativeTaskTime)
void
setMaxConnectionAge(int maxConnectionAge)
void
setMaxIdleTime(int maxIdleTime)
void
setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections)
void
setMaxPoolSize(int maxPoolSize)
void
setMaxStatements(int maxStatements)
void
setMaxStatementsPerConnection(int mspc)
void
setMinPoolSize(int minPoolSize)
void
setPreferredTestQuery(java.lang.String ptq)
void
setPrivilegeSpawnedThreads(boolean privilegeSpawnedThreads)
void
setPropertyCycle(int propertyCycle)
void
setStatementCacheNumDeferredCloseThreads(int statementCacheNumDeferredCloseThreads)
void
setTaskRunnerFactoryClassName(java.lang.String taskRunnerFactoryClassName)
void
setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
void
setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
void
setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout)
void
setUserOverridesAsString(java.lang.String userOverridesAsString)
java.lang.String
toString()
-
Methods inherited from class com.mchange.v2.c3p0.impl.IdentityTokenResolvable
doResolve, readResolve, verifyResolve
-
Methods inherited from class com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
equals, hashCode
-
-
-
-
Method Detail
-
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)
-
getAcquireRetryAttempts
public int getAcquireRetryAttempts()
-
setAcquireRetryAttempts
public void setAcquireRetryAttempts(int ara)
-
getAcquireRetryDelay
public int getAcquireRetryDelay()
-
setAcquireRetryDelay
public void setAcquireRetryDelay(int ard)
-
isAttemptResurrectOnCheckin
public boolean isAttemptResurrectOnCheckin()
-
setAttemptResurrectOnCheckin
public void setAttemptResurrectOnCheckin(boolean attemptResurrectOnCheckin)
-
isAutoCommitOnClose
public boolean isAutoCommitOnClose()
-
setAutoCommitOnClose
public void setAutoCommitOnClose(boolean autoCommitOnClose)
-
setAutomaticTestTable
public void setAutomaticTestTable(java.lang.String att)
-
getAutomaticTestTable
public java.lang.String getAutomaticTestTable()
-
setBreakAfterAcquireFailure
public void setBreakAfterAcquireFailure(boolean baaf)
-
isBreakAfterAcquireFailure
public boolean isBreakAfterAcquireFailure()
-
setCheckoutTimeout
public void setCheckoutTimeout(int ct)
-
getCheckoutTimeout
public int getCheckoutTimeout()
-
setConnectionIsValidTimeout
public void setConnectionIsValidTimeout(int civt)
-
getConnectionIsValidTimeout
public int getConnectionIsValidTimeout()
-
getConnectionTesterClassName
public java.lang.String getConnectionTesterClassName()
-
setConnectionTesterClassName
public void setConnectionTesterClassName(java.lang.String connectionTesterClassName) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
getConnectionCustomizerClassName
public java.lang.String getConnectionCustomizerClassName()
-
setConnectionCustomizerClassName
public void setConnectionCustomizerClassName(java.lang.String connectionCustomizerClassName) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
getTaskRunnerFactoryClassName
public java.lang.String getTaskRunnerFactoryClassName()
-
setTaskRunnerFactoryClassName
public void setTaskRunnerFactoryClassName(java.lang.String taskRunnerFactoryClassName) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
getContextClassLoaderSource
public java.lang.String getContextClassLoaderSource()
-
setContextClassLoaderSource
public void setContextClassLoaderSource(java.lang.String contextClassLoaderSource) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
isDebugUnreturnedConnectionStackTraces
public boolean isDebugUnreturnedConnectionStackTraces()
-
setDebugUnreturnedConnectionStackTraces
public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces)
-
isForceIgnoreUnresolvedTransactions
public boolean isForceIgnoreUnresolvedTransactions()
-
setForceIgnoreUnresolvedTransactions
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
-
isForceSynchronousCheckins
public boolean isForceSynchronousCheckins()
-
setForceSynchronousCheckins
public void setForceSynchronousCheckins(boolean forceSynchronousCheckins)
-
getIdentityToken
public java.lang.String getIdentityToken()
- Specified by:
getIdentityToken
in interfaceIdentityTokenized
-
setIdentityToken
public void setIdentityToken(java.lang.String identityToken)
- Specified by:
setIdentityToken
in interfaceIdentityTokenized
-
setIdleConnectionTestPeriod
public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
-
getIdleConnectionTestPeriod
public int getIdleConnectionTestPeriod()
-
getInitialPoolSize
public int getInitialPoolSize()
-
setInitialPoolSize
public void setInitialPoolSize(int initialPoolSize)
-
getMarkSessionBoundaries
public java.lang.String getMarkSessionBoundaries()
-
setMarkSessionBoundaries
public void setMarkSessionBoundaries(java.lang.String markSessionBoundaries) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
getMaxIdleTime
public int getMaxIdleTime()
-
setMaxIdleTime
public void setMaxIdleTime(int maxIdleTime)
-
getMaxIdleTimeExcessConnections
public int getMaxIdleTimeExcessConnections()
-
setMaxIdleTimeExcessConnections
public void setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections)
-
getMaxPoolSize
public int getMaxPoolSize()
-
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize)
-
getMaxStatements
public int getMaxStatements()
-
setMaxStatements
public void setMaxStatements(int maxStatements)
-
getMaxStatementsPerConnection
public int getMaxStatementsPerConnection()
-
setMaxStatementsPerConnection
public void setMaxStatementsPerConnection(int mspc)
-
getMinPoolSize
public int getMinPoolSize()
-
setMinPoolSize
public void setMinPoolSize(int minPoolSize)
-
getMaxAdministrativeTaskTime
public int getMaxAdministrativeTaskTime()
-
setMaxAdministrativeTaskTime
public void setMaxAdministrativeTaskTime(int maxAdministrativeTaskTime)
-
getMaxConnectionAge
public int getMaxConnectionAge()
-
setMaxConnectionAge
public void setMaxConnectionAge(int maxConnectionAge)
-
getPreferredTestQuery
public java.lang.String getPreferredTestQuery()
-
setPreferredTestQuery
public void setPreferredTestQuery(java.lang.String ptq)
-
getUserOverridesAsString
public java.lang.String getUserOverridesAsString()
-
setUserOverridesAsString
public void setUserOverridesAsString(java.lang.String userOverridesAsString) throws java.beans.PropertyVetoException
- Throws:
java.beans.PropertyVetoException
-
getPropertyCycle
public int getPropertyCycle()
-
setPropertyCycle
public void setPropertyCycle(int propertyCycle)
-
getUnreturnedConnectionTimeout
public int getUnreturnedConnectionTimeout()
-
setUnreturnedConnectionTimeout
public void setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout)
-
getStatementCacheNumDeferredCloseThreads
public int getStatementCacheNumDeferredCloseThreads()
-
setStatementCacheNumDeferredCloseThreads
public void setStatementCacheNumDeferredCloseThreads(int statementCacheNumDeferredCloseThreads)
-
isTestConnectionOnCheckin
public boolean isTestConnectionOnCheckin()
-
setTestConnectionOnCheckin
public void setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
-
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout()
-
setTestConnectionOnCheckout
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
-
isPrivilegeSpawnedThreads
public boolean isPrivilegeSpawnedThreads()
-
setPrivilegeSpawnedThreads
public void setPrivilegeSpawnedThreads(boolean privilegeSpawnedThreads)
-
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 interfacejavax.naming.Referenceable
- Throws:
javax.naming.NamingException
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
- Specified by:
getPooledConnection
in interfacejavax.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 interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getLogWriter
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
- Specified by:
getLogWriter
in interfacejavax.sql.CommonDataSource
- Specified by:
getLogWriter
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
setLogWriter
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
- Specified by:
setLogWriter
in interfacejavax.sql.CommonDataSource
- Specified by:
setLogWriter
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interfacejavax.sql.CommonDataSource
- Specified by:
setLoginTimeout
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getLoginTimeout
public int getLoginTimeout() throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interfacejavax.sql.CommonDataSource
- Specified by:
getLoginTimeout
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interfacejavax.sql.CommonDataSource
- Throws:
java.sql.SQLFeatureNotSupportedException
-
-