public class DatasourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DatasourceType<T>
datasourceType xsd type| 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> |
connectable(Boolean connectable)
Sets the
connectable attribute |
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 |
isConnectable()
Returns the
connectable attribute |
Boolean |
isEnabled()
Returns the
enabled attribute |
Boolean |
isJta()
Returns the
jta attribute |
Boolean |
isSpy()
Returns the
spy attribute |
Boolean |
isTracking()
Returns the
tracking 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> |
removeConnectable()
Removes the
connectable attribute |
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> |
removeTracking()
Removes the
tracking attribute |
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> |
tracking(Boolean tracking)
Sets the
tracking 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 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-nameDatasourceTypepublic String getJndiName()
jndi-name attributegetJndiName in interface DatasourceType<T>jndi-namepublic DatasourceType<T> removeJndiName()
jndi-name attributeremoveJndiName in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> poolName(String poolName)
pool-name attributepoolName in interface DatasourceType<T>poolName - the value for the attribute pool-nameDatasourceTypepublic String getPoolName()
pool-name attributegetPoolName in interface DatasourceType<T>pool-namepublic DatasourceType<T> removePoolName()
pool-name attributeremovePoolName in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> enabled(Boolean enabled)
enabled attributeenabled in interface DatasourceType<T>enabled - the value for the attribute enabledDatasourceTypepublic Boolean isEnabled()
enabled attributeisEnabled in interface DatasourceType<T>enabledpublic DatasourceType<T> removeEnabled()
enabled attributeremoveEnabled in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> useJavaContext(Boolean useJavaContext)
use-java-context attributeuseJavaContext in interface DatasourceType<T>useJavaContext - the value for the attribute use-java-contextDatasourceTypepublic Boolean isUseJavaContext()
use-java-context attributeisUseJavaContext in interface DatasourceType<T>use-java-contextpublic DatasourceType<T> removeUseJavaContext()
use-java-context attributeremoveUseJavaContext in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> spy(Boolean spy)
spy attributespy in interface DatasourceType<T>spy - the value for the attribute spyDatasourceTypepublic Boolean isSpy()
spy attributeisSpy in interface DatasourceType<T>spypublic DatasourceType<T> removeSpy()
spy attributeremoveSpy in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> useCcm(Boolean useCcm)
use-ccm attributeuseCcm in interface DatasourceType<T>useCcm - the value for the attribute use-ccmDatasourceTypepublic Boolean isUseCcm()
use-ccm attributeisUseCcm in interface DatasourceType<T>use-ccmpublic DatasourceType<T> removeUseCcm()
use-ccm attributeremoveUseCcm in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> connectable(Boolean connectable)
connectable attributeconnectable in interface DatasourceType<T>connectable - the value for the attribute connectableDatasourceTypepublic Boolean isConnectable()
connectable attributeisConnectable in interface DatasourceType<T>connectablepublic DatasourceType<T> removeConnectable()
connectable attributeremoveConnectable in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> tracking(Boolean tracking)
tracking attributetracking in interface DatasourceType<T>tracking - the value for the attribute trackingDatasourceTypepublic Boolean isTracking()
tracking attributeisTracking in interface DatasourceType<T>trackingpublic DatasourceType<T> removeTracking()
tracking attributeremoveTracking in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> connectionUrl(String connectionUrl)
connection-url elementconnectionUrl in interface DatasourceType<T>connectionUrl - the value for the element connection-urlDatasourceTypepublic String getConnectionUrl()
connection-url elementgetConnectionUrl in interface DatasourceType<T>connection-urlpublic DatasourceType<T> removeConnectionUrl()
connection-url elementremoveConnectionUrl in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> driverClass(String driverClass)
driver-class elementdriverClass in interface DatasourceType<T>driverClass - the value for the element driver-classDatasourceTypepublic String getDriverClass()
driver-class elementgetDriverClass in interface DatasourceType<T>driver-classpublic DatasourceType<T> removeDriverClass()
driver-class elementremoveDriverClass in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> datasourceClass(String datasourceClass)
datasource-class elementdatasourceClass in interface DatasourceType<T>datasourceClass - the value for the element datasource-classDatasourceTypepublic String getDatasourceClass()
datasource-class elementgetDatasourceClass in interface DatasourceType<T>datasource-classpublic DatasourceType<T> removeDatasourceClass()
datasource-class elementremoveDatasourceClass in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> driver(String driver)
driver elementdriver in interface DatasourceType<T>driver - the value for the element driverDatasourceTypepublic String getDriver()
driver elementgetDriver in interface DatasourceType<T>driverpublic DatasourceType<T> removeDriver()
driver elementremoveDriver in interface DatasourceType<T>DatasourceTypepublic 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-propertypublic ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
connection-property elementcreateConnectionProperty in interface DatasourceType<T>ConnectionPropertyType> public List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
connection-property elementsgetAllConnectionProperty in interface DatasourceType<T>connection-propertypublic DatasourceType<T> removeAllConnectionProperty()
connection-property elementsremoveAllConnectionProperty in interface DatasourceType<T>ConnectionPropertyType> public DatasourceType<T> newConnectionSql(String newConnectionSql)
new-connection-sql elementnewConnectionSql in interface DatasourceType<T>newConnectionSql - the value for the element new-connection-sqlDatasourceTypepublic String getNewConnectionSql()
new-connection-sql elementgetNewConnectionSql in interface DatasourceType<T>new-connection-sqlpublic DatasourceType<T> removeNewConnectionSql()
new-connection-sql elementremoveNewConnectionSql in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
transaction-isolation elementtransactionIsolation in interface DatasourceType<T>transactionIsolation - the value for the element transaction-isolationDatasourceTypepublic DatasourceType<T> transactionIsolation(String transactionIsolation)
transaction-isolation elementtransactionIsolation in interface DatasourceType<T>transactionIsolation - the value for the element transaction-isolationDatasourceTypepublic TransactionIsolationType getTransactionIsolation()
transaction-isolation elementgetTransactionIsolation in interface DatasourceType<T>transaction-isolationpublic String getTransactionIsolationAsString()
transaction-isolation elementgetTransactionIsolationAsString in interface DatasourceType<T>transaction-isolationpublic DatasourceType<T> removeTransactionIsolation()
transaction-isolation attributeremoveTransactionIsolation in interface DatasourceType<T>DatasourceTypepublic DatasourceType<T> urlDelimiter(String urlDelimiter)
url-delimiter elementurlDelimiter in interface DatasourceType<T>urlDelimiter - the value for the element url-delimiterDatasourceTypepublic String getUrlDelimiter()
url-delimiter elementgetUrlDelimiter in interface DatasourceType<T>url-delimiterpublic DatasourceType<T> removeUrlDelimiter()
url-delimiter elementremoveUrlDelimiter in interface DatasourceType<T>DatasourceTypepublic 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-nameDatasourceTypepublic String getUrlSelectorStrategyClassName()
url-selector-strategy-class-name elementgetUrlSelectorStrategyClassName in interface DatasourceType<T>url-selector-strategy-class-namepublic DatasourceType<T> removeUrlSelectorStrategyClassName()
url-selector-strategy-class-name elementremoveUrlSelectorStrategyClassName in interface DatasourceType<T>DatasourceTypepublic 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>DatasourceTypepublic 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>DatasourceTypepublic 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>DatasourceTypepublic 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>DatasourceTypepublic 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>DatasourceTypepublic DatasourceType<T> jta(Boolean jta)
jta attributejta in interface DatasourceType<T>jta - the value for the attribute jtaDatasourceTypepublic Boolean isJta()
jta attributeisJta in interface DatasourceType<T>jtapublic DatasourceType<T> removeJta()
jta attributeremoveJta in interface DatasourceType<T>DatasourceTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.