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 thexa-datasourceTypexsd type
-
-
Constructor Summary
Constructors Constructor Description XaDatasourceTypeImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XaDatasourcePropertyType<XaDatasourceType<T>>createXaDatasourceProperty()Creates a newxa-datasource-propertyelementXaDatasourceType<T>driver(String driver)Sets thedriverelementXaDatasourceType<T>enabled(Boolean enabled)Sets theenabledattributeList<XaDatasourcePropertyType<XaDatasourceType<T>>>getAllXaDatasourceProperty()Returns allxa-datasource-propertyelementsStringgetDriver()Returns thedriverelementStringgetJndiName()Returns thejndi-nameattributeStringgetNewConnectionSql()Returns thenew-connection-sqlelementRecoverType<XaDatasourceType<T>>getOrCreateRecovery()If not already created, a newrecoveryelement with the given value will be created.DsSecurityType<XaDatasourceType<T>>getOrCreateSecurity()If not already created, a newsecurityelement with the given value will be created.StatementType<XaDatasourceType<T>>getOrCreateStatement()If not already created, a newstatementelement with the given value will be created.TimeoutType<XaDatasourceType<T>>getOrCreateTimeout()If not already created, a newtimeoutelement with the given value will be created.ValidationType<XaDatasourceType<T>>getOrCreateValidation()If not already created, a newvalidationelement with the given value will be created.XaDatasourcePropertyType<XaDatasourceType<T>>getOrCreateXaDatasourceProperty()If not already created, a newxa-datasource-propertyelement will be created and returned.XaPoolType<XaDatasourceType<T>>getOrCreateXaPool()If not already created, a newxa-poolelement with the given value will be created.StringgetPoolName()Returns thepool-nameattributeTransactionIsolationTypegetTransactionIsolation()Returns thetransaction-isolationelementStringgetTransactionIsolationAsString()Returns thetransaction-isolationelementStringgetUrlDelimiter()Returns theurl-delimiterelementStringgetUrlSelectorStrategyClassName()Returns theurl-selector-strategy-class-nameelementStringgetXaDatasourceClass()Returns thexa-datasource-classelementBooleanisEnabled()Returns theenabledattributeBooleanisSpy()Returns thespyattributeBooleanisUseCcm()Returns theuse-ccmattributeBooleanisUseJavaContext()Returns theuse-java-contextattributeXaDatasourceType<T>jndiName(String jndiName)Sets thejndi-nameattributeXaDatasourceType<T>newConnectionSql(String newConnectionSql)Sets thenew-connection-sqlelementXaDatasourceType<T>poolName(String poolName)Sets thepool-nameattributeXaDatasourceType<T>removeAllXaDatasourceProperty()Removes allxa-datasource-propertyelementsXaDatasourceType<T>removeDriver()Removes thedriverelementXaDatasourceType<T>removeEnabled()Removes theenabledattributeXaDatasourceType<T>removeJndiName()Removes thejndi-nameattributeXaDatasourceType<T>removeNewConnectionSql()Removes thenew-connection-sqlelementXaDatasourceType<T>removePoolName()Removes thepool-nameattributeXaDatasourceType<T>removeRecovery()Removes therecoveryelementXaDatasourceType<T>removeSecurity()Removes thesecurityelementXaDatasourceType<T>removeSpy()Removes thespyattributeXaDatasourceType<T>removeStatement()Removes thestatementelementXaDatasourceType<T>removeTimeout()Removes thetimeoutelementXaDatasourceType<T>removeTransactionIsolation()Removes thetransaction-isolationattributeXaDatasourceType<T>removeUrlDelimiter()Removes theurl-delimiterelementXaDatasourceType<T>removeUrlSelectorStrategyClassName()Removes theurl-selector-strategy-class-nameelementXaDatasourceType<T>removeUseCcm()Removes theuse-ccmattributeXaDatasourceType<T>removeUseJavaContext()Removes theuse-java-contextattributeXaDatasourceType<T>removeValidation()Removes thevalidationelementXaDatasourceType<T>removeXaDatasourceClass()Removes thexa-datasource-classelementXaDatasourceType<T>removeXaPool()Removes thexa-poolelementXaDatasourceType<T>spy(Boolean spy)Sets thespyattributeXaDatasourceType<T>transactionIsolation(String transactionIsolation)Sets thetransaction-isolationelementXaDatasourceType<T>transactionIsolation(TransactionIsolationType transactionIsolation)Sets thetransaction-isolationelementTup()XaDatasourceType<T>urlDelimiter(String urlDelimiter)Sets theurl-delimiterelementXaDatasourceType<T>urlSelectorStrategyClassName(String urlSelectorStrategyClassName)Sets theurl-selector-strategy-class-nameelementXaDatasourceType<T>useCcm(Boolean useCcm)Sets theuse-ccmattributeXaDatasourceType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattributeXaDatasourceType<T>xaDatasourceClass(String xaDatasourceClass)Sets thexa-datasource-classelement
-
-
-
Method Detail
-
jndiName
public XaDatasourceType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceXaDatasourceType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
XaDatasourceType
-
getJndiName
public String getJndiName()
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
public XaDatasourceType<T> removeJndiName()
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
poolName
public XaDatasourceType<T> poolName(String poolName)
Sets thepool-nameattribute- Specified by:
poolNamein interfaceXaDatasourceType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
XaDatasourceType
-
getPoolName
public String getPoolName()
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
public XaDatasourceType<T> removePoolName()
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
enabled
public XaDatasourceType<T> enabled(Boolean enabled)
Sets theenabledattribute- Specified by:
enabledin interfaceXaDatasourceType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
XaDatasourceType
-
isEnabled
public Boolean isEnabled()
Returns theenabledattribute- Specified by:
isEnabledin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
public XaDatasourceType<T> removeEnabled()
Removes theenabledattribute- Specified by:
removeEnabledin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
useJavaContext
public XaDatasourceType<T> useJavaContext(Boolean 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
public Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
public XaDatasourceType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
spy
public XaDatasourceType<T> spy(Boolean spy)
Sets thespyattribute- Specified by:
spyin interfaceXaDatasourceType<T>- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
XaDatasourceType
-
isSpy
public Boolean isSpy()
Returns thespyattribute- Specified by:
isSpyin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
spy
-
removeSpy
public XaDatasourceType<T> removeSpy()
Removes thespyattribute- Specified by:
removeSpyin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
useCcm
public XaDatasourceType<T> useCcm(Boolean useCcm)
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceXaDatasourceType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
XaDatasourceType
-
isUseCcm
public Boolean isUseCcm()
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceXaDatasourceType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
public XaDatasourceType<T> removeUseCcm()
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaDatasourceProperty
public 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.- Specified by:
getOrCreateXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the instance defined for the element
xa-datasource-property
-
createXaDatasourceProperty
public XaDatasourcePropertyType<XaDatasourceType<T>> createXaDatasourceProperty()
Creates a newxa-datasource-propertyelement- Specified by:
createXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the new created instance of
XaDatasourcePropertyType>
-
getAllXaDatasourceProperty
public List<XaDatasourcePropertyType<XaDatasourceType<T>>> getAllXaDatasourceProperty()
Returns allxa-datasource-propertyelements- Specified by:
getAllXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- list of
xa-datasource-property
-
removeAllXaDatasourceProperty
public XaDatasourceType<T> removeAllXaDatasourceProperty()
Removes allxa-datasource-propertyelements- Specified by:
removeAllXaDatasourcePropertyin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourcePropertyType>
-
xaDatasourceClass
public XaDatasourceType<T> xaDatasourceClass(String 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
public String getXaDatasourceClass()
Returns thexa-datasource-classelement- Specified by:
getXaDatasourceClassin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
xa-datasource-class
-
removeXaDatasourceClass
public XaDatasourceType<T> removeXaDatasourceClass()
Removes thexa-datasource-classelement- Specified by:
removeXaDatasourceClassin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
driver
public XaDatasourceType<T> driver(String driver)
Sets thedriverelement- Specified by:
driverin interfaceXaDatasourceType<T>- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
XaDatasourceType
-
getDriver
public String getDriver()
Returns thedriverelement- Specified by:
getDriverin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
driver
-
removeDriver
public XaDatasourceType<T> removeDriver()
Removes thedriverelement- Specified by:
removeDriverin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
urlDelimiter
public XaDatasourceType<T> urlDelimiter(String urlDelimiter)
Sets theurl-delimiterelement- Specified by:
urlDelimiterin interfaceXaDatasourceType<T>- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
XaDatasourceType
-
getUrlDelimiter
public String getUrlDelimiter()
Returns theurl-delimiterelement- Specified by:
getUrlDelimiterin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
public XaDatasourceType<T> removeUrlDelimiter()
Removes theurl-delimiterelement- Specified by:
removeUrlDelimiterin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
urlSelectorStrategyClassName
public XaDatasourceType<T> urlSelectorStrategyClassName(String 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
public String 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
public XaDatasourceType<T> removeUrlSelectorStrategyClassName()
Removes theurl-selector-strategy-class-nameelement- Specified by:
removeUrlSelectorStrategyClassNamein interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
newConnectionSql
public XaDatasourceType<T> newConnectionSql(String 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
public String getNewConnectionSql()
Returns thenew-connection-sqlelement- Specified by:
getNewConnectionSqlin interfaceXaDatasourceType<T>- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
public XaDatasourceType<T> removeNewConnectionSql()
Removes thenew-connection-sqlelement- Specified by:
removeNewConnectionSqlin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
public XaDatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceXaDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
public XaDatasourceType<T> transactionIsolation(String transactionIsolation)
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceXaDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
getTransactionIsolation
public TransactionIsolationType getTransactionIsolation()
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationin interfaceXaDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
getTransactionIsolationAsString
public String getTransactionIsolationAsString()
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationAsStringin interfaceXaDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
removeTransactionIsolation
public XaDatasourceType<T> removeTransactionIsolation()
Removes thetransaction-isolationattribute- Specified by:
removeTransactionIsolationin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateXaPool
public 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.- Specified by:
getOrCreateXaPoolin interfaceXaDatasourceType<T>- Returns:
- a new or existing instance of
XaPoolType>
-
removeXaPool
public XaDatasourceType<T> removeXaPool()
Removes thexa-poolelement- Specified by:
removeXaPoolin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateSecurity
public DsSecurityType<XaDatasourceType<T>> 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
DsSecurityType>
-
removeSecurity
public XaDatasourceType<T> removeSecurity()
Removes thesecurityelement- Specified by:
removeSecurityin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateValidation
public ValidationType<XaDatasourceType<T>> 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
ValidationType>
-
removeValidation
public XaDatasourceType<T> removeValidation()
Removes thevalidationelement- Specified by:
removeValidationin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateTimeout
public TimeoutType<XaDatasourceType<T>> 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
TimeoutType>
-
removeTimeout
public XaDatasourceType<T> removeTimeout()
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateStatement
public StatementType<XaDatasourceType<T>> 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
StatementType>
-
removeStatement
public XaDatasourceType<T> removeStatement()
Removes thestatementelement- Specified by:
removeStatementin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateRecovery
public RecoverType<XaDatasourceType<T>> 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
RecoverType>
-
removeRecovery
public XaDatasourceType<T> removeRecovery()
Removes therecoveryelement- Specified by:
removeRecoveryin interfaceXaDatasourceType<T>- Returns:
- the current instance of
XaDatasourceType
-
-