Interface XaDatasourceType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
XaDatasourceTypeImpl
public interface XaDatasourceType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
xa-datasourceType xsd type-
Method Summary
Modifier and TypeMethodDescriptionCreates a newxa-datasource-propertyelementSets thedriverelementSets theenabledattributeReturns allxa-datasource-propertyelementsReturns thedriverelementReturns thejndi-nameattributeReturns thenew-connection-sqlelementIf not already created, a newrecoveryelement with the given value will be created.If not already created, a newsecurityelement with the given value will be created.If not already created, a newstatementelement with the given value will be created.If not already created, a newtimeoutelement with the given value will be created.If not already created, a newvalidationelement with the given value will be created.If not already created, a newxa-datasource-propertyelement will be created and returned.If not already created, a newxa-poolelement with the given value will be created.Returns thepool-nameattributeReturns thetransaction-isolationelementReturns thetransaction-isolationelementReturns theurl-delimiterelementReturns theurl-selector-strategy-class-nameelementReturns thexa-datasource-classelementReturns theenabledattributeisSpy()Returns thespyattributeisUseCcm()Returns theuse-ccmattributeReturns theuse-java-contextattributeSets thejndi-nameattributenewConnectionSql(String newConnectionSql) Sets thenew-connection-sqlelementSets thepool-nameattributeRemoves allxa-datasource-propertyelementsRemoves thedriverelementRemoves theenabledattributeRemoves thejndi-nameattributeRemoves thenew-connection-sqlelementRemoves thepool-nameattributeRemoves therecoveryelementRemoves thesecurityelementRemoves thespyattributeRemoves thestatementelementRemoves thetimeoutelementRemoves thetransaction-isolationattributeRemoves theurl-delimiterelementRemoves theurl-selector-strategy-class-nameelementRemoves theuse-ccmattributeRemoves theuse-java-contextattributeRemoves thevalidationelementRemoves thexa-datasource-classelementRemoves thexa-poolelementSets thespyattributetransactionIsolation(String transactionIsolation) Sets thetransaction-isolationelementtransactionIsolation(TransactionIsolationType transactionIsolation) Sets thetransaction-isolationelementurlDelimiter(String urlDelimiter) Sets theurl-delimiterelementurlSelectorStrategyClassName(String urlSelectorStrategyClassName) Sets theurl-selector-strategy-class-nameelementSets theuse-ccmattributeuseJavaContext(Boolean useJavaContext) Sets theuse-java-contextattributexaDatasourceClass(String xaDatasourceClass) Sets thexa-datasource-classelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
jndiName
Sets thejndi-nameattribute- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
XaDatasourceType
-
getJndiName
String getJndiName()Returns thejndi-nameattribute- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
XaDatasourceType<T> removeJndiName()Removes thejndi-nameattribute- Returns:
- the current instance of
XaDatasourceType
-
poolName
Sets thepool-nameattribute- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
XaDatasourceType
-
getPoolName
String getPoolName()Returns thepool-nameattribute- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
XaDatasourceType<T> removePoolName()Removes thepool-nameattribute- Returns:
- the current instance of
XaDatasourceType
-
enabled
Sets theenabledattribute- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
XaDatasourceType
-
isEnabled
Boolean isEnabled()Returns theenabledattribute- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
XaDatasourceType<T> removeEnabled()Removes theenabledattribute- Returns:
- the current instance of
XaDatasourceType
-
useJavaContext
Sets theuse-java-contextattribute- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
XaDatasourceType
-
isUseJavaContext
Boolean isUseJavaContext()Returns theuse-java-contextattribute- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
XaDatasourceType<T> removeUseJavaContext()Removes theuse-java-contextattribute- Returns:
- the current instance of
XaDatasourceType
-
spy
Sets thespyattribute- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
XaDatasourceType
-
isSpy
Boolean isSpy()Returns thespyattribute- Returns:
- the value defined for the attribute
spy
-
removeSpy
XaDatasourceType<T> removeSpy()Removes thespyattribute- Returns:
- the current instance of
XaDatasourceType
-
useCcm
Sets theuse-ccmattribute- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
XaDatasourceType
-
isUseCcm
Boolean isUseCcm()Returns theuse-ccmattribute- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
XaDatasourceType<T> removeUseCcm()Removes theuse-ccmattribute- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaDatasourceProperty
XaDatasourcePropertyType<XaDatasourceType<T>> getOrCreateXaDatasourceProperty()If not already created, a newxa-datasource-propertyelement will be created and returned. Otherwise, the first existingxa-datasource-propertyelement will be returned.- Returns:
- the instance defined for the element
xa-datasource-property
-
createXaDatasourceProperty
XaDatasourcePropertyType<XaDatasourceType<T>> createXaDatasourceProperty()Creates a newxa-datasource-propertyelement- Returns:
- the new created instance of
XaDatasourcePropertyTypeinvalid input: '<'XaDatasourceType>
-
getAllXaDatasourceProperty
List<XaDatasourcePropertyType<XaDatasourceType<T>>> getAllXaDatasourceProperty()Returns allxa-datasource-propertyelements- Returns:
- list of
xa-datasource-property
-
removeAllXaDatasourceProperty
XaDatasourceType<T> removeAllXaDatasourceProperty()Removes allxa-datasource-propertyelements- Returns:
- the current instance of
XaDatasourcePropertyTypeinvalid input: '<'XaDatasourceType>
-
xaDatasourceClass
Sets thexa-datasource-classelement- Parameters:
xaDatasourceClass- the value for the elementxa-datasource-class- Returns:
- the current instance of
XaDatasourceType
-
getXaDatasourceClass
String getXaDatasourceClass()Returns thexa-datasource-classelement- Returns:
- the node defined for the element
xa-datasource-class
-
removeXaDatasourceClass
XaDatasourceType<T> removeXaDatasourceClass()Removes thexa-datasource-classelement- Returns:
- the current instance of
XaDatasourceType
-
driver
Sets thedriverelement- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
XaDatasourceType
-
getDriver
String getDriver()Returns thedriverelement- Returns:
- the node defined for the element
driver
-
removeDriver
XaDatasourceType<T> removeDriver()Removes thedriverelement- Returns:
- the current instance of
XaDatasourceType
-
urlDelimiter
Sets theurl-delimiterelement- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
XaDatasourceType
-
getUrlDelimiter
String getUrlDelimiter()Returns theurl-delimiterelement- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
XaDatasourceType<T> removeUrlDelimiter()Removes theurl-delimiterelement- Returns:
- the current instance of
XaDatasourceType
-
urlSelectorStrategyClassName
Sets theurl-selector-strategy-class-nameelement- Parameters:
urlSelectorStrategyClassName- the value for the elementurl-selector-strategy-class-name- Returns:
- the current instance of
XaDatasourceType
-
getUrlSelectorStrategyClassName
String getUrlSelectorStrategyClassName()Returns theurl-selector-strategy-class-nameelement- Returns:
- the node defined for the element
url-selector-strategy-class-name
-
removeUrlSelectorStrategyClassName
XaDatasourceType<T> removeUrlSelectorStrategyClassName()Removes theurl-selector-strategy-class-nameelement- Returns:
- the current instance of
XaDatasourceType
-
newConnectionSql
Sets thenew-connection-sqlelement- Parameters:
newConnectionSql- the value for the elementnew-connection-sql- Returns:
- the current instance of
XaDatasourceType
-
getNewConnectionSql
String getNewConnectionSql()Returns thenew-connection-sqlelement- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
XaDatasourceType<T> removeNewConnectionSql()Removes thenew-connection-sqlelement- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
getTransactionIsolation
TransactionIsolationType getTransactionIsolation()Returns thetransaction-isolationelement- Returns:
- the value found for the element
transaction-isolation
-
getTransactionIsolationAsString
String getTransactionIsolationAsString()Returns thetransaction-isolationelement- Returns:
- the value found for the element
transaction-isolation
-
removeTransactionIsolation
XaDatasourceType<T> removeTransactionIsolation()Removes thetransaction-isolationattribute- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaPool
XaPoolType<XaDatasourceType<T>> getOrCreateXaPool()If not already created, a newxa-poolelement with the given value will be created. Otherwise, the existingxa-poolelement will be returned.- Returns:
- a new or existing instance of
XaPoolTypeinvalid input: '<'XaDatasourceType>
-
removeXaPool
XaDatasourceType<T> removeXaPool()Removes thexa-poolelement- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateSecurity
DsSecurityType<XaDatasourceType<T>> getOrCreateSecurity()If not already created, a newsecurityelement with the given value will be created. Otherwise, the existingsecurityelement will be returned.- Returns:
- a new or existing instance of
DsSecurityTypeinvalid input: '<'XaDatasourceType>
-
removeSecurity
XaDatasourceType<T> removeSecurity()Removes thesecurityelement- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateValidation
ValidationType<XaDatasourceType<T>> getOrCreateValidation()If not already created, a newvalidationelement with the given value will be created. Otherwise, the existingvalidationelement will be returned.- Returns:
- a new or existing instance of
ValidationTypeinvalid input: '<'XaDatasourceType>
-
removeValidation
XaDatasourceType<T> removeValidation()Removes thevalidationelement- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateTimeout
TimeoutType<XaDatasourceType<T>> getOrCreateTimeout()If not already created, a newtimeoutelement with the given value will be created. Otherwise, the existingtimeoutelement will be returned.- Returns:
- a new or existing instance of
TimeoutTypeinvalid input: '<'XaDatasourceType>
-
removeTimeout
XaDatasourceType<T> removeTimeout()Removes thetimeoutelement- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateStatement
StatementType<XaDatasourceType<T>> getOrCreateStatement()If not already created, a newstatementelement with the given value will be created. Otherwise, the existingstatementelement will be returned.- Returns:
- a new or existing instance of
StatementTypeinvalid input: '<'XaDatasourceType>
-
removeStatement
XaDatasourceType<T> removeStatement()Removes thestatementelement- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateRecovery
RecoverType<XaDatasourceType<T>> getOrCreateRecovery()If not already created, a newrecoveryelement with the given value will be created. Otherwise, the existingrecoveryelement will be returned.- Returns:
- a new or existing instance of
RecoverTypeinvalid input: '<'XaDatasourceType>
-
removeRecovery
XaDatasourceType<T> removeRecovery()Removes therecoveryelement- Returns:
- the current instance of
XaDatasourceType
-