Class JndiRefConnectionPoolDataSource

All Implemented Interfaces:
IdentityTokenized, Serializable, Referenceable, CommonDataSource, ConnectionPoolDataSource

public final class JndiRefConnectionPoolDataSource extends IdentityTokenResolvable implements ConnectionPoolDataSource, Serializable, Referenceable
See Also:
  • Constructor Details

    • JndiRefConnectionPoolDataSource

      public JndiRefConnectionPoolDataSource()
    • JndiRefConnectionPoolDataSource

      public JndiRefConnectionPoolDataSource(boolean autoregister)
  • Method Details

    • isJndiLookupCaching

      public boolean isJndiLookupCaching()
    • setJndiLookupCaching

      public void setJndiLookupCaching(boolean caching)
    • getJndiEnv

      public Hashtable getJndiEnv()
    • setJndiEnv

      public void setJndiEnv(Hashtable jndiEnv)
    • getJndiName

      public Object getJndiName()
    • setJndiName

      public void setJndiName(Object jndiName) throws PropertyVetoException
      Throws:
      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)
    • isCancelAutomaticallyClosedStatements

      public boolean isCancelAutomaticallyClosedStatements()
    • setCancelAutomaticallyClosedStatements

      public void setCancelAutomaticallyClosedStatements(boolean cancelAutomaticallyClosedStatements)
    • setAutomaticTestTable

      public void setAutomaticTestTable(String att)
    • getAutomaticTestTable

      public 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 String getConnectionTesterClassName()
    • setConnectionTesterClassName

      public void setConnectionTesterClassName(String connectionTesterClassName) throws PropertyVetoException
      Throws:
      PropertyVetoException
    • getConnectionCustomizerClassName

      public String getConnectionCustomizerClassName()
    • setConnectionCustomizerClassName

      public void setConnectionCustomizerClassName(String connectionCustomizerClassName) throws PropertyVetoException
      Throws:
      PropertyVetoException
    • getTaskRunnerFactoryClassName

      public String getTaskRunnerFactoryClassName()
    • setTaskRunnerFactoryClassName

      public void setTaskRunnerFactoryClassName(String taskRunnerFactoryClassName) throws PropertyVetoException
      Throws:
      PropertyVetoException
    • getContextClassLoaderSource

      public String getContextClassLoaderSource()
    • setContextClassLoaderSource

      public void setContextClassLoaderSource(String contextClassLoaderSource) throws PropertyVetoException
      Throws:
      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 String getIdentityToken()
      Specified by:
      getIdentityToken in interface IdentityTokenized
    • setIdentityToken

      public void setIdentityToken(String identityToken)
      Specified by:
      setIdentityToken in interface IdentityTokenized
    • setIdleConnectionTestPeriod

      public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
    • getIdleConnectionTestPeriod

      public int getIdleConnectionTestPeriod()
    • getInitialPoolSize

      public int getInitialPoolSize()
    • setInitialPoolSize

      public void setInitialPoolSize(int initialPoolSize)
    • getMarkSessionBoundaries

      public String getMarkSessionBoundaries()
    • setMarkSessionBoundaries

      public void setMarkSessionBoundaries(String markSessionBoundaries) throws PropertyVetoException
      Throws:
      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 String getPreferredTestQuery()
    • setPreferredTestQuery

      public void setPreferredTestQuery(String ptq)
    • getUserOverridesAsString

      public String getUserOverridesAsString()
    • setUserOverridesAsString

      public void setUserOverridesAsString(String userOverridesAsString) throws PropertyVetoException
      Throws:
      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 String getFactoryClassLocation()
    • setFactoryClassLocation

      public void setFactoryClassLocation(String factoryClassLocation)
    • getReference

      public Reference getReference() throws NamingException
      Specified by:
      getReference in interface Referenceable
      Throws:
      NamingException
    • getPooledConnection

      public PooledConnection getPooledConnection() throws SQLException
      Specified by:
      getPooledConnection in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • getPooledConnection

      public PooledConnection getPooledConnection(String user, String password) throws SQLException
      Specified by:
      getPooledConnection in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • getLogWriter

      public PrintWriter getLogWriter() throws SQLException
      Specified by:
      getLogWriter in interface CommonDataSource
      Specified by:
      getLogWriter in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • setLogWriter

      public void setLogWriter(PrintWriter out) throws SQLException
      Specified by:
      setLogWriter in interface CommonDataSource
      Specified by:
      setLogWriter in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • setLoginTimeout

      public void setLoginTimeout(int seconds) throws SQLException
      Specified by:
      setLoginTimeout in interface CommonDataSource
      Specified by:
      setLoginTimeout in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • getLoginTimeout

      public int getLoginTimeout() throws SQLException
      Specified by:
      getLoginTimeout in interface CommonDataSource
      Specified by:
      getLoginTimeout in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getParentLogger

      public Logger getParentLogger() throws SQLFeatureNotSupportedException
      Specified by:
      getParentLogger in interface CommonDataSource
      Throws:
      SQLFeatureNotSupportedException