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 thedatasourceTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatasourceType<T>connectable(Boolean connectable)Sets theconnectableattributeDatasourceType<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-nameelementBooleanisConnectable()Returns theconnectableattributeBooleanisEnabled()Returns theenabledattributeBooleanisJta()Returns thejtaattributeBooleanisSpy()Returns thespyattributeBooleanisTracking()Returns thetrackingattributeBooleanisUseCcm()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>removeConnectable()Removes theconnectableattributeDatasourceType<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>removeTracking()Removes thetrackingattributeDatasourceType<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>tracking(Boolean tracking)Sets thetrackingattributeDatasourceType<T>transactionIsolation(String transactionIsolation)Sets thetransaction-isolationelementDatasourceType<T>transactionIsolation(TransactionIsolationType transactionIsolation)Sets thetransaction-isolationelementDatasourceType<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
DatasourceType<T> jndiName(String 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
DatasourceType<T> poolName(String 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
DatasourceType<T> enabled(Boolean 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
DatasourceType<T> useJavaContext(Boolean 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
DatasourceType<T> spy(Boolean 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
DatasourceType<T> useCcm(Boolean 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
DatasourceType<T> connectable(Boolean 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
DatasourceType<T> tracking(Boolean 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
DatasourceType<T> connectionUrl(String 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
DatasourceType<T> driverClass(String 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
DatasourceType<T> datasourceClass(String 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
DatasourceType<T> driver(String 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
ConnectionPropertyType>
-
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
ConnectionPropertyType>
-
newConnectionSql
DatasourceType<T> newConnectionSql(String 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
DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
Sets thetransaction-isolationelement- Parameters:
transactionIsolation- the value for the elementtransaction-isolation- Returns:
- the current instance of
DatasourceType
-
transactionIsolation
DatasourceType<T> transactionIsolation(String 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
DatasourceType<T> urlDelimiter(String 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
DatasourceType<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
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
PoolType>
-
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
DsSecurityType>
-
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
ValidationType>
-
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
TimeoutType>
-
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
StatementType>
-
removeStatement
DatasourceType<T> removeStatement()
Removes thestatementelement- Returns:
- the current instance of
DatasourceType
-
jta
DatasourceType<T> jta(Boolean 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
-
-