Interface DatasourceType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
DatasourceTypeImpl
public interface DatasourceType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
datasourceType xsd type-
Method Summary
Modifier and TypeMethodDescriptionconnectable(Boolean connectable) Sets theconnectableattributeconnectionUrl(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 theconnectableattributeReturns theenabledattributeisJta()Returns thejtaattributeisSpy()Returns thespyattributeReturns thetrackingattributeisUseCcm()Returns theuse-ccmattributeReturns theuse-java-contextattributeSets thejndi-nameattributeSets thejtaattributenewConnectionSql(String newConnectionSql) Sets thenew-connection-sqlelementSets thepool-nameattributeRemoves allconnection-propertyelementsRemoves theconnectableattributeRemoves theconnection-urlelementRemoves thedatasource-classelementRemoves thedriverelementRemoves thedriver-classelementRemoves theenabledattributeRemoves thejndi-nameattributeRemoves thejtaattributeRemoves thenew-connection-sqlelementRemoves thepoolelementRemoves thepool-nameattributeRemoves thesecurityelementRemoves thespyattributeRemoves thestatementelementRemoves thetimeoutelementRemoves thetrackingattributeRemoves thetransaction-isolationattributeRemoves theurl-delimiterelementRemoves theurl-selector-strategy-class-nameelementRemoves theuse-ccmattributeRemoves theuse-java-contextattributeRemoves thevalidationelementSets thespyattributeSets thetrackingattributetransactionIsolation(String transactionIsolation) Sets thetransaction-isolationelementtransactionIsolation(TransactionIsolationType transactionIsolation) Sets thetransaction-isolationelementurlDelimiter(String urlDelimiter) Sets theurl-delimiterelementurlSelectorStrategyClassName(String urlSelectorStrategyClassName) Sets theurl-selector-strategy-class-nameelementSets theuse-ccmattributeuseJavaContext(Boolean useJavaContext) Sets theuse-java-contextattributeMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
jndiName
Sets thejndi-nameattribute- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
DatasourceType
-
getJndiName
String getJndiName()Returns thejndi-nameattribute- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
DatasourceType<T> removeJndiName()Removes thejndi-nameattribute- Returns:
- the current instance of
DatasourceType
-
poolName
Sets thepool-nameattribute- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
DatasourceType
-
getPoolName
String getPoolName()Returns thepool-nameattribute- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
DatasourceType<T> removePoolName()Removes thepool-nameattribute- Returns:
- the current instance of
DatasourceType
-
enabled
Sets theenabledattribute- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
DatasourceType
-
isEnabled
Boolean isEnabled()Returns theenabledattribute- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
DatasourceType<T> removeEnabled()Removes theenabledattribute- Returns:
- the current instance of
DatasourceType
-
useJavaContext
Sets theuse-java-contextattribute- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
DatasourceType
-
isUseJavaContext
Boolean isUseJavaContext()Returns theuse-java-contextattribute- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
DatasourceType<T> removeUseJavaContext()Removes theuse-java-contextattribute- Returns:
- the current instance of
DatasourceType
-
spy
Sets thespyattribute- Parameters:
spy- the value for the attributespy- Returns:
- the current instance of
DatasourceType
-
isSpy
Boolean isSpy()Returns thespyattribute- Returns:
- the value defined for the attribute
spy
-
removeSpy
DatasourceType<T> removeSpy()Removes thespyattribute- Returns:
- the current instance of
DatasourceType
-
useCcm
Sets theuse-ccmattribute- Parameters:
useCcm- the value for the attributeuse-ccm- Returns:
- the current instance of
DatasourceType
-
isUseCcm
Boolean isUseCcm()Returns theuse-ccmattribute- Returns:
- the value defined for the attribute
use-ccm
-
removeUseCcm
DatasourceType<T> removeUseCcm()Removes theuse-ccmattribute- Returns:
- the current instance of
DatasourceType
-
connectable
Sets theconnectableattribute- Parameters:
connectable- the value for the attributeconnectable- Returns:
- the current instance of
DatasourceType
-
isConnectable
Boolean isConnectable()Returns theconnectableattribute- Returns:
- the value defined for the attribute
connectable
-
removeConnectable
DatasourceType<T> removeConnectable()Removes theconnectableattribute- Returns:
- the current instance of
DatasourceType
-
tracking
Sets thetrackingattribute- Parameters:
tracking- the value for the attributetracking- Returns:
- the current instance of
DatasourceType
-
isTracking
Boolean isTracking()Returns thetrackingattribute- Returns:
- the value defined for the attribute
tracking
-
removeTracking
DatasourceType<T> removeTracking()Removes thetrackingattribute- Returns:
- the current instance of
DatasourceType
-
connectionUrl
Sets theconnection-urlelement- Parameters:
connectionUrl- the value for the elementconnection-url- Returns:
- the current instance of
DatasourceType
-
getConnectionUrl
String getConnectionUrl()Returns theconnection-urlelement- Returns:
- the node defined for the element
connection-url
-
removeConnectionUrl
DatasourceType<T> removeConnectionUrl()Removes theconnection-urlelement- Returns:
- the current instance of
DatasourceType
-
driverClass
Sets thedriver-classelement- Parameters:
driverClass- the value for the elementdriver-class- Returns:
- the current instance of
DatasourceType
-
getDriverClass
String getDriverClass()Returns thedriver-classelement- Returns:
- the node defined for the element
driver-class
-
removeDriverClass
DatasourceType<T> removeDriverClass()Removes thedriver-classelement- Returns:
- the current instance of
DatasourceType
-
datasourceClass
Sets thedatasource-classelement- Parameters:
datasourceClass- the value for the elementdatasource-class- Returns:
- the current instance of
DatasourceType
-
getDatasourceClass
String getDatasourceClass()Returns thedatasource-classelement- Returns:
- the node defined for the element
datasource-class
-
removeDatasourceClass
DatasourceType<T> removeDatasourceClass()Removes thedatasource-classelement- Returns:
- the current instance of
DatasourceType
-
driver
Sets thedriverelement- Parameters:
driver- the value for the elementdriver- Returns:
- the current instance of
DatasourceType
-
getDriver
String getDriver()Returns thedriverelement- Returns:
- the node defined for the element
driver
-
removeDriver
DatasourceType<T> removeDriver()Removes thedriverelement- Returns:
- the current instance of
DatasourceType
-
getOrCreateConnectionProperty
ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty()If not already created, a newconnection-propertyelement will be created and returned. Otherwise, the first existingconnection-propertyelement will be returned.- Returns:
- the instance defined for the element
connection-property
-
createConnectionProperty
ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()Creates a newconnection-propertyelement- Returns:
- the new created instance of
ConnectionPropertyTypeinvalid input: '<'DatasourceType>
-
getAllConnectionProperty
List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()Returns allconnection-propertyelements- Returns:
- list of
connection-property
-
removeAllConnectionProperty
DatasourceType<T> removeAllConnectionProperty()Removes allconnection-propertyelements- Returns:
- the current instance of
ConnectionPropertyTypeinvalid input: '<'DatasourceType>
-
newConnectionSql
Sets thenew-connection-sqlelement- Parameters:
newConnectionSql- the value for the elementnew-connection-sql- Returns:
- the current instance of
DatasourceType
-
getNewConnectionSql
String getNewConnectionSql()Returns thenew-connection-sqlelement- Returns:
- the node defined for the element
new-connection-sql
-
removeNewConnectionSql
DatasourceType<T> removeNewConnectionSql()Removes thenew-connection-sqlelement- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
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
DatasourceType<T> removeTransactionIsolation()Removes thetransaction-isolationattribute- Returns:
- the current instance of
DatasourceType
-
urlDelimiter
Sets theurl-delimiterelement- Parameters:
urlDelimiter- the value for the elementurl-delimiter- Returns:
- the current instance of
DatasourceType
-
getUrlDelimiter
String getUrlDelimiter()Returns theurl-delimiterelement- Returns:
- the node defined for the element
url-delimiter
-
removeUrlDelimiter
DatasourceType<T> removeUrlDelimiter()Removes theurl-delimiterelement- Returns:
- the current instance of
DatasourceType
-
urlSelectorStrategyClassName
Sets theurl-selector-strategy-class-nameelement- Parameters:
urlSelectorStrategyClassName- the value for the elementurl-selector-strategy-class-name- Returns:
- the current instance of
DatasourceType
-
getUrlSelectorStrategyClassName
String getUrlSelectorStrategyClassName()Returns theurl-selector-strategy-class-nameelement- Returns:
- the node defined for the element
url-selector-strategy-class-name
-
removeUrlSelectorStrategyClassName
DatasourceType<T> removeUrlSelectorStrategyClassName()Removes theurl-selector-strategy-class-nameelement- Returns:
- the current instance of
DatasourceType
-
getOrCreatePool
PoolType<DatasourceType<T>> getOrCreatePool()If not already created, a newpoolelement with the given value will be created. Otherwise, the existingpoolelement will be returned.- Returns:
- a new or existing instance of
PoolTypeinvalid input: '<'DatasourceType>
-
removePool
DatasourceType<T> removePool()Removes thepoolelement- Returns:
- the current instance of
DatasourceType
-
getOrCreateSecurity
DsSecurityType<DatasourceType<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
DsSecurityTypeinvalid input: '<'DatasourceType>
-
removeSecurity
DatasourceType<T> removeSecurity()Removes thesecurityelement- Returns:
- the current instance of
DatasourceType
-
getOrCreateValidation
ValidationType<DatasourceType<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
ValidationTypeinvalid input: '<'DatasourceType>
-
removeValidation
DatasourceType<T> removeValidation()Removes thevalidationelement- Returns:
- the current instance of
DatasourceType
-
getOrCreateTimeout
TimeoutType<DatasourceType<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
TimeoutTypeinvalid input: '<'DatasourceType>
-
removeTimeout
DatasourceType<T> removeTimeout()Removes thetimeoutelement- Returns:
- the current instance of
DatasourceType
-
getOrCreateStatement
StatementType<DatasourceType<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
StatementTypeinvalid input: '<'DatasourceType>
-
removeStatement
DatasourceType<T> removeStatement()Removes thestatementelement- Returns:
- the current instance of
DatasourceType
-
jta
Sets thejtaattribute- Parameters:
jta- the value for the attributejta- Returns:
- the current instance of
DatasourceType
-
isJta
Boolean isJta()Returns thejtaattribute- Returns:
- the value defined for the attribute
jta
-
removeJta
DatasourceType<T> removeJta()Removes thejtaattribute- Returns:
- the current instance of
DatasourceType
-