public interface DatasourceType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
datasourceType
xsd typeType | Property and Description |
---|---|
ConnectionPropertyType<DatasourceType<T>> |
createConnection
Creates a new
connection-property element |
DatasourceType<T> |
removeAllConnection
Removes all
connection-property elements |
Modifier and Type | Method and Description |
---|---|
DatasourceType<T> |
connectionUrl(String connectionUrl)
Sets the
connection-url element |
ConnectionPropertyType<DatasourceType<T>> |
createConnectionProperty()
Creates a new
connection-property element |
DatasourceType<T> |
datasourceClass(String datasourceClass)
Sets the
datasource-class element |
DatasourceType<T> |
driver(String driver)
Sets the
driver element |
DatasourceType<T> |
driverClass(String driverClass)
Sets the
driver-class element |
DatasourceType<T> |
enabled(Boolean enabled)
Sets the
enabled attribute |
List<ConnectionPropertyType<DatasourceType<T>>> |
getAllConnectionProperty()
Returns all
connection-property elements |
String |
getConnectionUrl()
Returns the
connection-url element |
String |
getDatasourceClass()
Returns the
datasource-class element |
String |
getDriver()
Returns the
driver element |
String |
getDriverClass()
Returns the
driver-class element |
String |
getJndiName()
Returns the
jndi-name attribute |
String |
getNewConnectionSql()
Returns the
new-connection-sql element |
ConnectionPropertyType<DatasourceType<T>> |
getOrCreateConnectionProperty()
If not already created, a new
connection-property element will be created and returned. |
PoolType<DatasourceType<T>> |
getOrCreatePool()
If not already created, a new
pool element with the given value will be created. |
DsSecurityType<DatasourceType<T>> |
getOrCreateSecurity()
If not already created, a new
security element with the given value will be created. |
StatementType<DatasourceType<T>> |
getOrCreateStatement()
If not already created, a new
statement element with the given value will be created. |
TimeoutType<DatasourceType<T>> |
getOrCreateTimeout()
If not already created, a new
timeout element with the given value will be created. |
ValidationType<DatasourceType<T>> |
getOrCreateValidation()
If not already created, a new
validation element with the given value will be created. |
String |
getPoolName()
Returns the
pool-name attribute |
TransactionIsolationType |
getTransactionIsolation()
Returns the
transaction-isolation element |
String |
getTransactionIsolationAsString()
Returns the
transaction-isolation element |
String |
getUrlDelimiter()
Returns the
url-delimiter element |
String |
getUrlSelectorStrategyClassName()
Returns the
url-selector-strategy-class-name element |
Boolean |
isEnabled()
Returns the
enabled attribute |
Boolean |
isJta()
Returns the
jta attribute |
Boolean |
isSpy()
Returns the
spy attribute |
Boolean |
isUseCcm()
Returns the
use-ccm attribute |
Boolean |
isUseJavaContext()
Returns the
use-java-context attribute |
DatasourceType<T> |
jndiName(String jndiName)
Sets the
jndi-name attribute |
DatasourceType<T> |
jta(Boolean jta)
Sets the
jta attribute |
DatasourceType<T> |
newConnectionSql(String newConnectionSql)
Sets the
new-connection-sql element |
DatasourceType<T> |
poolName(String poolName)
Sets the
pool-name attribute |
DatasourceType<T> |
removeAllConnectionProperty()
Removes all
connection-property elements |
DatasourceType<T> |
removeConnectionUrl()
Removes the
connection-url element |
DatasourceType<T> |
removeDatasourceClass()
Removes the
datasource-class element |
DatasourceType<T> |
removeDriver()
Removes the
driver element |
DatasourceType<T> |
removeDriverClass()
Removes the
driver-class element |
DatasourceType<T> |
removeEnabled()
Removes the
enabled attribute |
DatasourceType<T> |
removeJndiName()
Removes the
jndi-name attribute |
DatasourceType<T> |
removeJta()
Removes the
jta attribute |
DatasourceType<T> |
removeNewConnectionSql()
Removes the
new-connection-sql element |
DatasourceType<T> |
removePool()
Removes the
pool element |
DatasourceType<T> |
removePoolName()
Removes the
pool-name attribute |
DatasourceType<T> |
removeSecurity()
Removes the
security element |
DatasourceType<T> |
removeSpy()
Removes the
spy attribute |
DatasourceType<T> |
removeStatement()
Removes the
statement element |
DatasourceType<T> |
removeTimeout()
Removes the
timeout element |
DatasourceType<T> |
removeTransactionIsolation()
Removes the
transaction-isolation attribute |
DatasourceType<T> |
removeUrlDelimiter()
Removes the
url-delimiter element |
DatasourceType<T> |
removeUrlSelectorStrategyClassName()
Removes the
url-selector-strategy-class-name element |
DatasourceType<T> |
removeUseCcm()
Removes the
use-ccm attribute |
DatasourceType<T> |
removeUseJavaContext()
Removes the
use-java-context attribute |
DatasourceType<T> |
removeValidation()
Removes the
validation element |
DatasourceType<T> |
spy(Boolean spy)
Sets the
spy attribute |
DatasourceType<T> |
transactionIsolation(String transactionIsolation)
Sets the
transaction-isolation element |
DatasourceType<T> |
transactionIsolation(TransactionIsolationType transactionIsolation)
Sets the
transaction-isolation element |
DatasourceType<T> |
urlDelimiter(String urlDelimiter)
Sets the
url-delimiter element |
DatasourceType<T> |
urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
Sets the
url-selector-strategy-class-name element |
DatasourceType<T> |
useCcm(Boolean useCcm)
Sets the
use-ccm attribute |
DatasourceType<T> |
useJavaContext(Boolean useJavaContext)
Sets the
use-java-context attribute |
connection-property
elementConnectionPropertyType>
connection-property
elementsConnectionPropertyType>
DatasourceType<T> jndiName(String jndiName)
jndi-name
attributejndiName
- the value for the attribute jndi-name
DatasourceType
String getJndiName()
jndi-name
attributejndi-name
DatasourceType<T> removeJndiName()
jndi-name
attributeDatasourceType
DatasourceType<T> poolName(String poolName)
pool-name
attributepoolName
- the value for the attribute pool-name
DatasourceType
String getPoolName()
pool-name
attributepool-name
DatasourceType<T> removePoolName()
pool-name
attributeDatasourceType
DatasourceType<T> enabled(Boolean enabled)
enabled
attributeenabled
- the value for the attribute enabled
DatasourceType
Boolean isEnabled()
enabled
attributeenabled
DatasourceType<T> removeEnabled()
enabled
attributeDatasourceType
DatasourceType<T> useJavaContext(Boolean useJavaContext)
use-java-context
attributeuseJavaContext
- the value for the attribute use-java-context
DatasourceType
Boolean isUseJavaContext()
use-java-context
attributeuse-java-context
DatasourceType<T> removeUseJavaContext()
use-java-context
attributeDatasourceType
DatasourceType<T> spy(Boolean spy)
spy
attributespy
- the value for the attribute spy
DatasourceType
Boolean isSpy()
spy
attributespy
DatasourceType<T> removeSpy()
spy
attributeDatasourceType
DatasourceType<T> useCcm(Boolean useCcm)
use-ccm
attributeuseCcm
- the value for the attribute use-ccm
DatasourceType
Boolean isUseCcm()
use-ccm
attributeuse-ccm
DatasourceType<T> removeUseCcm()
use-ccm
attributeDatasourceType
DatasourceType<T> connectionUrl(String connectionUrl)
connection-url
elementconnectionUrl
- the value for the element connection-url
DatasourceType
String getConnectionUrl()
connection-url
elementconnection-url
DatasourceType<T> removeConnectionUrl()
connection-url
elementDatasourceType
DatasourceType<T> driverClass(String driverClass)
driver-class
elementdriverClass
- the value for the element driver-class
DatasourceType
String getDriverClass()
driver-class
elementdriver-class
DatasourceType<T> removeDriverClass()
driver-class
elementDatasourceType
DatasourceType<T> datasourceClass(String datasourceClass)
datasource-class
elementdatasourceClass
- the value for the element datasource-class
DatasourceType
String getDatasourceClass()
datasource-class
elementdatasource-class
DatasourceType<T> removeDatasourceClass()
datasource-class
elementDatasourceType
DatasourceType<T> driver(String driver)
driver
elementdriver
- the value for the element driver
DatasourceType
String getDriver()
driver
elementdriver
DatasourceType<T> removeDriver()
driver
elementDatasourceType
ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty()
connection-property
element will be created and returned.
Otherwise, the first existing connection-property
element will be returned.connection-property
ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
connection-property
elementConnectionPropertyType>
List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
connection-property
elementsconnection-property
DatasourceType<T> removeAllConnectionProperty()
connection-property
elementsConnectionPropertyType>
DatasourceType<T> newConnectionSql(String newConnectionSql)
new-connection-sql
elementnewConnectionSql
- the value for the element new-connection-sql
DatasourceType
String getNewConnectionSql()
new-connection-sql
elementnew-connection-sql
DatasourceType<T> removeNewConnectionSql()
new-connection-sql
elementDatasourceType
DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
transaction-isolation
elementtransactionIsolation
- the value for the element transaction-isolation
DatasourceType
DatasourceType<T> transactionIsolation(String transactionIsolation)
transaction-isolation
elementtransactionIsolation
- the value for the element transaction-isolation
DatasourceType
TransactionIsolationType getTransactionIsolation()
transaction-isolation
elementtransaction-isolation
String getTransactionIsolationAsString()
transaction-isolation
elementtransaction-isolation
DatasourceType<T> removeTransactionIsolation()
transaction-isolation
attributeDatasourceType
DatasourceType<T> urlDelimiter(String urlDelimiter)
url-delimiter
elementurlDelimiter
- the value for the element url-delimiter
DatasourceType
String getUrlDelimiter()
url-delimiter
elementurl-delimiter
DatasourceType<T> removeUrlDelimiter()
url-delimiter
elementDatasourceType
DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
url-selector-strategy-class-name
elementurlSelectorStrategyClassName
- the value for the element url-selector-strategy-class-name
DatasourceType
String getUrlSelectorStrategyClassName()
url-selector-strategy-class-name
elementurl-selector-strategy-class-name
DatasourceType<T> removeUrlSelectorStrategyClassName()
url-selector-strategy-class-name
elementDatasourceType
PoolType<DatasourceType<T>> getOrCreatePool()
pool
element with the given value will be created.
Otherwise, the existing pool
element will be returned.PoolType>
DatasourceType<T> removePool()
pool
elementDatasourceType
DsSecurityType<DatasourceType<T>> getOrCreateSecurity()
security
element with the given value will be created.
Otherwise, the existing security
element will be returned.DsSecurityType>
DatasourceType<T> removeSecurity()
security
elementDatasourceType
ValidationType<DatasourceType<T>> getOrCreateValidation()
validation
element with the given value will be created.
Otherwise, the existing validation
element will be returned.ValidationType>
DatasourceType<T> removeValidation()
validation
elementDatasourceType
TimeoutType<DatasourceType<T>> getOrCreateTimeout()
timeout
element with the given value will be created.
Otherwise, the existing timeout
element will be returned.TimeoutType>
DatasourceType<T> removeTimeout()
timeout
elementDatasourceType
StatementType<DatasourceType<T>> getOrCreateStatement()
statement
element with the given value will be created.
Otherwise, the existing statement
element will be returned.StatementType>
DatasourceType<T> removeStatement()
statement
elementDatasourceType
DatasourceType<T> jta(Boolean jta)
jta
attributejta
- the value for the attribute jta
DatasourceType
Boolean isJta()
jta
attributejta
DatasourceType<T> removeJta()
jta
attributeDatasourceType
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)