Class DatasourceTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.datasources12.impl.DatasourceTypeImpl<T>
-
- All Implemented Interfaces:
DatasourceType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class DatasourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DatasourceType<T>
This class implements thedatasourceTypexsd type
-
-
Constructor Summary
Constructors Constructor Description DatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)DatasourceTypeImpl(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 DatasourceType<T>connectionUrl(String connectionUrl)Sets theconnection-urlelementConnectionPropertyType<DatasourceType<T>>createConnectionProperty()Creates a newconnection-propertyelementDatasourceType<T>datasourceClass(String datasourceClass)Sets thedatasource-classelementDatasourceType<T>driver(String driver)Sets thedriverelementDatasourceType<T>driverClass(String driverClass)Sets thedriver-classelementDatasourceType<T>enabled(Boolean enabled)Sets theenabledattributeList<ConnectionPropertyType<DatasourceType<T>>>getAllConnectionProperty()Returns allconnection-propertyelementsStringgetConnectionUrl()Returns theconnection-urlelementStringgetDatasourceClass()Returns thedatasource-classelementStringgetDriver()Returns thedriverelementStringgetDriverClass()Returns thedriver-classelementStringgetJndiName()Returns thejndi-nameattributeStringgetNewConnectionSql()Returns thenew-connection-sqlelementConnectionPropertyType<DatasourceType<T>>getOrCreateConnectionProperty()If not already created, a newconnection-propertyelement will be created and returned.PoolType<DatasourceType<T>>getOrCreatePool()If not already created, a newpoolelement with the given value will be created.DsSecurityType<DatasourceType<T>>getOrCreateSecurity()If not already created, a newsecurityelement with the given value will be created.StatementType<DatasourceType<T>>getOrCreateStatement()If not already created, a newstatementelement with the given value will be created.TimeoutType<DatasourceType<T>>getOrCreateTimeout()If not already created, a newtimeoutelement with the given value will be created.ValidationType<DatasourceType<T>>getOrCreateValidation()If not already created, a newvalidationelement 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-nameelementBooleanisEnabled()Returns theenabledattributeBooleanisJta()Returns thejtaattributeBooleanisSpy()Returns thespyattributeBooleanisUseCcm()Returns theuse-ccmattributeBooleanisUseJavaContext()Returns theuse-java-contextattributeDatasourceType<T>jndiName(String jndiName)Sets thejndi-nameattributeDatasourceType<T>jta(Boolean jta)Sets thejtaattributeDatasourceType<T>newConnectionSql(String newConnectionSql)Sets thenew-connection-sqlelementDatasourceType<T>poolName(String poolName)Sets thepool-nameattributeDatasourceType<T>removeAllConnectionProperty()Removes allconnection-propertyelementsDatasourceType<T>removeConnectionUrl()Removes theconnection-urlelementDatasourceType<T>removeDatasourceClass()Removes thedatasource-classelementDatasourceType<T>removeDriver()Removes thedriverelementDatasourceType<T>removeDriverClass()Removes thedriver-classelementDatasourceType<T>removeEnabled()Removes theenabledattributeDatasourceType<T>removeJndiName()Removes thejndi-nameattributeDatasourceType<T>removeJta()Removes thejtaattributeDatasourceType<T>removeNewConnectionSql()Removes thenew-connection-sqlelementDatasourceType<T>removePool()Removes thepoolelementDatasourceType<T>removePoolName()Removes thepool-nameattributeDatasourceType<T>removeSecurity()Removes thesecurityelementDatasourceType<T>removeSpy()Removes thespyattributeDatasourceType<T>removeStatement()Removes thestatementelementDatasourceType<T>removeTimeout()Removes thetimeoutelementDatasourceType<T>removeTransactionIsolation()Removes thetransaction-isolationattributeDatasourceType<T>removeUrlDelimiter()Removes theurl-delimiterelementDatasourceType<T>removeUrlSelectorStrategyClassName()Removes theurl-selector-strategy-class-nameelementDatasourceType<T>removeUseCcm()Removes theuse-ccmattributeDatasourceType<T>removeUseJavaContext()Removes theuse-java-contextattributeDatasourceType<T>removeValidation()Removes thevalidationelementDatasourceType<T>spy(Boolean spy)Sets thespyattributeDatasourceType<T>transactionIsolation(String transactionIsolation)Sets thetransaction-isolationelementDatasourceType<T>transactionIsolation(TransactionIsolationType transactionIsolation)Sets thetransaction-isolationelementTup()DatasourceType<T>urlDelimiter(String urlDelimiter)Sets theurl-delimiterelementDatasourceType<T>urlSelectorStrategyClassName(String urlSelectorStrategyClassName)Sets theurl-selector-strategy-class-nameelementDatasourceType<T>useCcm(Boolean useCcm)Sets theuse-ccmattributeDatasourceType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattribute
-
-
-
Method Detail
-
jndiName
public DatasourceType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceDatasourceType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
DatasourceType
-
getJndiName
public String getJndiName()
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
public DatasourceType<T> removeJndiName()
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
poolName
public DatasourceType<T> poolName(String poolName)
Sets thepool-nameattribute- Specified by:
poolNamein interfaceDatasourceType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
DatasourceType
-
getPoolName
public String getPoolName()
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
public DatasourceType<T> removePoolName()
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
enabled
public DatasourceType<T> enabled(Boolean enabled)
Sets theenabledattribute- Specified by:
enabledin interfaceDatasourceType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
DatasourceType
-
isEnabled
public Boolean isEnabled()
Returns theenabledattribute- Specified by:
isEnabledin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
public DatasourceType<T> removeEnabled()
Removes theenabledattribute- Specified by:
removeEnabledin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
useJavaContext
public DatasourceType<T> useJavaContext(Boolean useJavaContext)
Sets theuse-java-contextattribute- Specified by:
useJavaContextin interfaceDatasourceType<T>- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
DatasourceType
-
isUseJavaContext
public Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
public DatasourceType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
spy
public DatasourceType<T> spy(Boolean spy)
Sets thespyattribute- Specified by:
spyin interfaceDatasourceType<T>- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
DatasourceType
-
isSpy
public Boolean isSpy()
Returns thespyattribute- Specified by:
isSpyin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
spy
-
removeSpy
public DatasourceType<T> removeSpy()
Removes thespyattribute- Specified by:
removeSpyin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
useCcm
public DatasourceType<T> useCcm(Boolean useCcm)
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceDatasourceType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
DatasourceType
-
isUseCcm
public Boolean isUseCcm()
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
public DatasourceType<T> removeUseCcm()
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
connectionUrl
public DatasourceType<T> connectionUrl(String connectionUrl)
Sets theconnection-urlelement- Specified by:
connectionUrlin interfaceDatasourceType<T>- Parameters:
connectionUrl- the value for the elementconnection-url- Returns:
- the current instance of
DatasourceType
-
getConnectionUrl
public String getConnectionUrl()
Returns theconnection-urlelement- Specified by:
getConnectionUrlin interfaceDatasourceType<T>- Returns:
- the node defined for the element
connection-url
-
removeConnectionUrl
public DatasourceType<T> removeConnectionUrl()
Removes theconnection-urlelement- Specified by:
removeConnectionUrlin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
driverClass
public DatasourceType<T> driverClass(String driverClass)
Sets thedriver-classelement- Specified by:
driverClassin interfaceDatasourceType<T>- Parameters:
driverClass- the value for the elementdriver-class- Returns:
- the current instance of
DatasourceType
-
getDriverClass
public String getDriverClass()
Returns thedriver-classelement- Specified by:
getDriverClassin interfaceDatasourceType<T>- Returns:
- the node defined for the element
driver-class
-
removeDriverClass
public DatasourceType<T> removeDriverClass()
Removes thedriver-classelement- Specified by:
removeDriverClassin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
datasourceClass
public DatasourceType<T> datasourceClass(String datasourceClass)
Sets thedatasource-classelement- Specified by:
datasourceClassin interfaceDatasourceType<T>- Parameters:
datasourceClass- the value for the elementdatasource-class- Returns:
- the current instance of
DatasourceType
-
getDatasourceClass
public String getDatasourceClass()
Returns thedatasource-classelement- Specified by:
getDatasourceClassin interfaceDatasourceType<T>- Returns:
- the node defined for the element
datasource-class
-
removeDatasourceClass
public DatasourceType<T> removeDatasourceClass()
Removes thedatasource-classelement- Specified by:
removeDatasourceClassin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
driver
public DatasourceType<T> driver(String driver)
Sets thedriverelement- Specified by:
driverin interfaceDatasourceType<T>- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
DatasourceType
-
getDriver
public String getDriver()
Returns thedriverelement- Specified by:
getDriverin interfaceDatasourceType<T>- Returns:
- the node defined for the element
driver
-
removeDriver
public DatasourceType<T> removeDriver()
Removes thedriverelement- Specified by:
removeDriverin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreateConnectionProperty
public ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty()
If not already created, a newconnection-propertyelement will be created and returned. Otherwise, the first existingconnection-propertyelement will be returned.- Specified by:
getOrCreateConnectionPropertyin interfaceDatasourceType<T>- Returns:
- the instance defined for the element
connection-property
-
createConnectionProperty
public ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
Creates a newconnection-propertyelement- Specified by:
createConnectionPropertyin interfaceDatasourceType<T>- Returns:
- the new created instance of
ConnectionPropertyType>
-
getAllConnectionProperty
public List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
Returns allconnection-propertyelements- Specified by:
getAllConnectionPropertyin interfaceDatasourceType<T>- Returns:
- list of
connection-property
-
removeAllConnectionProperty
public DatasourceType<T> removeAllConnectionProperty()
Removes allconnection-propertyelements- Specified by:
removeAllConnectionPropertyin interfaceDatasourceType<T>- Returns:
- the current instance of
ConnectionPropertyType>
-
newConnectionSql
public DatasourceType<T> newConnectionSql(String newConnectionSql)
Sets thenew-connection-sqlelement- Specified by:
newConnectionSqlin interfaceDatasourceType<T>- Parameters:
newConnectionSql- the value for the elementnew-connection-sql- Returns:
- the current instance of
DatasourceType
-
getNewConnectionSql
public String getNewConnectionSql()
Returns thenew-connection-sqlelement- Specified by:
getNewConnectionSqlin interfaceDatasourceType<T>- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
public DatasourceType<T> removeNewConnectionSql()
Removes thenew-connection-sqlelement- Specified by:
removeNewConnectionSqlin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
public DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
public DatasourceType<T> transactionIsolation(String transactionIsolation)
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
getTransactionIsolation
public TransactionIsolationType getTransactionIsolation()
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationin interfaceDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
getTransactionIsolationAsString
public String getTransactionIsolationAsString()
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationAsStringin interfaceDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
removeTransactionIsolation
public DatasourceType<T> removeTransactionIsolation()
Removes thetransaction-isolationattribute- Specified by:
removeTransactionIsolationin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
urlDelimiter
public DatasourceType<T> urlDelimiter(String urlDelimiter)
Sets theurl-delimiterelement- Specified by:
urlDelimiterin interfaceDatasourceType<T>- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
DatasourceType
-
getUrlDelimiter
public String getUrlDelimiter()
Returns theurl-delimiterelement- Specified by:
getUrlDelimiterin interfaceDatasourceType<T>- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
public DatasourceType<T> removeUrlDelimiter()
Removes theurl-delimiterelement- Specified by:
removeUrlDelimiterin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
urlSelectorStrategyClassName
public DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
Sets theurl-selector-strategy-class-nameelement- Specified by:
urlSelectorStrategyClassNamein interfaceDatasourceType<T>- Parameters:
urlSelectorStrategyClassName- the value for the elementurl-selector-strategy-class-name- Returns:
- the current instance of
DatasourceType
-
getUrlSelectorStrategyClassName
public String getUrlSelectorStrategyClassName()
Returns theurl-selector-strategy-class-nameelement- Specified by:
getUrlSelectorStrategyClassNamein interfaceDatasourceType<T>- Returns:
- the node defined for the element
url-selector-strategy-class-name
-
removeUrlSelectorStrategyClassName
public DatasourceType<T> removeUrlSelectorStrategyClassName()
Removes theurl-selector-strategy-class-nameelement- Specified by:
removeUrlSelectorStrategyClassNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreatePool
public PoolType<DatasourceType<T>> getOrCreatePool()
If not already created, a newpoolelement with the given value will be created. Otherwise, the existingpoolelement will be returned.- Specified by:
getOrCreatePoolin interfaceDatasourceType<T>- Returns:
- a new or existing instance of
PoolType>
-
removePool
public DatasourceType<T> removePool()
Removes thepoolelement- Specified by:
removePoolin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreateSecurity
public DsSecurityType<DatasourceType<T>> getOrCreateSecurity()
If not already created, a newsecurityelement with the given value will be created. Otherwise, the existingsecurityelement will be returned.- Specified by:
getOrCreateSecurityin interfaceDatasourceType<T>- Returns:
- a new or existing instance of
DsSecurityType>
-
removeSecurity
public DatasourceType<T> removeSecurity()
Removes thesecurityelement- Specified by:
removeSecurityin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreateValidation
public ValidationType<DatasourceType<T>> getOrCreateValidation()
If not already created, a newvalidationelement with the given value will be created. Otherwise, the existingvalidationelement will be returned.- Specified by:
getOrCreateValidationin interfaceDatasourceType<T>- Returns:
- a new or existing instance of
ValidationType>
-
removeValidation
public DatasourceType<T> removeValidation()
Removes thevalidationelement- Specified by:
removeValidationin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreateTimeout
public TimeoutType<DatasourceType<T>> getOrCreateTimeout()
If not already created, a newtimeoutelement with the given value will be created. Otherwise, the existingtimeoutelement will be returned.- Specified by:
getOrCreateTimeoutin interfaceDatasourceType<T>- Returns:
- a new or existing instance of
TimeoutType>
-
removeTimeout
public DatasourceType<T> removeTimeout()
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
getOrCreateStatement
public StatementType<DatasourceType<T>> getOrCreateStatement()
If not already created, a newstatementelement with the given value will be created. Otherwise, the existingstatementelement will be returned.- Specified by:
getOrCreateStatementin interfaceDatasourceType<T>- Returns:
- a new or existing instance of
StatementType>
-
removeStatement
public DatasourceType<T> removeStatement()
Removes thestatementelement- Specified by:
removeStatementin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
jta
public DatasourceType<T> jta(Boolean jta)
Sets thejtaattribute- Specified by:
jtain interfaceDatasourceType<T>- Parameters:
jta- the value for the attributejta- Returns:
- the current instance of
DatasourceType
-
isJta
public Boolean isJta()
Returns thejtaattribute- Specified by:
isJtain interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
jta
-
removeJta
public DatasourceType<T> removeJta()
Removes thejtaattribute- Specified by:
removeJtain interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
-