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 thexa-datasourceTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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-delimiterelementStringgetUrlProperty()Returns theurl-propertyelementStringgetUrlSelectorStrategyClassName()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>removeUrlProperty()Removes theurl-propertyelementXaDatasourceType<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-isolationelementXaDatasourceType<T>urlDelimiter(String urlDelimiter)Sets theurl-delimiterelementXaDatasourceType<T>urlProperty(String urlProperty)Sets theurl-propertyelementXaDatasourceType<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
XaDatasourceType<T> jndiName(String 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
XaDatasourceType<T> poolName(String 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
XaDatasourceType<T> enabled(Boolean 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
XaDatasourceType<T> useJavaContext(Boolean 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
XaDatasourceType<T> spy(Boolean 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
XaDatasourceType<T> useCcm(Boolean 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
XaDatasourcePropertyType>
-
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
XaDatasourcePropertyType>
-
xaDatasourceClass
XaDatasourceType<T> xaDatasourceClass(String 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
XaDatasourceType<T> driver(String 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
XaDatasourceType<T> urlDelimiter(String 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
-
urlProperty
XaDatasourceType<T> urlProperty(String urlProperty)
Sets theurl-propertyelement- Parameters:
urlProperty- the value for the elementurl-property- Returns:
- the current instance of
XaDatasourceType
-
getUrlProperty
String getUrlProperty()
Returns theurl-propertyelement- Returns:
- the node defined for the element
url-property
-
removeUrlProperty
XaDatasourceType<T> removeUrlProperty()
Removes theurl-propertyelement- Returns:
- the current instance of
XaDatasourceType
-
urlSelectorStrategyClassName
XaDatasourceType<T> urlSelectorStrategyClassName(String 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
XaDatasourceType<T> newConnectionSql(String 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
XaDatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
XaDatasourceType
-
transactionIsolation
XaDatasourceType<T> transactionIsolation(String 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
XaPoolType>
-
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
DsSecurityType>
-
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
ValidationType>
-
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
TimeoutType>
-
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
StatementType>
-
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
RecoverType>
-
removeRecovery
XaDatasourceType<T> removeRecovery()
Removes therecoveryelement- Returns:
- the current instance of
XaDatasourceType
-
-