public class DatasourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DatasourceType<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 |
Constructor and Description |
---|
DatasourceTypeImpl(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) |
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 |
T |
up() |
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 |
public ConnectionPropertyType<DatasourceType<T>> createConnectionProperty
connection-property
elementcreateConnectionProperty
in interface DatasourceType<T>
public DatasourceType<T> removeAllConnectionProperty
connection-property
elementsremoveAllConnectionProperty
in interface DatasourceType<T>
public DatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public DatasourceType<T> jndiName(String jndiName)
jndi-name
attributejndiName
in interface DatasourceType<T>
jndiName
- the value for the attribute jndi-name
DatasourceType
public String getJndiName()
jndi-name
attributegetJndiName
in interface DatasourceType<T>
jndi-name
public DatasourceType<T> removeJndiName()
jndi-name
attributeremoveJndiName
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> poolName(String poolName)
pool-name
attributepoolName
in interface DatasourceType<T>
poolName
- the value for the attribute pool-name
DatasourceType
public String getPoolName()
pool-name
attributegetPoolName
in interface DatasourceType<T>
pool-name
public DatasourceType<T> removePoolName()
pool-name
attributeremovePoolName
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> enabled(Boolean enabled)
enabled
attributeenabled
in interface DatasourceType<T>
enabled
- the value for the attribute enabled
DatasourceType
public Boolean isEnabled()
enabled
attributeisEnabled
in interface DatasourceType<T>
enabled
public DatasourceType<T> removeEnabled()
enabled
attributeremoveEnabled
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> useJavaContext(Boolean useJavaContext)
use-java-context
attributeuseJavaContext
in interface DatasourceType<T>
useJavaContext
- the value for the attribute use-java-context
DatasourceType
public Boolean isUseJavaContext()
use-java-context
attributeisUseJavaContext
in interface DatasourceType<T>
use-java-context
public DatasourceType<T> removeUseJavaContext()
use-java-context
attributeremoveUseJavaContext
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> spy(Boolean spy)
spy
attributespy
in interface DatasourceType<T>
spy
- the value for the attribute spy
DatasourceType
public Boolean isSpy()
spy
attributeisSpy
in interface DatasourceType<T>
spy
public DatasourceType<T> removeSpy()
spy
attributeremoveSpy
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> useCcm(Boolean useCcm)
use-ccm
attributeuseCcm
in interface DatasourceType<T>
useCcm
- the value for the attribute use-ccm
DatasourceType
public Boolean isUseCcm()
use-ccm
attributeisUseCcm
in interface DatasourceType<T>
use-ccm
public DatasourceType<T> removeUseCcm()
use-ccm
attributeremoveUseCcm
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> connectionUrl(String connectionUrl)
connection-url
elementconnectionUrl
in interface DatasourceType<T>
connectionUrl
- the value for the element connection-url
DatasourceType
public String getConnectionUrl()
connection-url
elementgetConnectionUrl
in interface DatasourceType<T>
connection-url
public DatasourceType<T> removeConnectionUrl()
connection-url
elementremoveConnectionUrl
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> driverClass(String driverClass)
driver-class
elementdriverClass
in interface DatasourceType<T>
driverClass
- the value for the element driver-class
DatasourceType
public String getDriverClass()
driver-class
elementgetDriverClass
in interface DatasourceType<T>
driver-class
public DatasourceType<T> removeDriverClass()
driver-class
elementremoveDriverClass
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> datasourceClass(String datasourceClass)
datasource-class
elementdatasourceClass
in interface DatasourceType<T>
datasourceClass
- the value for the element datasource-class
DatasourceType
public String getDatasourceClass()
datasource-class
elementgetDatasourceClass
in interface DatasourceType<T>
datasource-class
public DatasourceType<T> removeDatasourceClass()
datasource-class
elementremoveDatasourceClass
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> driver(String driver)
driver
elementdriver
in interface DatasourceType<T>
driver
- the value for the element driver
DatasourceType
public String getDriver()
driver
elementgetDriver
in interface DatasourceType<T>
driver
public DatasourceType<T> removeDriver()
driver
elementremoveDriver
in interface DatasourceType<T>
DatasourceType
public ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty()
connection-property
element will be created and returned.
Otherwise, the first existing connection-property
element will be returned.getOrCreateConnectionProperty
in interface DatasourceType<T>
connection-property
public ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
connection-property
elementcreateConnectionProperty
in interface DatasourceType<T>
public List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
connection-property
elementsgetAllConnectionProperty
in interface DatasourceType<T>
connection-property
public DatasourceType<T> removeAllConnectionProperty()
connection-property
elementsremoveAllConnectionProperty
in interface DatasourceType<T>
public DatasourceType<T> newConnectionSql(String newConnectionSql)
new-connection-sql
elementnewConnectionSql
in interface DatasourceType<T>
newConnectionSql
- the value for the element new-connection-sql
DatasourceType
public String getNewConnectionSql()
new-connection-sql
elementgetNewConnectionSql
in interface DatasourceType<T>
new-connection-sql
public DatasourceType<T> removeNewConnectionSql()
new-connection-sql
elementremoveNewConnectionSql
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
transaction-isolation
elementtransactionIsolation
in interface DatasourceType<T>
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
public DatasourceType<T> transactionIsolation(String transactionIsolation)
transaction-isolation
elementtransactionIsolation
in interface DatasourceType<T>
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
public TransactionIsolationType getTransactionIsolation()
transaction-isolation
elementgetTransactionIsolation
in interface DatasourceType<T>
transaction-isolation
public String getTransactionIsolationAsString()
transaction-isolation
elementgetTransactionIsolationAsString
in interface DatasourceType<T>
transaction-isolation
public DatasourceType<T> removeTransactionIsolation()
transaction-isolation
attributeremoveTransactionIsolation
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> urlDelimiter(String urlDelimiter)
url-delimiter
elementurlDelimiter
in interface DatasourceType<T>
urlDelimiter
- the value for the element url-delimiter
DatasourceType
public String getUrlDelimiter()
url-delimiter
elementgetUrlDelimiter
in interface DatasourceType<T>
url-delimiter
public DatasourceType<T> removeUrlDelimiter()
url-delimiter
elementremoveUrlDelimiter
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
url-selector-strategy-class-name
elementurlSelectorStrategyClassName
in interface DatasourceType<T>
urlSelectorStrategyClassName
- the value for the element url-selector-strategy-class-name
DatasourceType
public String getUrlSelectorStrategyClassName()
url-selector-strategy-class-name
elementgetUrlSelectorStrategyClassName
in interface DatasourceType<T>
url-selector-strategy-class-name
public DatasourceType<T> removeUrlSelectorStrategyClassName()
url-selector-strategy-class-name
elementremoveUrlSelectorStrategyClassName
in interface DatasourceType<T>
DatasourceType
public PoolType<DatasourceType<T>> getOrCreatePool()
pool
element with the given value will be created.
Otherwise, the existing pool
element will be returned.getOrCreatePool
in interface DatasourceType<T>
PoolType>
public DatasourceType<T> removePool()
pool
elementremovePool
in interface DatasourceType<T>
DatasourceType
public DsSecurityType<DatasourceType<T>> getOrCreateSecurity()
security
element with the given value will be created.
Otherwise, the existing security
element will be returned.getOrCreateSecurity
in interface DatasourceType<T>
DsSecurityType>
public DatasourceType<T> removeSecurity()
security
elementremoveSecurity
in interface DatasourceType<T>
DatasourceType
public ValidationType<DatasourceType<T>> getOrCreateValidation()
validation
element with the given value will be created.
Otherwise, the existing validation
element will be returned.getOrCreateValidation
in interface DatasourceType<T>
ValidationType>
public DatasourceType<T> removeValidation()
validation
elementremoveValidation
in interface DatasourceType<T>
DatasourceType
public TimeoutType<DatasourceType<T>> getOrCreateTimeout()
timeout
element with the given value will be created.
Otherwise, the existing timeout
element will be returned.getOrCreateTimeout
in interface DatasourceType<T>
TimeoutType>
public DatasourceType<T> removeTimeout()
timeout
elementremoveTimeout
in interface DatasourceType<T>
DatasourceType
public StatementType<DatasourceType<T>> getOrCreateStatement()
statement
element with the given value will be created.
Otherwise, the existing statement
element will be returned.getOrCreateStatement
in interface DatasourceType<T>
StatementType>
public DatasourceType<T> removeStatement()
statement
elementremoveStatement
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> jta(Boolean jta)
jta
attributejta
in interface DatasourceType<T>
jta
- the value for the attribute jta
DatasourceType
public Boolean isJta()
jta
attributeisJta
in interface DatasourceType<T>
jta
public DatasourceType<T> removeJta()
jta
attributeremoveJta
in interface DatasourceType<T>
DatasourceType
Copyright © 2017 JBoss by Red Hat. All rights reserved.