public abstract class WrapperConnectionPoolDataSourceBase extends IdentityTokenResolvable implements javax.naming.Referenceable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.beans.PropertyChangeSupport |
pcs |
protected java.beans.VetoableChangeSupport |
vcs |
Constructor and Description |
---|
WrapperConnectionPoolDataSourceBase(boolean autoregister) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl) |
void |
addPropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener pcl) |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener vcl) |
protected java.lang.String |
extraToStringInfo() |
int |
getAcquireIncrement() |
int |
getAcquireRetryAttempts() |
int |
getAcquireRetryDelay() |
java.lang.String |
getAutomaticTestTable() |
int |
getCheckoutTimeout() |
java.lang.String |
getConnectionCustomizerClassName() |
java.lang.String |
getConnectionTesterClassName() |
java.lang.String |
getContextClassLoaderSource() |
java.lang.String |
getFactoryClassLocation() |
java.lang.String |
getIdentityToken() |
int |
getIdleConnectionTestPeriod() |
int |
getInitialPoolSize() |
int |
getMaxAdministrativeTaskTime() |
int |
getMaxConnectionAge() |
int |
getMaxIdleTime() |
int |
getMaxIdleTimeExcessConnections() |
int |
getMaxPoolSize() |
int |
getMaxStatements() |
int |
getMaxStatementsPerConnection() |
int |
getMinPoolSize() |
javax.sql.DataSource |
getNestedDataSource() |
java.lang.String |
getOverrideDefaultPassword() |
java.lang.String |
getOverrideDefaultUser() |
java.util.logging.Logger |
getParentLogger() |
protected abstract javax.sql.PooledConnection |
getPooledConnection(ConnectionCustomizer cc,
java.lang.String idt) |
protected abstract javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password,
ConnectionCustomizer cc,
java.lang.String idt) |
java.lang.String |
getPreferredTestQuery() |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners() |
protected java.beans.PropertyChangeSupport |
getPropertyChangeSupport() |
int |
getPropertyCycle() |
javax.naming.Reference |
getReference() |
int |
getStatementCacheNumDeferredCloseThreads() |
int |
getUnreturnedConnectionTimeout() |
java.lang.String |
getUserOverridesAsString() |
java.beans.VetoableChangeListener[] |
getVetoableChangeListeners() |
protected java.beans.VetoableChangeSupport |
getVetoableChangeSupport() |
boolean |
isAutoCommitOnClose() |
boolean |
isBreakAfterAcquireFailure() |
boolean |
isDebugUnreturnedConnectionStackTraces() |
boolean |
isForceIgnoreUnresolvedTransactions() |
boolean |
isPrivilegeSpawnedThreads() |
boolean |
isTestConnectionOnCheckin() |
boolean |
isTestConnectionOnCheckout() |
boolean |
isUsesTraditionalReflectiveProxies() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl) |
void |
removePropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener pcl) |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener vcl) |
void |
setAcquireIncrement(int acquireIncrement) |
void |
setAcquireRetryAttempts(int acquireRetryAttempts) |
void |
setAcquireRetryDelay(int acquireRetryDelay) |
void |
setAutoCommitOnClose(boolean autoCommitOnClose) |
void |
setAutomaticTestTable(java.lang.String automaticTestTable) |
void |
setBreakAfterAcquireFailure(boolean breakAfterAcquireFailure) |
void |
setCheckoutTimeout(int checkoutTimeout) |
void |
setConnectionCustomizerClassName(java.lang.String connectionCustomizerClassName) |
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 |
setIdentityToken(java.lang.String identityToken) |
void |
setIdleConnectionTestPeriod(int idleConnectionTestPeriod) |
void |
setInitialPoolSize(int initialPoolSize) |
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 maxStatementsPerConnection) |
void |
setMinPoolSize(int minPoolSize) |
void |
setNestedDataSource(javax.sql.DataSource nestedDataSource) |
void |
setOverrideDefaultPassword(java.lang.String overrideDefaultPassword) |
void |
setOverrideDefaultUser(java.lang.String overrideDefaultUser) |
void |
setPreferredTestQuery(java.lang.String preferredTestQuery) |
void |
setPrivilegeSpawnedThreads(boolean privilegeSpawnedThreads) |
void |
setPropertyCycle(int propertyCycle) |
void |
setStatementCacheNumDeferredCloseThreads(int statementCacheNumDeferredCloseThreads) |
void |
setTestConnectionOnCheckin(boolean testConnectionOnCheckin) |
void |
setTestConnectionOnCheckout(boolean testConnectionOnCheckout) |
void |
setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout) |
void |
setUserOverridesAsString(java.lang.String userOverridesAsString) |
void |
setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies) |
java.lang.String |
toString() |
doResolve, readResolve, verifyResolve
equals, hashCode
protected java.beans.PropertyChangeSupport pcs
protected java.beans.VetoableChangeSupport vcs
public WrapperConnectionPoolDataSourceBase(boolean autoregister)
protected java.beans.PropertyChangeSupport getPropertyChangeSupport()
protected java.beans.VetoableChangeSupport getVetoableChangeSupport()
public int getAcquireIncrement()
public void setAcquireIncrement(int acquireIncrement)
public int getAcquireRetryAttempts()
public void setAcquireRetryAttempts(int acquireRetryAttempts)
public int getAcquireRetryDelay()
public void setAcquireRetryDelay(int acquireRetryDelay)
public boolean isAutoCommitOnClose()
public void setAutoCommitOnClose(boolean autoCommitOnClose)
public java.lang.String getAutomaticTestTable()
public void setAutomaticTestTable(java.lang.String automaticTestTable)
public boolean isBreakAfterAcquireFailure()
public void setBreakAfterAcquireFailure(boolean breakAfterAcquireFailure)
public int getCheckoutTimeout()
public void setCheckoutTimeout(int checkoutTimeout)
public java.lang.String getConnectionCustomizerClassName()
public void setConnectionCustomizerClassName(java.lang.String connectionCustomizerClassName)
public java.lang.String getConnectionTesterClassName()
public void setConnectionTesterClassName(java.lang.String connectionTesterClassName) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public java.lang.String getContextClassLoaderSource()
public void setContextClassLoaderSource(java.lang.String contextClassLoaderSource)
public boolean isDebugUnreturnedConnectionStackTraces()
public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces)
public java.lang.String getFactoryClassLocation()
public void setFactoryClassLocation(java.lang.String factoryClassLocation)
public boolean isForceIgnoreUnresolvedTransactions()
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
public java.lang.String getIdentityToken()
getIdentityToken
in interface IdentityTokenized
public void setIdentityToken(java.lang.String identityToken)
setIdentityToken
in interface IdentityTokenized
public int getIdleConnectionTestPeriod()
public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
public int getInitialPoolSize()
public void setInitialPoolSize(int initialPoolSize)
public int getMaxAdministrativeTaskTime()
public void setMaxAdministrativeTaskTime(int maxAdministrativeTaskTime)
public int getMaxConnectionAge()
public void setMaxConnectionAge(int maxConnectionAge)
public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
public int getMaxIdleTimeExcessConnections()
public void setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
public int getMaxStatementsPerConnection()
public void setMaxStatementsPerConnection(int maxStatementsPerConnection)
public int getMinPoolSize()
public void setMinPoolSize(int minPoolSize)
public javax.sql.DataSource getNestedDataSource()
public void setNestedDataSource(javax.sql.DataSource nestedDataSource)
public java.lang.String getOverrideDefaultPassword()
public void setOverrideDefaultPassword(java.lang.String overrideDefaultPassword)
public java.lang.String getOverrideDefaultUser()
public void setOverrideDefaultUser(java.lang.String overrideDefaultUser)
public java.lang.String getPreferredTestQuery()
public void setPreferredTestQuery(java.lang.String preferredTestQuery)
public boolean isPrivilegeSpawnedThreads()
public void setPrivilegeSpawnedThreads(boolean privilegeSpawnedThreads)
public int getPropertyCycle()
public void setPropertyCycle(int propertyCycle)
public int getStatementCacheNumDeferredCloseThreads()
public void setStatementCacheNumDeferredCloseThreads(int statementCacheNumDeferredCloseThreads)
public boolean isTestConnectionOnCheckin()
public void setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
public boolean isTestConnectionOnCheckout()
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
public int getUnreturnedConnectionTimeout()
public void setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout)
public java.lang.String getUserOverridesAsString()
public void setUserOverridesAsString(java.lang.String userOverridesAsString) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public boolean isUsesTraditionalReflectiveProxies()
public void setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies)
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void addPropertyChangeListener(java.lang.String propName, java.beans.PropertyChangeListener pcl)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void removePropertyChangeListener(java.lang.String propName, java.beans.PropertyChangeListener pcl)
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
public void addVetoableChangeListener(java.beans.VetoableChangeListener vcl)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener vcl)
public java.beans.VetoableChangeListener[] getVetoableChangeListeners()
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String extraToStringInfo()
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
protected abstract javax.sql.PooledConnection getPooledConnection(ConnectionCustomizer cc, java.lang.String idt) throws java.sql.SQLException
java.sql.SQLException
protected abstract javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password, ConnectionCustomizer cc, java.lang.String idt) throws java.sql.SQLException
java.sql.SQLException