public class XaDataSource extends Object
| Type | Property and Description |
|---|---|
Map |
connectionListener
Properties to be injected in class specified in connection-listener-class
|
String |
url
Specifies the property for the URL property in the xa-datasource-property values
|
| Modifier and Type | Class and Description |
|---|---|
class |
XaDataSource.XaDataSourceResources
Child mutators for XaDataSource
|
| Constructor and Description |
|---|
XaDataSource(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
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
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
|
XaDataSource |
capacityDecrementerClass(String value)
Class defining the policy for decrementing connections in the pool
|
Map |
capacityDecrementerProperties()
Properties to inject in class defining the policy for decrementing connections in the pool
|
XaDataSource |
capacityDecrementerProperties(Map value)
Properties to inject in class defining the policy for decrementing connections in the pool
|
String |
capacityIncrementerClass()
Class defining the policy for incrementing connections in the pool
|
XaDataSource |
capacityIncrementerClass(String value)
Class defining the policy for incrementing connections in the pool
|
Map |
capacityIncrementerProperties()
Properties to inject in class defining the policy for incrementing connections in the pool
|
XaDataSource |
capacityIncrementerProperties(Map value)
Properties to inject in class defining the policy for incrementing connections in the pool
|
String |
checkValidConnectionSql()
Specify an SQL statement to check validity of a pool connection.
|
XaDataSource |
checkValidConnectionSql(String value)
Specify an SQL statement to check validity of a pool connection.
|
Boolean |
connectable()
Enable the use of CMR for this datasource.
|
XaDataSource |
connectable(Boolean value)
Enable the use of CMR for this datasource.
|
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.
|
XaDataSource |
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 specified in connection-listener-class
|
XaDataSource |
connectionListenerProperty(Map value)
Properties to be injected in class specified in connection-listener-class
|
String |
driverName()
Defines the JDBC driver the datasource should use.
|
XaDataSource |
driverName(String value)
Defines the JDBC driver the datasource should use.
|
Boolean |
enlistmentTrace()
Defines if WildFly/IronJacamar should record enlistment traces
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
exceptionSorterProperties(Map value)
The exception sorter properties
|
String |
flushStrategy()
Specifies how the pool should be flush in case of an error.
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
initialPoolSize(Integer value)
The initial-pool-size element indicates the initial number of connections a pool should hold.
|
Boolean |
interleaving()
An element to enable interleaving for XA connections
|
XaDataSource |
interleaving(Boolean value)
An element to enable interleaving for XA connections
|
String |
jndiName()
Specifies the JNDI name for the datasource
|
XaDataSource |
jndiName(String value)
Specifies the JNDI name for the datasource
|
Integer |
maxPoolSize()
The max-pool-size element specifies the maximum number of connections for a pool.
|
XaDataSource |
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.
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
newConnectionSql(String value)
Specifies an SQL statement to execute whenever a connection is added to the connection pool
|
Boolean |
noRecovery()
Specifies if the connection pool should be excluded from recovery
|
XaDataSource |
noRecovery(Boolean value)
Specifies if the connection pool should be excluded from recovery
|
Boolean |
noTxSeparatePool()
Oracle does not like XA connections getting used both inside and outside a JTA transaction.
|
XaDataSource |
noTxSeparatePool(Boolean value)
Oracle does not like XA connections getting used both inside and outside a JTA transaction.
|
Boolean |
padXid()
Should the Xid be padded
|
XaDataSource |
padXid(Boolean value)
Should the Xid be padded
|
String |
password()
Specifies the password used when creating a new connection
|
XaDataSource |
password(String value)
Specifies the password used when creating a new connection
|
Boolean |
poolPrefill()
Should the pool be prefilled.
|
XaDataSource |
poolPrefill(Boolean value)
Should the pool be prefilled.
|
Boolean |
poolUseStrictMin()
Specifies if the min-pool-size should be considered strictly
|
XaDataSource |
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
|
XaDataSource |
preparedStatementsCacheSize(Long value)
The number of prepared statements per connection in an LRU cache
|
Long |
queryTimeout()
Any configured query timeout in seconds.
|
XaDataSource |
queryTimeout(Long value)
Any configured query timeout in seconds.
|
String |
reauthPluginClassName()
The fully qualified class name of the reauthentication plugin implementation
|
XaDataSource |
reauthPluginClassName(String value)
The fully qualified class name of the reauthentication plugin implementation
|
Map |
reauthPluginProperties()
The properties for the reauthentication plugin
|
XaDataSource |
reauthPluginProperties(Map value)
The properties for the reauthentication plugin
|
String |
recoveryPassword()
The password used for recovery
|
XaDataSource |
recoveryPassword(String value)
The password used for recovery
|
String |
recoveryPluginClassName()
The fully qualified class name of the recovery plugin implementation
|
XaDataSource |
recoveryPluginClassName(String value)
The fully qualified class name of the recovery plugin implementation
|
Map |
recoveryPluginProperties()
The properties for the recovery plugin
|
XaDataSource |
recoveryPluginProperties(Map value)
The properties for the recovery plugin
|
String |
recoverySecurityDomain()
The security domain used for recovery
|
XaDataSource |
recoverySecurityDomain(String value)
The security domain used for recovery
|
String |
recoveryUsername()
The user name used for recovery
|
XaDataSource |
recoveryUsername(String value)
The user name used for recovery
|
Boolean |
sameRmOverride()
The is-same-rm-override element allows one to unconditionally set whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns true or false
|
XaDataSource |
sameRmOverride(Boolean value)
The is-same-rm-override element allows one to unconditionally set whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns true or false
|
String |
securityDomain()
Specifies the security domain which defines the javax.security.auth.Subject that are used to distinguish connections in the pool
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
sharePreparedStatements(Boolean value)
Whether to share prepared statements, i.e.
|
Boolean |
spy()
Enable spying of SQL statements
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
staleConnectionCheckerProperties(Map value)
The stale connection checker properties
|
Boolean |
statisticsEnabled()
define if runtime statistics is enabled or not
|
XaDataSource |
statisticsEnabled(Boolean value)
define if runtime statistics is enabled or not
|
XaDataSource.XaDataSourceResources |
subresources() |
Boolean |
tracking()
Defines if IronJacamar should track connection handles across transaction boundaries
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
transactionIsolation(String value)
Set the java.sql.Connection transaction isolation level.
|
String |
urlDelimiter()
Specifies the delimiter for URLs in connection-url for HA datasources
|
XaDataSource |
urlDelimiter(String value)
Specifies the delimiter for URLs in connection-url for HA datasources
|
String |
urlProperty()
Specifies the property for the URL property in the xa-datasource-property values
|
XaDataSource |
urlProperty(String value)
Specifies the property for the URL property in the xa-datasource-property values
|
String |
urlSelectorStrategyClassName()
A class that implements org.jboss.jca.adapters.jdbc.URLSelectorStrategy
|
XaDataSource |
urlSelectorStrategyClassName(String value)
A class that implements org.jboss.jca.adapters.jdbc.URLSelectorStrategy
|
Boolean |
useCcm()
Enable the use of a cached connection manager
|
XaDataSource |
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)
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
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
|
XaDataSource |
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.
|
XaDataSource |
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.
|
XaDataSource |
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
|
XaDataSource |
validConnectionCheckerProperties(Map value)
The valid connection checker properties
|
Boolean |
wrapXaResource()
Should the XAResource instances be wrapped in an org.jboss.tm.XAResourceWrapper instance
|
XaDataSource |
wrapXaResource(Boolean value)
Should the XAResource instances be wrapped in an org.jboss.tm.XAResourceWrapper instance
|
String |
xaDatasourceClass()
The fully qualified name of the javax.sql.XADataSource implementation
|
XaDataSource |
xaDatasourceClass(String value)
The fully qualified name of the javax.sql.XADataSource implementation
|
XaDataSource |
xaDatasourceProperties(List<XaDatasourceProperties> value)
Add all org.wildfly.swarm.config.datasources.xa_data_source.XaDatasourceProperties objects to this subresource
|
XaDataSource |
xaDatasourceProperties(XaDatasourceProperties value)
Add the org.wildfly.swarm.config.datasources.xa_data_source.XaDatasourceProperties object to the list of subresources
|
Integer |
xaResourceTimeout()
The value is passed to XAResource.setTransactionTimeout(), in seconds.
|
XaDataSource |
xaResourceTimeout(Integer value)
The value is passed to XAResource.setTransactionTimeout(), in seconds.
|
public Map connectionListenerProperty
public String urlProperty
public XaDataSource(String key)
public String getKey()
public Integer allocationRetry()
public XaDataSource allocationRetry(Integer value)
public Long allocationRetryWaitMillis()
public XaDataSource allocationRetryWaitMillis(Long value)
public Boolean allowMultipleUsers()
public XaDataSource allowMultipleUsers(Boolean value)
public Boolean backgroundValidation()
public XaDataSource backgroundValidation(Boolean value)
public Long backgroundValidationMillis()
public XaDataSource backgroundValidationMillis(Long value)
public Long blockingTimeoutWaitMillis()
public XaDataSource blockingTimeoutWaitMillis(Long value)
public String capacityDecrementerClass()
public XaDataSource capacityDecrementerClass(String value)
public Map capacityDecrementerProperties()
public XaDataSource capacityDecrementerProperties(Map value)
public String capacityIncrementerClass()
public XaDataSource capacityIncrementerClass(String value)
public Map capacityIncrementerProperties()
public XaDataSource capacityIncrementerProperties(Map value)
public String checkValidConnectionSql()
public XaDataSource checkValidConnectionSql(String value)
public Boolean connectable()
public XaDataSource connectable(Boolean value)
public String connectionListenerClass()
public XaDataSource connectionListenerClass(String value)
public Map connectionListenerProperty()
public XaDataSource connectionListenerProperty(Map value)
public String driverName()
public XaDataSource driverName(String value)
public Boolean enlistmentTrace()
public XaDataSource enlistmentTrace(Boolean value)
public String exceptionSorterClassName()
public XaDataSource exceptionSorterClassName(String value)
public Map exceptionSorterProperties()
public XaDataSource exceptionSorterProperties(Map value)
public String flushStrategy()
public XaDataSource flushStrategy(String value)
public Long idleTimeoutMinutes()
public XaDataSource idleTimeoutMinutes(Long value)
public Integer initialPoolSize()
public XaDataSource initialPoolSize(Integer value)
public Boolean interleaving()
public XaDataSource interleaving(Boolean value)
public String jndiName()
public XaDataSource jndiName(String value)
public Integer maxPoolSize()
public XaDataSource maxPoolSize(Integer value)
public String mcp()
public XaDataSource mcp(String value)
public Integer minPoolSize()
public XaDataSource minPoolSize(Integer value)
public String newConnectionSql()
public XaDataSource newConnectionSql(String value)
public Boolean noRecovery()
public XaDataSource noRecovery(Boolean value)
public Boolean noTxSeparatePool()
public XaDataSource noTxSeparatePool(Boolean value)
public Boolean padXid()
public XaDataSource padXid(Boolean value)
public String password()
public XaDataSource password(String value)
public Boolean poolPrefill()
public XaDataSource poolPrefill(Boolean value)
public Boolean poolUseStrictMin()
public XaDataSource poolUseStrictMin(Boolean value)
public Long preparedStatementsCacheSize()
public XaDataSource preparedStatementsCacheSize(Long value)
public Long queryTimeout()
public XaDataSource queryTimeout(Long value)
public String reauthPluginClassName()
public XaDataSource reauthPluginClassName(String value)
public Map reauthPluginProperties()
public XaDataSource reauthPluginProperties(Map value)
public String recoveryPassword()
public XaDataSource recoveryPassword(String value)
public String recoveryPluginClassName()
public XaDataSource recoveryPluginClassName(String value)
public Map recoveryPluginProperties()
public XaDataSource recoveryPluginProperties(Map value)
public String recoverySecurityDomain()
public XaDataSource recoverySecurityDomain(String value)
public String recoveryUsername()
public XaDataSource recoveryUsername(String value)
public Boolean sameRmOverride()
public XaDataSource sameRmOverride(Boolean value)
public String securityDomain()
public XaDataSource securityDomain(String value)
public Boolean setTxQueryTimeout()
public XaDataSource setTxQueryTimeout(Boolean value)
public Boolean sharePreparedStatements()
public XaDataSource sharePreparedStatements(Boolean value)
public Boolean spy()
public XaDataSource spy(Boolean value)
public String staleConnectionCheckerClassName()
public XaDataSource staleConnectionCheckerClassName(String value)
public Map staleConnectionCheckerProperties()
public XaDataSource staleConnectionCheckerProperties(Map value)
public Boolean statisticsEnabled()
public XaDataSource statisticsEnabled(Boolean value)
public String trackStatements()
public XaDataSource trackStatements(String value)
public Boolean tracking()
public XaDataSource tracking(Boolean value)
public String transactionIsolation()
public XaDataSource transactionIsolation(String value)
public String urlDelimiter()
public XaDataSource urlDelimiter(String value)
public String urlProperty()
public XaDataSource urlProperty(String value)
public String urlSelectorStrategyClassName()
public XaDataSource urlSelectorStrategyClassName(String value)
public Boolean useCcm()
public XaDataSource useCcm(Boolean value)
public Boolean useFastFail()
public XaDataSource useFastFail(Boolean value)
public Boolean useJavaContext()
public XaDataSource useJavaContext(Boolean value)
public Long useTryLock()
public XaDataSource useTryLock(Long value)
public String userName()
public XaDataSource userName(String value)
public String validConnectionCheckerClassName()
public XaDataSource validConnectionCheckerClassName(String value)
public Map validConnectionCheckerProperties()
public XaDataSource validConnectionCheckerProperties(Map value)
public Boolean validateOnMatch()
public XaDataSource validateOnMatch(Boolean value)
public Boolean wrapXaResource()
public XaDataSource wrapXaResource(Boolean value)
public String xaDatasourceClass()
public XaDataSource xaDatasourceClass(String value)
public Integer xaResourceTimeout()
public XaDataSource xaResourceTimeout(Integer value)
public XaDataSource.XaDataSourceResources subresources()
public XaDataSource xaDatasourceProperties(List<XaDatasourceProperties> value)
value - List of org.wildfly.swarm.config.datasources.xa_data_source.XaDatasourceProperties objects.public XaDataSource xaDatasourceProperties(XaDatasourceProperties value)
value - The org.wildfly.swarm.config.datasources.xa_data_source.XaDatasourceProperties to addCopyright © 2015 JBoss by Red Hat. All rights reserved.