|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatasourceType<T>
This interface defines the contract for the datasourceType
xsd type
Method Summary | |
---|---|
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 |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
DatasourceType<T> jndiName(String jndiName)
jndi-name
attribute
jndiName
- the value for the attribute jndi-name
DatasourceType
String getJndiName()
jndi-name
attribute
jndi-name
DatasourceType<T> removeJndiName()
jndi-name
attribute
DatasourceType
DatasourceType<T> poolName(String poolName)
pool-name
attribute
poolName
- the value for the attribute pool-name
DatasourceType
String getPoolName()
pool-name
attribute
pool-name
DatasourceType<T> removePoolName()
pool-name
attribute
DatasourceType
DatasourceType<T> enabled(Boolean enabled)
enabled
attribute
enabled
- the value for the attribute enabled
DatasourceType
Boolean isEnabled()
enabled
attribute
enabled
DatasourceType<T> removeEnabled()
enabled
attribute
DatasourceType
DatasourceType<T> useJavaContext(Boolean useJavaContext)
use-java-context
attribute
useJavaContext
- the value for the attribute use-java-context
DatasourceType
Boolean isUseJavaContext()
use-java-context
attribute
use-java-context
DatasourceType<T> removeUseJavaContext()
use-java-context
attribute
DatasourceType
DatasourceType<T> spy(Boolean spy)
spy
attribute
spy
- the value for the attribute spy
DatasourceType
Boolean isSpy()
spy
attribute
spy
DatasourceType<T> removeSpy()
spy
attribute
DatasourceType
DatasourceType<T> useCcm(Boolean useCcm)
use-ccm
attribute
useCcm
- the value for the attribute use-ccm
DatasourceType
Boolean isUseCcm()
use-ccm
attribute
use-ccm
DatasourceType<T> removeUseCcm()
use-ccm
attribute
DatasourceType
DatasourceType<T> connectionUrl(String connectionUrl)
connection-url
element
connectionUrl
- the value for the element connection-url
DatasourceType
String getConnectionUrl()
connection-url
element
connection-url
DatasourceType<T> removeConnectionUrl()
connection-url
element
DatasourceType
DatasourceType<T> driverClass(String driverClass)
driver-class
element
driverClass
- the value for the element driver-class
DatasourceType
String getDriverClass()
driver-class
element
driver-class
DatasourceType<T> removeDriverClass()
driver-class
element
DatasourceType
DatasourceType<T> datasourceClass(String datasourceClass)
datasource-class
element
datasourceClass
- the value for the element datasource-class
DatasourceType
String getDatasourceClass()
datasource-class
element
datasource-class
DatasourceType<T> removeDatasourceClass()
datasource-class
element
DatasourceType
DatasourceType<T> driver(String driver)
driver
element
driver
- the value for the element driver
DatasourceType
String getDriver()
driver
element
driver
DatasourceType<T> removeDriver()
driver
element
DatasourceType
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
element
ConnectionPropertyType>
List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
connection-property
elements
connection-property
DatasourceType<T> removeAllConnectionProperty()
connection-property
elements
ConnectionPropertyType>
DatasourceType<T> newConnectionSql(String newConnectionSql)
new-connection-sql
element
newConnectionSql
- the value for the element new-connection-sql
DatasourceType
String getNewConnectionSql()
new-connection-sql
element
new-connection-sql
DatasourceType<T> removeNewConnectionSql()
new-connection-sql
element
DatasourceType
DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
transaction-isolation
element
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
DatasourceType<T> transactionIsolation(String transactionIsolation)
transaction-isolation
element
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
TransactionIsolationType getTransactionIsolation()
transaction-isolation
element
transaction-isolation
String getTransactionIsolationAsString()
transaction-isolation
element
transaction-isolation
DatasourceType<T> removeTransactionIsolation()
transaction-isolation
attribute
DatasourceType
DatasourceType<T> urlDelimiter(String urlDelimiter)
url-delimiter
element
urlDelimiter
- the value for the element url-delimiter
DatasourceType
String getUrlDelimiter()
url-delimiter
element
url-delimiter
DatasourceType<T> removeUrlDelimiter()
url-delimiter
element
DatasourceType
DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
url-selector-strategy-class-name
element
urlSelectorStrategyClassName
- the value for the element url-selector-strategy-class-name
DatasourceType
String getUrlSelectorStrategyClassName()
url-selector-strategy-class-name
element
url-selector-strategy-class-name
DatasourceType<T> removeUrlSelectorStrategyClassName()
url-selector-strategy-class-name
element
DatasourceType
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
element
DatasourceType
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
element
DatasourceType
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
element
DatasourceType
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
element
DatasourceType
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
element
DatasourceType
DatasourceType<T> jta(Boolean jta)
jta
attribute
jta
- the value for the attribute jta
DatasourceType
Boolean isJta()
jta
attribute
jta
DatasourceType<T> removeJta()
jta
attribute
DatasourceType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |