public class DataSource extends Object
| Type | Property and Description |
|---|---|
Map |
connectionListener
Properties to be injected in class specidied in connection-listener-class
|
| Modifier and Type | Class and Description |
|---|---|
class |
DataSource.DataSourceResources
Child mutators for DataSource
|
| Constructor and Description |
|---|
DataSource(String key) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
allocationRetry()
The allocation retry element indicates the number of times that allocating a connection should be tried before throwing an exception
|
DataSource |
allocationRetry(Integer value)
The allocation retry element indicates the number of times that allocating a connection should be tried before throwing an exception
|
Long |
allocationRetryWaitMillis()
The allocation retry wait millis element specifies the amount of time, in milliseconds, to wait between retrying to allocate a connection
|
DataSource |
allocationRetryWaitMillis(Long value)
The allocation retry wait millis element specifies the amount of time, in milliseconds, to wait between retrying to allocate a connection
|
Boolean |
allowMultipleUsers()
Specifies if multiple users will access the datasource through the getConnection(user, password) method and hence if the internal pool type should account for that
|
DataSource |
allowMultipleUsers(Boolean value)
Specifies if multiple users will access the datasource through the getConnection(user, password) method and hence if the internal pool type should account for that
|
Boolean |
backgroundValidation()
An element to specify that connections should be validated on a background thread versus being validated prior to use.
|
DataSource |
backgroundValidation(Boolean value)
An element to specify that connections should be validated on a background thread versus being validated prior to use.
|
Long |
backgroundValidationMillis()
The background-validation-millis element specifies the amount of time, in milliseconds, that background validation will run.
|
DataSource |
backgroundValidationMillis(Long value)
The background-validation-millis element specifies the amount of time, in milliseconds, that background validation will run.
|
Long |
blockingTimeoutWaitMillis()
The blocking-timeout-millis element specifies the maximum time, in milliseconds, to block while waiting for a connection before throwing an exception.
|
DataSource |
blockingTimeoutWaitMillis(Long value)
The blocking-timeout-millis element specifies the maximum time, in milliseconds, to block while waiting for a connection before throwing an exception.
|
String |
capacityDecrementerClass()
Class defining the policy for decrementing connections in the pool
|
DataSource |
capacityDecrementerClass(String value)
Class defining the policy for decrementing connections in the pool
|
Map |
capacityDecrementerProperties()
Properties to be injected in class defining the policy for decrementing connections in the pool
|
DataSource |
capacityDecrementerProperties(Map value)
Properties to be injected in class defining the policy for decrementing connections in the pool
|
String |
capacityIncrementerClass()
Class defining the policy for incrementing connections in the pool
|
DataSource |
capacityIncrementerClass(String value)
Class defining the policy for incrementing connections in the pool
|
Map |
capacityIncrementerProperties()
Properties to be injected in class defining the policy for incrementing connections in the pool
|
DataSource |
capacityIncrementerProperties(Map value)
Properties to be injected in class defining the policy for incrementing connections in the pool
|
String |
checkValidConnectionSql()
Specify an SQL statement to check validity of a pool connection.
|
DataSource |
checkValidConnectionSql(String value)
Specify an SQL statement to check validity of a pool connection.
|
Boolean |
connectable()
Enable the use of CMR.
|
DataSource |
connectable(Boolean value)
Enable the use of CMR.
|
String |
connectionListenerClass()
Speciefies class name extending org.jboss.jca.adapters.jdbc.spi.listener.ConnectionListener that provides a possible to listen for connection activation and passivation in order to perform actions before the connection is returned to the application or returned to the pool.
|
DataSource |
connectionListenerClass(String value)
Speciefies class name extending org.jboss.jca.adapters.jdbc.spi.listener.ConnectionListener that provides a possible to listen for connection activation and passivation in order to perform actions before the connection is returned to the application or returned to the pool.
|
Map |
connectionListenerProperty()
Properties to be injected in class specidied in connection-listener-class
|
DataSource |
connectionListenerProperty(Map value)
Properties to be injected in class specidied in connection-listener-class
|
Map |
connectionProperties()
The connection-properties element allows you to pass in arbitrary connection properties to the Driver.connect(url, props) method
|
DataSource |
connectionProperties(ConnectionProperties value)
Add the org.wildfly.swarm.config.datasources.data_source.ConnectionProperties object to the list of subresources
|
DataSource |
connectionProperties(List<ConnectionProperties> value)
Add all org.wildfly.swarm.config.datasources.data_source.ConnectionProperties objects to this subresource
|
DataSource |
connectionProperties(Map value)
The connection-properties element allows you to pass in arbitrary connection properties to the Driver.connect(url, props) method
|
String |
connectionUrl()
The JDBC driver connection URL
|
DataSource |
connectionUrl(String value)
The JDBC driver connection URL
|
String |
datasourceClass()
The fully qualified name of the JDBC datasource class
|
DataSource |
datasourceClass(String value)
The fully qualified name of the JDBC datasource class
|
String |
driverClass()
The fully qualified name of the JDBC driver class
|
DataSource |
driverClass(String value)
The fully qualified name of the JDBC driver class
|
String |
driverName()
Defines the JDBC driver the datasource should use.
|
DataSource |
driverName(String value)
Defines the JDBC driver the datasource should use.
|
Boolean |
enlistmentTrace()
Defines if WildFly/IronJacamar should record enlistment traces
|
DataSource |
enlistmentTrace(Boolean value)
Defines if WildFly/IronJacamar should record enlistment traces
|
String |
exceptionSorterClassName()
An org.jboss.jca.adapters.jdbc.ExceptionSorter that provides an isExceptionFatal(SQLException) method to validate if an exception should broadcast an error
|
DataSource |
exceptionSorterClassName(String value)
An org.jboss.jca.adapters.jdbc.ExceptionSorter that provides an isExceptionFatal(SQLException) method to validate if an exception should broadcast an error
|
Map |
exceptionSorterProperties()
The exception sorter properties
|
DataSource |
exceptionSorterProperties(Map value)
The exception sorter properties
|
String |
flushStrategy()
Specifies how the pool should be flush in case of an error.
|
DataSource |
flushStrategy(String value)
Specifies how the pool should be flush in case of an error.
|
String |
getKey() |
Long |
idleTimeoutMinutes()
The idle-timeout-minutes elements specifies the maximum time, in minutes, a connection may be idle before being closed.
|
DataSource |
idleTimeoutMinutes(Long value)
The idle-timeout-minutes elements specifies the maximum time, in minutes, a connection may be idle before being closed.
|
Integer |
initialPoolSize()
The initial-pool-size element indicates the initial number of connections a pool should hold.
|
DataSource |
initialPoolSize(Integer value)
The initial-pool-size element indicates the initial number of connections a pool should hold.
|
String |
jndiName()
Specifies the JNDI name for the datasource
|
DataSource |
jndiName(String value)
Specifies the JNDI name for the datasource
|
Boolean |
jta()
Enable JTA integration
|
DataSource |
jta(Boolean value)
Enable JTA integration
|
Integer |
maxPoolSize()
The max-pool-size element specifies the maximum number of connections for a pool.
|
DataSource |
maxPoolSize(Integer value)
The max-pool-size element specifies the maximum number of connections for a pool.
|
String |
mcp()
Defines the ManagedConnectionPool implementation, f.ex.
|
DataSource |
mcp(String value)
Defines the ManagedConnectionPool implementation, f.ex.
|
Integer |
minPoolSize()
The min-pool-size element specifies the minimum number of connections for a pool
|
DataSource |
minPoolSize(Integer value)
The min-pool-size element specifies the minimum number of connections for a pool
|
String |
newConnectionSql()
Specifies an SQL statement to execute whenever a connection is added to the connection pool
|
DataSource |
newConnectionSql(String value)
Specifies an SQL statement to execute whenever a connection is added to the connection pool
|
String |
password()
Specifies the password used when creating a new connection
|
DataSource |
password(String value)
Specifies the password used when creating a new connection
|
Boolean |
poolPrefill()
Should the pool be prefilled.
|
DataSource |
poolPrefill(Boolean value)
Should the pool be prefilled.
|
Boolean |
poolUseStrictMin()
Specifies if the min-pool-size should be considered strictly
|
DataSource |
poolUseStrictMin(Boolean value)
Specifies if the min-pool-size should be considered strictly
|
Long |
preparedStatementsCacheSize()
The number of prepared statements per connection in an LRU cache
|
DataSource |
preparedStatementsCacheSize(Long value)
The number of prepared statements per connection in an LRU cache
|
Long |
queryTimeout()
Any configured query timeout in seconds.
|
DataSource |
queryTimeout(Long value)
Any configured query timeout in seconds.
|
String |
reauthPluginClassName()
The fully qualified class name of the reauthentication plugin implementation
|
DataSource |
reauthPluginClassName(String value)
The fully qualified class name of the reauthentication plugin implementation
|
Map |
reauthPluginProperties()
The properties for the reauthentication plugin
|
DataSource |
reauthPluginProperties(Map value)
The properties for the reauthentication plugin
|
String |
securityDomain()
Specifies the security domain which defines the javax.security.auth.Subject that are used to distinguish connections in the pool
|
DataSource |
securityDomain(String value)
Specifies the security domain which defines the javax.security.auth.Subject that are used to distinguish connections in the pool
|
Boolean |
setTxQueryTimeout()
Whether to set the query timeout based on the time remaining until transaction timeout.
|
DataSource |
setTxQueryTimeout(Boolean value)
Whether to set the query timeout based on the time remaining until transaction timeout.
|
Boolean |
sharePreparedStatements()
Whether to share prepared statements, i.e.
|
DataSource |
sharePreparedStatements(Boolean value)
Whether to share prepared statements, i.e.
|
Boolean |
spy()
Enable spying of SQL statements
|
DataSource |
spy(Boolean value)
Enable spying of SQL statements
|
String |
staleConnectionCheckerClassName()
An org.jboss.jca.adapters.jdbc.StaleConnectionChecker that provides an isStaleConnection(SQLException) method which if it returns true will wrap the exception in an org.jboss.jca.adapters.jdbc.StaleConnectionException
|
DataSource |
staleConnectionCheckerClassName(String value)
An org.jboss.jca.adapters.jdbc.StaleConnectionChecker that provides an isStaleConnection(SQLException) method which if it returns true will wrap the exception in an org.jboss.jca.adapters.jdbc.StaleConnectionException
|
Map |
staleConnectionCheckerProperties()
The stale connection checker properties
|
DataSource |
staleConnectionCheckerProperties(Map value)
The stale connection checker properties
|
Boolean |
statisticsEnabled()
define if runtime statistics is enabled or not.
|
DataSource |
statisticsEnabled(Boolean value)
define if runtime statistics is enabled or not.
|
DataSource.DataSourceResources |
subresources() |
Boolean |
tracking()
Defines if IronJacamar should track connection handles across transaction boundaries
|
DataSource |
tracking(Boolean value)
Defines if IronJacamar should track connection handles across transaction boundaries
|
String |
trackStatements()
Whether to check for unclosed statements when a connection is returned to the pool, result sets are closed, a statement is closed or return to the prepared statement cache.
|
DataSource |
trackStatements(String value)
Whether to check for unclosed statements when a connection is returned to the pool, result sets are closed, a statement is closed or return to the prepared statement cache.
|
String |
transactionIsolation()
Set the java.sql.Connection transaction isolation level.
|
DataSource |
transactionIsolation(String value)
Set the java.sql.Connection transaction isolation level.
|
String |
urlDelimiter()
Specifies the delimiter for URLs in connection-url for HA datasources
|
DataSource |
urlDelimiter(String value)
Specifies the delimiter for URLs in connection-url for HA datasources
|
String |
urlSelectorStrategyClassName()
A class that implements org.jboss.jca.adapters.jdbc.URLSelectorStrategy
|
DataSource |
urlSelectorStrategyClassName(String value)
A class that implements org.jboss.jca.adapters.jdbc.URLSelectorStrategy
|
Boolean |
useCcm()
Enable the use of a cached connection manager
|
DataSource |
useCcm(Boolean value)
Enable the use of a cached connection manager
|
Boolean |
useFastFail()
Whether to fail a connection allocation on the first try if it is invalid (true) or keep trying until the pool is exhausted of all potential connections (false)
|
DataSource |
useFastFail(Boolean value)
Whether to fail a connection allocation on the first try if it is invalid (true) or keep trying until the pool is exhausted of all potential connections (false)
|
Boolean |
useJavaContext()
Setting this to false will bind the datasource into global JNDI
|
DataSource |
useJavaContext(Boolean value)
Setting this to false will bind the datasource into global JNDI
|
String |
userName()
Specify the user name used when creating a new connection
|
DataSource |
userName(String value)
Specify the user name used when creating a new connection
|
Long |
useTryLock()
Any configured timeout for internal locks on the resource adapter objects in seconds
|
DataSource |
useTryLock(Long value)
Any configured timeout for internal locks on the resource adapter objects in seconds
|
Boolean |
validateOnMatch()
The validate-on-match element specifies if connection validation should be done when a connection factory attempts to match a managed connection.
|
DataSource |
validateOnMatch(Boolean value)
The validate-on-match element specifies if connection validation should be done when a connection factory attempts to match a managed connection.
|
String |
validConnectionCheckerClassName()
An org.jboss.jca.adapters.jdbc.ValidConnectionChecker that provides an isValidConnection(Connection) method to validate a connection.
|
DataSource |
validConnectionCheckerClassName(String value)
An org.jboss.jca.adapters.jdbc.ValidConnectionChecker that provides an isValidConnection(Connection) method to validate a connection.
|
Map |
validConnectionCheckerProperties()
The valid connection checker properties
|
DataSource |
validConnectionCheckerProperties(Map value)
The valid connection checker properties
|
public Map connectionListenerProperty
public DataSource(String key)
public String getKey()
public Integer allocationRetry()
public DataSource allocationRetry(Integer value)
public Long allocationRetryWaitMillis()
public DataSource allocationRetryWaitMillis(Long value)
public Boolean allowMultipleUsers()
public DataSource allowMultipleUsers(Boolean value)
public Boolean backgroundValidation()
public DataSource backgroundValidation(Boolean value)
public Long backgroundValidationMillis()
public DataSource backgroundValidationMillis(Long value)
public Long blockingTimeoutWaitMillis()
public DataSource blockingTimeoutWaitMillis(Long value)
public String capacityDecrementerClass()
public DataSource capacityDecrementerClass(String value)
public Map capacityDecrementerProperties()
public DataSource capacityDecrementerProperties(Map value)
public String capacityIncrementerClass()
public DataSource capacityIncrementerClass(String value)
public Map capacityIncrementerProperties()
public DataSource capacityIncrementerProperties(Map value)
public String checkValidConnectionSql()
public DataSource checkValidConnectionSql(String value)
public Boolean connectable()
public DataSource connectable(Boolean value)
public String connectionListenerClass()
public DataSource connectionListenerClass(String value)
public Map connectionListenerProperty()
public DataSource connectionListenerProperty(Map value)
public Map connectionProperties()
public DataSource connectionProperties(Map value)
public String connectionUrl()
public DataSource connectionUrl(String value)
public String datasourceClass()
public DataSource datasourceClass(String value)
public String driverClass()
public DataSource driverClass(String value)
public String driverName()
public DataSource driverName(String value)
public Boolean enlistmentTrace()
public DataSource enlistmentTrace(Boolean value)
public String exceptionSorterClassName()
public DataSource exceptionSorterClassName(String value)
public Map exceptionSorterProperties()
public DataSource exceptionSorterProperties(Map value)
public String flushStrategy()
public DataSource flushStrategy(String value)
public Long idleTimeoutMinutes()
public DataSource idleTimeoutMinutes(Long value)
public Integer initialPoolSize()
public DataSource initialPoolSize(Integer value)
public String jndiName()
public DataSource jndiName(String value)
public Boolean jta()
public DataSource jta(Boolean value)
public Integer maxPoolSize()
public DataSource maxPoolSize(Integer value)
public String mcp()
public DataSource mcp(String value)
public Integer minPoolSize()
public DataSource minPoolSize(Integer value)
public String newConnectionSql()
public DataSource newConnectionSql(String value)
public String password()
public DataSource password(String value)
public Boolean poolPrefill()
public DataSource poolPrefill(Boolean value)
public Boolean poolUseStrictMin()
public DataSource poolUseStrictMin(Boolean value)
public Long preparedStatementsCacheSize()
public DataSource preparedStatementsCacheSize(Long value)
public Long queryTimeout()
public DataSource queryTimeout(Long value)
public String reauthPluginClassName()
public DataSource reauthPluginClassName(String value)
public Map reauthPluginProperties()
public DataSource reauthPluginProperties(Map value)
public String securityDomain()
public DataSource securityDomain(String value)
public Boolean setTxQueryTimeout()
public DataSource setTxQueryTimeout(Boolean value)
public Boolean sharePreparedStatements()
public DataSource sharePreparedStatements(Boolean value)
public Boolean spy()
public DataSource spy(Boolean value)
public String staleConnectionCheckerClassName()
public DataSource staleConnectionCheckerClassName(String value)
public Map staleConnectionCheckerProperties()
public DataSource staleConnectionCheckerProperties(Map value)
public Boolean statisticsEnabled()
public DataSource statisticsEnabled(Boolean value)
public String trackStatements()
public DataSource trackStatements(String value)
public Boolean tracking()
public DataSource tracking(Boolean value)
public String transactionIsolation()
public DataSource transactionIsolation(String value)
public String urlDelimiter()
public DataSource urlDelimiter(String value)
public String urlSelectorStrategyClassName()
public DataSource urlSelectorStrategyClassName(String value)
public Boolean useCcm()
public DataSource useCcm(Boolean value)
public Boolean useFastFail()
public DataSource useFastFail(Boolean value)
public Boolean useJavaContext()
public DataSource useJavaContext(Boolean value)
public Long useTryLock()
public DataSource useTryLock(Long value)
public String userName()
public DataSource userName(String value)
public String validConnectionCheckerClassName()
public DataSource validConnectionCheckerClassName(String value)
public Map validConnectionCheckerProperties()
public DataSource validConnectionCheckerProperties(Map value)
public Boolean validateOnMatch()
public DataSource validateOnMatch(Boolean value)
public DataSource.DataSourceResources subresources()
public DataSource connectionProperties(List<ConnectionProperties> value)
value - List of org.wildfly.swarm.config.datasources.data_source.ConnectionProperties objects.public DataSource connectionProperties(ConnectionProperties value)
value - The org.wildfly.swarm.config.datasources.data_source.ConnectionProperties to addCopyright © 2015 JBoss by Red Hat. All rights reserved.