public class DataSource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataSource.Type |
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAbandonedConnectTimeout()
Returns the abandonedConnectTimeout of the DataSource.
|
String |
getAlgorithmType()
Returns the algorithmType of the DataSource.
|
Integer |
getCapacityIncrement()
Returns the capacityIncrement of the DataSource.
|
String |
getConnectionClass()
Returns the connectionClass of the DataSource.
|
Integer |
getConnectionCreationRetryFrequencySeconds()
Returns the connectionCreationRetryFrequencySeconds of the DataSource.
|
String |
getConnectionPoolFailoverCallbackHandler()
Returns the connectionPoolFailoverCallbackHandler of the DataSource.
|
Integer |
getConnectionReserveTimeout()
Returns the connectionReserveTimeout of the DataSource.
|
String |
getConnectString()
Returns the connectString of the DataSource.
|
Integer |
getConnectTimeout()
Returns the connectTimeout of the DataSource.
|
String |
getDataSourceList()
Returns the dataSourceList as String of the DataSource.
|
List<DataSource> |
getDataSources()
Returns the dataSources of the DataSource.
|
String |
getDbDriverName()
Returns the dbDriverName of the DataSource.
|
String |
getDescriptorFileName()
Returns the descriptorFileName of the DataSource.
|
String |
getDsName()
Returns the dsName of the DataSource.
|
String |
getDsSuffix()
Returns the dsSuffix of the DataSource.
|
Boolean |
getEnableDRCP()
Returns the enableDRCP of the DataSource.
|
List<String> |
getExtraProperties()
Returns the extraProperties of the DataSource.
|
Boolean |
getFailoverRequestIfBusy()
Returns the failoverRequestIfBusy the DataSource.
|
String |
getGlobalTransactionProtocol()
Returns the globalTransactionProtocol of the DataSource.
|
Integer |
getInitialCapacity()
Returns the initialCapacity of the DataSource.
|
String |
getInitSql()
Returns the initSql of the DataSource.
|
List<String> |
getJndiName()
Returns the jndiName as String array.
|
String |
getJndiNameAsString()
Returns all the jndiNames as a String.
|
Boolean |
getKeepXAConnTillTxComplete()
Returns the keepXAConnTillTxComplete of the DataSource.
|
Integer |
getLoginDelay()
Returns the loginDelay of the DataSource.
|
Integer |
getMaxCapacity()
Returns the maxCapacity of the DataSource.
|
Integer |
getMinCapacity()
Returns the minCapacity of the DataSource.
|
String |
getName()
Returns the name of the DataSource.
|
Boolean |
getRemoveInfectedConnections()
Returns the removeInfectedConnections of the DataSource.
|
Integer |
getSecondsToTrustAnIdlePoolConnection()
Returns the secondsToTrustAnIdlePoolConnection of the DataSource.
|
Integer |
getShrinkFrequency()
Returns the shrinkFrequency of the DataSource.
|
Integer |
getStatementCacheSize()
Returns the statementCacheSize of the DataSource.
|
List<String> |
getTargets()
Returns the targets as String array.
|
String |
getTargetsAsString()
Returns the targets as String.
|
Boolean |
getTestConnectionsOnReserve()
Returns the testConnectionsOnReserve of the DataSource.
|
Integer |
getTestFrequencySeconds()
Returns the testFrequencySeconds of the DataSource.
|
String |
getTestTableName()
Returns the testTableName of the DataSource.
|
DataSource.Type |
getType()
Returns the type of the DataSource.
|
String |
getUsername()
Returns the username of the DataSource.
|
Boolean |
getUseXADataSourceInterface()
Returns the useXADataSourceInterface of the DataSource.
|
Integer |
getXaRetryDurationSeconds()
Returns the xaRetryDurationSeconds of the DataSource.
|
Integer |
getXaRetryIntervalSeconds()
Returns the xaRetryIntervalSeconds of the DataSource.
|
Integer |
getXaSetTransactionTimeout()
Returns the xaSetTransactionTimeout of the DataSource.
|
DataSource |
setAbandonedConnectTimeout(Integer abandonedConnectTimeout)
Sets the abandonedConnectTimeout of the DataSource.
|
DataSource |
setAlgorithmType(String algorithmType)
Sets the algorithmType of the DataSource.
|
DataSource |
setCapacityIncrement(Integer capacityIncrement)
Sets the capacityIncrement of the DataSource.
|
DataSource |
setConnectionClass(String connectionClass)
Sets the connectionClass of the DataSource.
|
DataSource |
setConnectionCreationRetryFrequencySeconds(Integer connectionCreationRetryFrequencySeconds)
Sets the connectionCreationRetryFrequencySeconds of the DataSource.
|
DataSource |
setConnectionPoolFailoverCallbackHandler(String connectionPoolFailoverCallbackHandler)
Sets the connectionPoolFailoverCallbackHandler of the DataSource.
|
DataSource |
setConnectionReserveTimeout(Integer connectionReserveTimeout)
Sets the connectionReserveTimeout of the DataSource.
|
DataSource |
setConnectString(String connectString)
Sets the connectString of the DataSource.
|
DataSource |
setConnectTimeout(Integer connectTimeout)
Sets the connectTimeout of the DataSource.
|
DataSource |
setDataSourceList(String dataSourceList)
Sets the dataSourceList of the DataSource.
|
DataSource |
setDataSources(List<DataSource> dataSources)
Sets the dataSources of the DataSource.
|
DataSource |
setDbDriverName(String dbDriverName)
Sets the dbDriverName of the DataSource.
|
DataSource |
setDescriptorFileName(String descriptorFileName)
Sets the descriptorFileName of the DataSource.
|
DataSource |
setDsName(String dsName)
Sets the dsName of the DataSource.
|
DataSource |
setDsSuffix(String dsSuffix)
Sets the dsSuffix of the DataSource.
|
DataSource |
setEnableDRCP(Boolean enableDRCP)
Sets the dataSourceList of the DataSource.
|
DataSource |
setExtraProperties(List<String> extraProperties)
Sets the extraProperties of the DataSource.
|
DataSource |
setFailoverRequestIfBusy(Boolean failoverRequestIfBusy)
Sets the failoverRequestIfBusy of the DataSource.
|
DataSource |
setGlobalTransactionProtocol(String globalTransactionProtocol)
Sets the globalTransactionProtocol of the DataSource.
|
DataSource |
setInitialCapacity(Integer initialCapacity)
Sets the initialCapacity of the DataSource.
|
DataSource |
setInitSql(String initSql)
Sets the initSql of the DataSource.
|
DataSource |
setJndiName(List<String> jndiName)
Sets the jndiName of the DataSource.
|
DataSource |
setKeepXAConnTillTxComplete(Boolean keepXAConnTillTxComplete)
Sets the keepXAConnTillTxComplete of the DataSource.
|
DataSource |
setLoginDelay(Integer loginDelay)
Sets the loginDelay of the DataSource.
|
DataSource |
setMaxCapacity(Integer maxCapacity)
Sets the maxCapacity of the DataSource.
|
DataSource |
setMinCapacity(Integer minCapacity)
Sets the minCapacity of the DataSource.
|
DataSource |
setName(String name)
Sets the name of the DataSource.
|
DataSource |
setRemoveInfectedConnections(Boolean removeInfectedConnections)
Sets the removeInfectedConnections of the DataSource.
|
DataSource |
setSecondsToTrustAnIdlePoolConnection(Integer secondsToTrustAnIdlePoolConnection)
Sets the secondsToTrustAnIdlePoolConnection of the DataSource.
|
DataSource |
setShrinkFrequency(Integer shrinkFrequency)
Sets the shrinkFrequency of the DataSource.
|
DataSource |
setStatementCacheSize(Integer statementCacheSize)
Sets the statementCacheSize of the DataSource.
|
DataSource |
setTargets(List<String> targets)
Sets the targets of the DataSource.
|
DataSource |
setTestConnectionsOnReserve(Boolean testConnectionsOnReserve)
Sets the testConnectionsOnReserve of the DataSource.
|
DataSource |
setTestFrequencySeconds(Integer testFrequencySeconds)
Sets the testFrequencySeconds of the DataSource.
|
DataSource |
setTestTableName(String testTableName)
Sets the testTableName of the DataSource.
|
DataSource |
setType(DataSource.Type type)
Sets the type of the DataSource.
|
DataSource |
setUsername(String username)
Sets the username of the DataSource.
|
DataSource |
setUseXADataSourceInterface(Boolean useXADataSourceInterface)
Sets the useXADataSourceInterface of the DataSource.
|
DataSource |
setXaRetryDurationSeconds(Integer xaRetryDurationSeconds)
Sets the xaRetryDurationSeconds of the DataSource.
|
DataSource |
setXaRetryIntervalSeconds(Integer xaRetryIntervalSeconds)
Sets the xaRetryIntervalSeconds of the DataSource.
|
DataSource |
setXaSetTransactionTimeout(Integer xaSetTransactionTimeout)
Sets the xaSetTransactionTimeout of the DataSource.
|
protected List<DataSource> dataSources
protected String name
protected String connectString
protected DataSource.Type type
protected Boolean enableDRCP
protected String connectionClass
protected String dsName
protected Integer testFrequencySeconds
protected String algorithmType
protected String dataSourceList
protected Boolean failoverRequestIfBusy
protected String dbDriverName
protected String dsSuffix
protected Integer connectTimeout
protected Integer abandonedConnectTimeout
protected Integer initialCapacity
protected Integer capacityIncrement
protected Integer maxCapacity
protected Integer minCapacity
protected Integer connectionCreationRetryFrequencySeconds
protected Boolean testConnectionsOnReserve
protected Integer secondsToTrustAnIdlePoolConnection
protected String globalTransactionProtocol
protected Boolean keepXAConnTillTxComplete
protected Integer xaRetryDurationSeconds
protected Integer xaRetryIntervalSeconds
protected Integer xaSetTransactionTimeout
protected Integer loginDelay
protected String testTableName
protected String initSql
protected Boolean removeInfectedConnections
protected Integer statementCacheSize
protected Integer shrinkFrequency
protected Integer connectionReserveTimeout
protected Boolean useXADataSourceInterface
protected String username
protected String descriptorFileName
protected String ConnectionPoolFailoverCallbackHandler
public Integer getAbandonedConnectTimeout()
public String getAlgorithmType()
public Integer getCapacityIncrement()
public String getConnectionClass()
public Integer getConnectionCreationRetryFrequencySeconds()
public String getConnectionPoolFailoverCallbackHandler()
public Integer getConnectionReserveTimeout()
public String getConnectString()
public Integer getConnectTimeout()
public String getDataSourceList()
public List<DataSource> getDataSources()
public String getDbDriverName()
public String getDescriptorFileName()
public String getDsName()
public String getDsSuffix()
public Boolean getEnableDRCP()
public List<String> getExtraProperties()
public Boolean getFailoverRequestIfBusy()
public String getGlobalTransactionProtocol()
public Integer getInitialCapacity()
public String getInitSql()
public List<String> getJndiName()
public String getJndiNameAsString()
public Boolean getKeepXAConnTillTxComplete()
public Integer getLoginDelay()
public Integer getMaxCapacity()
public Integer getMinCapacity()
public String getName()
public Boolean getRemoveInfectedConnections()
public Integer getSecondsToTrustAnIdlePoolConnection()
public Integer getShrinkFrequency()
public Integer getStatementCacheSize()
public String getTargetsAsString()
public Boolean getTestConnectionsOnReserve()
public Integer getTestFrequencySeconds()
public String getTestTableName()
public DataSource.Type getType()
public String getUsername()
public Boolean getUseXADataSourceInterface()
public Integer getXaRetryDurationSeconds()
public Integer getXaRetryIntervalSeconds()
public Integer getXaSetTransactionTimeout()
public DataSource setAbandonedConnectTimeout(Integer abandonedConnectTimeout)
abandonedConnectTimeout
- the Integer value for the abandonedConnectTimeoutpublic DataSource setAlgorithmType(String algorithmType)
algorithmType
- a String containing the algorithm type to setpublic DataSource setCapacityIncrement(Integer capacityIncrement)
capacityIncrement
- an Integer value for setting the capacity incrementpublic DataSource setConnectionClass(String connectionClass)
connectionClass
- a String containing the value to set for the connection classpublic DataSource setConnectionCreationRetryFrequencySeconds(Integer connectionCreationRetryFrequencySeconds)
connectionCreationRetryFrequencySeconds
- an Integer to use for setting the connection creation retry frequency secondspublic DataSource setConnectionPoolFailoverCallbackHandler(String connectionPoolFailoverCallbackHandler)
connectionPoolFailoverCallbackHandler
- a String to use for setting the connection pool failover callback handlerpublic DataSource setConnectionReserveTimeout(Integer connectionReserveTimeout)
connectionReserveTimeout
- an Integer to use to set the connection reserve timeoutpublic DataSource setConnectString(String connectString)
connectString
- a String to use to set the connect stringpublic DataSource setConnectTimeout(Integer connectTimeout)
connectTimeout
- an Integer to use to set the connect timeoutpublic DataSource setDataSourceList(String dataSourceList)
dataSourceList
- a String to use to set the datasource listpublic DataSource setDataSources(List<DataSource> dataSources)
dataSources
- a List of DataSource objects use to set the list of data sourcespublic DataSource setDbDriverName(String dbDriverName)
dbDriverName
- a String used to set the db driver namepublic DataSource setDescriptorFileName(String descriptorFileName)
descriptorFileName
- a String used to set the descriptor file namepublic DataSource setDsName(String dsName)
dsName
- a String used to set the ds namepublic DataSource setDsSuffix(String dsSuffix)
dsSuffix
- a String used to set the ds suffixpublic DataSource setEnableDRCP(Boolean enableDRCP)
enableDRCP
- a Boolean object used to set enable DRCPpublic DataSource setExtraProperties(List<String> extraProperties)
extraProperties
- a List of String objects used to set the extra propertiespublic DataSource setFailoverRequestIfBusy(Boolean failoverRequestIfBusy)
failoverRequestIfBusy
- a Boolean object used to set failover request if busypublic DataSource setGlobalTransactionProtocol(String globalTransactionProtocol)
globalTransactionProtocol
- a String used to set global transaction protocolpublic DataSource setInitialCapacity(Integer initialCapacity)
initialCapacity
- an Integer used to set initial capacitypublic DataSource setInitSql(String initSql)
initSql
- a String used to set init sqlpublic DataSource setJndiName(List<String> jndiName)
jndiName
- a List of String objects used to set jndi namepublic DataSource setKeepXAConnTillTxComplete(Boolean keepXAConnTillTxComplete)
keepXAConnTillTxComplete
- a Boolean object used to set keep xa conn till tx completepublic DataSource setLoginDelay(Integer loginDelay)
loginDelay
- an Integer used to set login delaypublic DataSource setMaxCapacity(Integer maxCapacity)
maxCapacity
- an Integer used to set max capacitypublic DataSource setMinCapacity(Integer minCapacity)
minCapacity
- an Integer used to set min capacitypublic DataSource setName(String name)
name
- a String used to set namepublic DataSource setRemoveInfectedConnections(Boolean removeInfectedConnections)
removeInfectedConnections
- a Boolean object used to set remove infected connectionspublic DataSource setSecondsToTrustAnIdlePoolConnection(Integer secondsToTrustAnIdlePoolConnection)
secondsToTrustAnIdlePoolConnection
- an Integer used to set seconds to trust an idle pool connectionpublic DataSource setShrinkFrequency(Integer shrinkFrequency)
shrinkFrequency
- an Integer used to set shrink frequencypublic DataSource setStatementCacheSize(Integer statementCacheSize)
statementCacheSize
- an Integer used to set statement cache sizepublic DataSource setTargets(List<String> targets)
targets
- a List of String objects used to set targetspublic DataSource setTestConnectionsOnReserve(Boolean testConnectionsOnReserve)
testConnectionsOnReserve
- a Boolean object used to set test connections on reservepublic DataSource setTestFrequencySeconds(Integer testFrequencySeconds)
testFrequencySeconds
- an Integer used to set test frequency secondspublic DataSource setTestTableName(String testTableName)
testTableName
- a String used to set test table namepublic DataSource setType(DataSource.Type type)
type
- a Type ojbect used to set typepublic DataSource setUsername(String username)
username
- a String used to set usernamepublic DataSource setUseXADataSourceInterface(Boolean useXADataSourceInterface)
useXADataSourceInterface
- a Boolean object used to set use xa data source interfacepublic DataSource setXaRetryDurationSeconds(Integer xaRetryDurationSeconds)
xaRetryDurationSeconds
- an Integer use to set xa retry duration secondspublic DataSource setXaRetryIntervalSeconds(Integer xaRetryIntervalSeconds)
xaRetryIntervalSeconds
- an Integer used to set xa retry interval secondspublic DataSource setXaSetTransactionTimeout(Integer xaSetTransactionTimeout)
xaSetTransactionTimeout
- an Integer use to set xa set transaction timeout