Class XaDatasourceTypeImpl<T>
java.lang.Object
org.jboss.jca.embedded.dsl.datasources10.impl.XaDatasourceTypeImpl<T>
- All Implemented Interfaces:
XaDatasourceType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class XaDatasourceTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, XaDatasourceType<T>
This class implements the
xa-datasourceType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionXaDatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) XaDatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) -
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-isolationelementup()urlDelimiter(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-classelement
-
Constructor Details
-
XaDatasourceTypeImpl
-
XaDatasourceTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
jndiName
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceXaDatasourceType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
XaDatasourceType
-
getJndiName
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
poolName
Sets thepool-nameattribute- Specified by:
poolNamein interfaceXaDatasourceType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
XaDatasourceType
-
getPoolName
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
enabled
Sets theenabledattribute- Specified by:
enabledin interfaceXaDatasourceType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
XaDatasourceType
-
isEnabled
Returns theenabledattribute- Specified by:
isEnabledin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
Removes theenabledattribute- Specified by:
removeEnabledin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
useJavaContext
Sets theuse-java-contextattribute- Specified by:
useJavaContextin interfaceXaDatasourceType<T>- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
XaDatasourceType
-
isUseJavaContext
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
spy
Sets thespyattribute- Specified by:
spyin interfaceXaDatasourceType<T>- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
XaDatasourceType
-
isSpy
Returns thespyattribute- Specified by:
isSpyin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
spy
-
removeSpy
Removes thespyattribute- Specified by:
removeSpyin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
useCcm
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceXaDatasourceType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
XaDatasourceType
-
isUseCcm
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaDatasourceProperty
If not already created, a newxa-datasource-propertyelement will be created and returned. Otherwise, the first existingxa-datasource-propertyelement will be returned.- Specified by:
getOrCreateXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the instance defined for the element
xa-datasource-property
-
createXaDatasourceProperty
Creates a newxa-datasource-propertyelement- Specified by:
createXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the new created instance of
XaDatasourcePropertyTypeinvalid input: '<'XaDatasourceType>
-
getAllXaDatasourceProperty
Returns allxa-datasource-propertyelements- Specified by:
getAllXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- list of
xa-datasource-property
-
removeAllXaDatasourceProperty
Removes allxa-datasource-propertyelements- Specified by:
removeAllXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourcePropertyTypeinvalid input: '<'XaDatasourceType>
-
xaDatasourceClass
Sets thexa-datasource-classelement- Specified by:
xaDatasourceClassin interfaceXaDatasourceType<T>- Parameters:
xaDatasourceClass- the value for the elementxa-datasource-class- Returns:
- the current instance of
XaDatasourceType
-
getXaDatasourceClass
Returns thexa-datasource-classelement- Specified by:
getXaDatasourceClassin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
xa-datasource-class
-
removeXaDatasourceClass
Removes thexa-datasource-classelement- Specified by:
removeXaDatasourceClassin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
driver
Sets thedriverelement- Specified by:
driverin interfaceXaDatasourceType<T>- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
XaDatasourceType
-
getDriver
Returns thedriverelement- Specified by:
getDriverin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
driver
-
removeDriver
Removes thedriverelement- Specified by:
removeDriverin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
urlDelimiter
Sets theurl-delimiterelement- Specified by:
urlDelimiterin interfaceXaDatasourceType<T>- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
XaDatasourceType
-
getUrlDelimiter
Returns theurl-delimiterelement- Specified by:
getUrlDelimiterin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
Removes theurl-delimiterelement- Specified by:
removeUrlDelimiterin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
urlSelectorStrategyClassName
Sets theurl-selector-strategy-class-nameelement- Specified by:
urlSelectorStrategyClassNamein interfaceXaDatasourceType<T>- Parameters:
urlSelectorStrategyClassName- the value for the elementurl-selector-strategy-class-name- Returns:
- the current instance of
XaDatasourceType
-
getUrlSelectorStrategyClassName
Returns theurl-selector-strategy-class-nameelement- Specified by:
getUrlSelectorStrategyClassNamein interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
url-selector-strategy-class-name
-
removeUrlSelectorStrategyClassName
Removes theurl-selector-strategy-class-nameelement- Specified by:
removeUrlSelectorStrategyClassNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
newConnectionSql
Sets thenew-connection-sqlelement- Specified by:
newConnectionSqlin interfaceXaDatasourceType<T>- Parameters:
newConnectionSql- the value for the elementnew-connection-sql- Returns:
- the current instance of
XaDatasourceType
-
getNewConnectionSql
Returns thenew-connection-sqlelement- Specified by:
getNewConnectionSqlin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
Removes thenew-connection-sqlelement- Specified by:
removeNewConnectionSqlin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceXaDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceXaDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
getTransactionIsolation
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationin interfaceXaDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
getTransactionIsolationAsString
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationAsStringin interfaceXaDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
removeTransactionIsolation
Removes thetransaction-isolationattribute- Specified by:
removeTransactionIsolationin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaPool
If not already created, a newxa-poolelement with the given value will be created. Otherwise, the existingxa-poolelement will be returned.- Specified by:
getOrCreateXaPoolin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
XaPoolTypeinvalid input: '<'XaDatasourceType>
-
removeXaPool
Removes thexa-poolelement- Specified by:
removeXaPoolin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateSecurity
If not already created, a newsecurityelement with the given value will be created. Otherwise, the existingsecurityelement will be returned.- Specified by:
getOrCreateSecurityin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
DsSecurityTypeinvalid input: '<'XaDatasourceType>
-
removeSecurity
Removes thesecurityelement- Specified by:
removeSecurityin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateValidation
If not already created, a newvalidationelement with the given value will be created. Otherwise, the existingvalidationelement will be returned.- Specified by:
getOrCreateValidationin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
ValidationTypeinvalid input: '<'XaDatasourceType>
-
removeValidation
Removes thevalidationelement- Specified by:
removeValidationin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateTimeout
If not already created, a newtimeoutelement with the given value will be created. Otherwise, the existingtimeoutelement will be returned.- Specified by:
getOrCreateTimeoutin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
TimeoutTypeinvalid input: '<'XaDatasourceType>
-
removeTimeout
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateStatement
If not already created, a newstatementelement with the given value will be created. Otherwise, the existingstatementelement will be returned.- Specified by:
getOrCreateStatementin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
StatementTypeinvalid input: '<'XaDatasourceType>
-
removeStatement
Removes thestatementelement- Specified by:
removeStatementin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateRecovery
If not already created, a newrecoveryelement with the given value will be created. Otherwise, the existingrecoveryelement will be returned.- Specified by:
getOrCreateRecoveryin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
RecoverTypeinvalid input: '<'XaDatasourceType>
-
removeRecovery
Removes therecoveryelement- Specified by:
removeRecoveryin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-