com.mchange.v2.c3p0
类 JndiRefConnectionPoolDataSource
java.lang.Object
com.mchange.v2.c3p0.impl.AbstractIdentityTokenized
com.mchange.v2.c3p0.impl.IdentityTokenResolvable
com.mchange.v2.c3p0.JndiRefConnectionPoolDataSource
- 所有已实现的接口:
- com.mchange.v2.c3p0.impl.IdentityTokenized, java.io.Serializable, javax.naming.Referenceable, javax.sql.ConnectionPoolDataSource
public final class JndiRefConnectionPoolDataSource
- extends com.mchange.v2.c3p0.impl.IdentityTokenResolvable
- implements javax.sql.ConnectionPoolDataSource, java.io.Serializable, javax.naming.Referenceable
- 另请参见:
- 序列化表格
从类 com.mchange.v2.c3p0.impl.IdentityTokenResolvable 继承的方法 |
doResolve, readResolve, verifyResolve |
从类 com.mchange.v2.c3p0.impl.AbstractIdentityTokenized 继承的方法 |
equals, hashCode |
从类 java.lang.Object 继承的方法 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JndiRefConnectionPoolDataSource
public JndiRefConnectionPoolDataSource()
JndiRefConnectionPoolDataSource
public JndiRefConnectionPoolDataSource(boolean autoregister)
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
- 抛出:
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)
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()
getConnectionTesterClassName
public java.lang.String getConnectionTesterClassName()
setConnectionTesterClassName
public void setConnectionTesterClassName(java.lang.String connectionTesterClassName)
throws java.beans.PropertyVetoException
- 抛出:
java.beans.PropertyVetoException
isForceIgnoreUnresolvedTransactions
public boolean isForceIgnoreUnresolvedTransactions()
setForceIgnoreUnresolvedTransactions
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
getIdentityToken
public java.lang.String getIdentityToken()
- 指定者:
- 接口
com.mchange.v2.c3p0.impl.IdentityTokenized
中的 getIdentityToken
setIdentityToken
public void setIdentityToken(java.lang.String identityToken)
- 指定者:
- 接口
com.mchange.v2.c3p0.impl.IdentityTokenized
中的 setIdentityToken
setIdleConnectionTestPeriod
public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
getIdleConnectionTestPeriod
public int getIdleConnectionTestPeriod()
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)
getMaxStatementsPerConnection
public int getMaxStatementsPerConnection()
setMaxStatementsPerConnection
public void setMaxStatementsPerConnection(int mspc)
getMinPoolSize
public int getMinPoolSize()
setMinPoolSize
public void setMinPoolSize(int minPoolSize)
getPreferredTestQuery
public java.lang.String getPreferredTestQuery()
setPreferredTestQuery
public void setPreferredTestQuery(java.lang.String ptq)
getPropertyCycle
public int getPropertyCycle()
setPropertyCycle
public void setPropertyCycle(int propertyCycle)
isTestConnectionOnCheckin
public boolean isTestConnectionOnCheckin()
setTestConnectionOnCheckin
public void setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout()
setTestConnectionOnCheckout
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
isUsesTraditionalReflectiveProxies
public boolean isUsesTraditionalReflectiveProxies()
setUsesTraditionalReflectiveProxies
public void setUsesTraditionalReflectiveProxies(boolean utrp)
getFactoryClassLocation
public java.lang.String getFactoryClassLocation()
setFactoryClassLocation
public void setFactoryClassLocation(java.lang.String factoryClassLocation)
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- 指定者:
- 接口
javax.naming.Referenceable
中的 getReference
- 抛出:
javax.naming.NamingException
getPooledConnection
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 getPooledConnection
- 抛出:
java.sql.SQLException
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 getPooledConnection
- 抛出:
java.sql.SQLException
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 getLogWriter
- 抛出:
java.sql.SQLException
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 setLogWriter
- 抛出:
java.sql.SQLException
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 setLoginTimeout
- 抛出:
java.sql.SQLException
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- 指定者:
- 接口
javax.sql.ConnectionPoolDataSource
中的 getLoginTimeout
- 抛出:
java.sql.SQLException
toString
public java.lang.String toString()
- 覆盖:
- 类
java.lang.Object
中的 toString