|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.datasources.impl.DatasourceTypeImpl<T>
public class DatasourceTypeImpl<T>
This class implements the datasourceType
xsd type
Constructor Summary | |
---|---|
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)
|
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 |
T |
up()
Returns the parent of this Child |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public DatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail |
---|
public T up()
Child
Child
up
in interface Child<T>
Child
public DatasourceType<T> jndiName(String jndiName)
jndi-name
attribute
jndiName
in interface DatasourceType<T>
jndiName
- the value for the attribute jndi-name
DatasourceType
public String getJndiName()
jndi-name
attribute
getJndiName
in interface DatasourceType<T>
jndi-name
public DatasourceType<T> removeJndiName()
jndi-name
attribute
removeJndiName
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> poolName(String poolName)
pool-name
attribute
poolName
in interface DatasourceType<T>
poolName
- the value for the attribute pool-name
DatasourceType
public String getPoolName()
pool-name
attribute
getPoolName
in interface DatasourceType<T>
pool-name
public DatasourceType<T> removePoolName()
pool-name
attribute
removePoolName
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> enabled(Boolean enabled)
enabled
attribute
enabled
in interface DatasourceType<T>
enabled
- the value for the attribute enabled
DatasourceType
public Boolean isEnabled()
enabled
attribute
isEnabled
in interface DatasourceType<T>
enabled
public DatasourceType<T> removeEnabled()
enabled
attribute
removeEnabled
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> useJavaContext(Boolean useJavaContext)
use-java-context
attribute
useJavaContext
in interface DatasourceType<T>
useJavaContext
- the value for the attribute use-java-context
DatasourceType
public Boolean isUseJavaContext()
use-java-context
attribute
isUseJavaContext
in interface DatasourceType<T>
use-java-context
public DatasourceType<T> removeUseJavaContext()
use-java-context
attribute
removeUseJavaContext
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> spy(Boolean spy)
spy
attribute
spy
in interface DatasourceType<T>
spy
- the value for the attribute spy
DatasourceType
public Boolean isSpy()
spy
attribute
isSpy
in interface DatasourceType<T>
spy
public DatasourceType<T> removeSpy()
spy
attribute
removeSpy
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> useCcm(Boolean useCcm)
use-ccm
attribute
useCcm
in interface DatasourceType<T>
useCcm
- the value for the attribute use-ccm
DatasourceType
public Boolean isUseCcm()
use-ccm
attribute
isUseCcm
in interface DatasourceType<T>
use-ccm
public DatasourceType<T> removeUseCcm()
use-ccm
attribute
removeUseCcm
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> connectionUrl(String connectionUrl)
connection-url
element
connectionUrl
in interface DatasourceType<T>
connectionUrl
- the value for the element connection-url
DatasourceType
public String getConnectionUrl()
connection-url
element
getConnectionUrl
in interface DatasourceType<T>
connection-url
public DatasourceType<T> removeConnectionUrl()
connection-url
element
removeConnectionUrl
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> driverClass(String driverClass)
driver-class
element
driverClass
in interface DatasourceType<T>
driverClass
- the value for the element driver-class
DatasourceType
public String getDriverClass()
driver-class
element
getDriverClass
in interface DatasourceType<T>
driver-class
public DatasourceType<T> removeDriverClass()
driver-class
element
removeDriverClass
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> datasourceClass(String datasourceClass)
datasource-class
element
datasourceClass
in interface DatasourceType<T>
datasourceClass
- the value for the element datasource-class
DatasourceType
public String getDatasourceClass()
datasource-class
element
getDatasourceClass
in interface DatasourceType<T>
datasource-class
public DatasourceType<T> removeDatasourceClass()
datasource-class
element
removeDatasourceClass
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> driver(String driver)
driver
element
driver
in interface DatasourceType<T>
driver
- the value for the element driver
DatasourceType
public String getDriver()
driver
element
getDriver
in interface DatasourceType<T>
driver
public DatasourceType<T> removeDriver()
driver
element
removeDriver
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
element
createConnectionProperty
in interface DatasourceType<T>
ConnectionPropertyType>
public List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
connection-property
elements
getAllConnectionProperty
in interface DatasourceType<T>
connection-property
public DatasourceType<T> removeAllConnectionProperty()
connection-property
elements
removeAllConnectionProperty
in interface DatasourceType<T>
ConnectionPropertyType>
public DatasourceType<T> newConnectionSql(String newConnectionSql)
new-connection-sql
element
newConnectionSql
in interface DatasourceType<T>
newConnectionSql
- the value for the element new-connection-sql
DatasourceType
public String getNewConnectionSql()
new-connection-sql
element
getNewConnectionSql
in interface DatasourceType<T>
new-connection-sql
public DatasourceType<T> removeNewConnectionSql()
new-connection-sql
element
removeNewConnectionSql
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
transaction-isolation
element
transactionIsolation
in interface DatasourceType<T>
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
public DatasourceType<T> transactionIsolation(String transactionIsolation)
transaction-isolation
element
transactionIsolation
in interface DatasourceType<T>
transactionIsolation
- the value for the element transaction-isolation
DatasourceType
public TransactionIsolationType getTransactionIsolation()
transaction-isolation
element
getTransactionIsolation
in interface DatasourceType<T>
transaction-isolation
public String getTransactionIsolationAsString()
transaction-isolation
element
getTransactionIsolationAsString
in interface DatasourceType<T>
transaction-isolation
public DatasourceType<T> removeTransactionIsolation()
transaction-isolation
attribute
removeTransactionIsolation
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> urlDelimiter(String urlDelimiter)
url-delimiter
element
urlDelimiter
in interface DatasourceType<T>
urlDelimiter
- the value for the element url-delimiter
DatasourceType
public String getUrlDelimiter()
url-delimiter
element
getUrlDelimiter
in interface DatasourceType<T>
url-delimiter
public DatasourceType<T> removeUrlDelimiter()
url-delimiter
element
removeUrlDelimiter
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
url-selector-strategy-class-name
element
urlSelectorStrategyClassName
in interface DatasourceType<T>
urlSelectorStrategyClassName
- the value for the element url-selector-strategy-class-name
DatasourceType
public String getUrlSelectorStrategyClassName()
url-selector-strategy-class-name
element
getUrlSelectorStrategyClassName
in interface DatasourceType<T>
url-selector-strategy-class-name
public DatasourceType<T> removeUrlSelectorStrategyClassName()
url-selector-strategy-class-name
element
removeUrlSelectorStrategyClassName
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
element
removePool
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
element
removeSecurity
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
element
removeValidation
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
element
removeTimeout
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
element
removeStatement
in interface DatasourceType<T>
DatasourceType
public DatasourceType<T> jta(Boolean jta)
jta
attribute
jta
in interface DatasourceType<T>
jta
- the value for the attribute jta
DatasourceType
public Boolean isJta()
jta
attribute
isJta
in interface DatasourceType<T>
jta
public DatasourceType<T> removeJta()
jta
attribute
removeJta
in interface DatasourceType<T>
DatasourceType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |