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 the
datasourceType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionDatasourceTypeImpl(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
Modifier and TypeMethodDescriptionconnectionUrl(String connectionUrl) Sets theconnection-urlelementCreates a newconnection-propertyelementdatasourceClass(String datasourceClass) Sets thedatasource-classelementSets thedriverelementdriverClass(String driverClass) Sets thedriver-classelementSets theenabledattributeReturns allconnection-propertyelementsReturns theconnection-urlelementReturns thedatasource-classelementReturns thedriverelementReturns thedriver-classelementReturns thejndi-nameattributeReturns thenew-connection-sqlelementIf not already created, a newconnection-propertyelement will be created and returned.If not already created, a newpoolelement 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.Returns thepool-nameattributeReturns thetransaction-isolationelementReturns thetransaction-isolationelementReturns theurl-delimiterelementReturns theurl-selector-strategy-class-nameelementReturns theenabledattributeisJta()Returns thejtaattributeisSpy()Returns thespyattributeisUseCcm()Returns theuse-ccmattributeReturns theuse-java-contextattributeSets thejndi-nameattributeSets thejtaattributenewConnectionSql(String newConnectionSql) Sets thenew-connection-sqlelementSets thepool-nameattributeRemoves allconnection-propertyelementsRemoves theconnection-urlelementRemoves thedatasource-classelementRemoves thedriverelementRemoves thedriver-classelementRemoves theenabledattributeRemoves thejndi-nameattributeRemoves thejtaattributeRemoves thenew-connection-sqlelementRemoves thepoolelementRemoves thepool-nameattributeRemoves thesecurityelementRemoves thespyattributeRemoves thestatementelementRemoves thetimeoutelementRemoves thetransaction-isolationattributeRemoves theurl-delimiterelementRemoves theurl-selector-strategy-class-nameelementRemoves theuse-ccmattributeRemoves theuse-java-contextattributeRemoves thevalidationelementSets 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-contextattribute
-
Constructor Details
-
DatasourceTypeImpl
-
DatasourceTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
jndiName
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceDatasourceType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
DatasourceType
-
getJndiName
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
poolName
Sets thepool-nameattribute- Specified by:
poolNamein interfaceDatasourceType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
DatasourceType
-
getPoolName
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
enabled
Sets theenabledattribute- Specified by:
enabledin interfaceDatasourceType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
DatasourceType
-
isEnabled
Returns theenabledattribute- Specified by:
isEnabledin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
Removes theenabledattribute- Specified by:
removeEnabledin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
spy
Sets thespyattribute- Specified by:
spyin interfaceDatasourceType<T>- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
DatasourceType
-
isSpy
Returns thespyattribute- Specified by:
isSpyin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
spy
-
removeSpy
Removes thespyattribute- Specified by:
removeSpyin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
useCcm
Sets theuse-ccmattribute- Specified by:
useCcmin interfaceDatasourceType<T>- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
DatasourceType
-
isUseCcm
Returns theuse-ccmattribute- Specified by:
isUseCcmin interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
Removes theuse-ccmattribute- Specified by:
removeUseCcmin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
connectionUrl
Sets theconnection-urlelement- Specified by:
connectionUrlin interfaceDatasourceType<T>- Parameters:
connectionUrl- the value for the elementconnection-url- Returns:
- the current instance of
DatasourceType
-
getConnectionUrl
Returns theconnection-urlelement- Specified by:
getConnectionUrlin interfaceDatasourceType<T>- Returns:
- the node defined for the element
connection-url
-
removeConnectionUrl
Removes theconnection-urlelement- Specified by:
removeConnectionUrlin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
driverClass
Sets thedriver-classelement- Specified by:
driverClassin interfaceDatasourceType<T>- Parameters:
driverClass- the value for the elementdriver-class- Returns:
- the current instance of
DatasourceType
-
getDriverClass
Returns thedriver-classelement- Specified by:
getDriverClassin interfaceDatasourceType<T>- Returns:
- the node defined for the element
driver-class
-
removeDriverClass
Removes thedriver-classelement- Specified by:
removeDriverClassin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
datasourceClass
Sets thedatasource-classelement- Specified by:
datasourceClassin interfaceDatasourceType<T>- Parameters:
datasourceClass- the value for the elementdatasource-class- Returns:
- the current instance of
DatasourceType
-
getDatasourceClass
Returns thedatasource-classelement- Specified by:
getDatasourceClassin interfaceDatasourceType<T>- Returns:
- the node defined for the element
datasource-class
-
removeDatasourceClass
Removes thedatasource-classelement- Specified by:
removeDatasourceClassin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
driver
Sets thedriverelement- Specified by:
driverin interfaceDatasourceType<T>- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
DatasourceType
-
getDriver
Returns thedriverelement- Specified by:
getDriverin interfaceDatasourceType<T>- Returns:
- the node defined for the element
driver
-
removeDriver
Removes thedriverelement- Specified by:
removeDriverin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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
Creates a newconnection-propertyelement- Specified by:
createConnectionPropertyin interfaceDatasourceType<T>- Returns:
- the new created instance of
ConnectionPropertyType<DatasourceType>
-
getAllConnectionProperty
Returns allconnection-propertyelements- Specified by:
getAllConnectionPropertyin interfaceDatasourceType<T>- Returns:
- list of
connection-property
-
removeAllConnectionProperty
Removes allconnection-propertyelements- Specified by:
removeAllConnectionPropertyin interfaceDatasourceType<T>- Returns:
- the current instance of
ConnectionPropertyType<DatasourceType>
-
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
Returns thenew-connection-sqlelement- Specified by:
getNewConnectionSqlin interfaceDatasourceType<T>- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
Removes thenew-connection-sqlelement- Specified by:
removeNewConnectionSqlin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Specified by:
transactionIsolationin interfaceDatasourceType<T>- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
getTransactionIsolation
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationin interfaceDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
getTransactionIsolationAsString
Returns thetransaction-isolationelement- Specified by:
getTransactionIsolationAsStringin interfaceDatasourceType<T>- Returns:
- the value found for the element
transaction-isolation
-
removeTransactionIsolation
Removes thetransaction-isolationattribute- Specified by:
removeTransactionIsolationin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
urlDelimiter
Sets theurl-delimiterelement- Specified by:
urlDelimiterin interfaceDatasourceType<T>- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
DatasourceType
-
getUrlDelimiter
Returns theurl-delimiterelement- Specified by:
getUrlDelimiterin interfaceDatasourceType<T>- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
Removes theurl-delimiterelement- Specified by:
removeUrlDelimiterin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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
Returns theurl-selector-strategy-class-nameelement- Specified by:
getUrlSelectorStrategyClassNamein interfaceDatasourceType<T>- Returns:
- the node defined for the element
url-selector-strategy-class-name
-
removeUrlSelectorStrategyClassName
Removes theurl-selector-strategy-class-nameelement- Specified by:
removeUrlSelectorStrategyClassNamein interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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<DatasourceType>
-
removePool
Removes thepoolelement- Specified by:
removePoolin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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<DatasourceType>
-
removeSecurity
Removes thesecurityelement- Specified by:
removeSecurityin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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<DatasourceType>
-
removeValidation
Removes thevalidationelement- Specified by:
removeValidationin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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<DatasourceType>
-
removeTimeout
Removes thetimeoutelement- Specified by:
removeTimeoutin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
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<DatasourceType>
-
removeStatement
Removes thestatementelement- Specified by:
removeStatementin interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-
jta
Sets thejtaattribute- Specified by:
jtain interfaceDatasourceType<T>- Parameters:
jta- the value for the attributejta- Returns:
- the current instance of
DatasourceType
-
isJta
Returns thejtaattribute- Specified by:
isJtain interfaceDatasourceType<T>- Returns:
- the value defined for the attribute
jta
-
removeJta
Removes thejtaattribute- Specified by:
removeJtain interfaceDatasourceType<T>- Returns:
- the current instance of
DatasourceType
-