org.jboss.datasources.impl
Class DatasourceTypeImpl<T>

java.lang.Object
  extended by org.jboss.datasources.impl.DatasourceTypeImpl<T>
All Implemented Interfaces:
DatasourceType<T>, Child<T>

public class DatasourceTypeImpl<T>
extends Object
implements Child<T>, DatasourceType<T>

This class implements the datasourceType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

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

DatasourceTypeImpl

public DatasourceTypeImpl(T t,
                          String nodeName,
                          org.jboss.shrinkwrap.descriptor.spi.node.Node node)

DatasourceTypeImpl

public DatasourceTypeImpl(T t,
                          String nodeName,
                          org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                          org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

jndiName

public DatasourceType<T> jndiName(String jndiName)
Sets the jndi-name attribute

Specified by:
jndiName in interface DatasourceType<T>
Parameters:
jndiName - the value for the attribute jndi-name
Returns:
the current instance of DatasourceType

getJndiName

public String getJndiName()
Returns the jndi-name attribute

Specified by:
getJndiName in interface DatasourceType<T>
Returns:
the value defined for the attribute jndi-name

removeJndiName

public DatasourceType<T> removeJndiName()
Removes the jndi-name attribute

Specified by:
removeJndiName in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

poolName

public DatasourceType<T> poolName(String poolName)
Sets the pool-name attribute

Specified by:
poolName in interface DatasourceType<T>
Parameters:
poolName - the value for the attribute pool-name
Returns:
the current instance of DatasourceType

getPoolName

public String getPoolName()
Returns the pool-name attribute

Specified by:
getPoolName in interface DatasourceType<T>
Returns:
the value defined for the attribute pool-name

removePoolName

public DatasourceType<T> removePoolName()
Removes the pool-name attribute

Specified by:
removePoolName in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

enabled

public DatasourceType<T> enabled(Boolean enabled)
Sets the enabled attribute

Specified by:
enabled in interface DatasourceType<T>
Parameters:
enabled - the value for the attribute enabled
Returns:
the current instance of DatasourceType

isEnabled

public Boolean isEnabled()
Returns the enabled attribute

Specified by:
isEnabled in interface DatasourceType<T>
Returns:
the value defined for the attribute enabled

removeEnabled

public DatasourceType<T> removeEnabled()
Removes the enabled attribute

Specified by:
removeEnabled in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

useJavaContext

public DatasourceType<T> useJavaContext(Boolean useJavaContext)
Sets the use-java-context attribute

Specified by:
useJavaContext in interface DatasourceType<T>
Parameters:
useJavaContext - the value for the attribute use-java-context
Returns:
the current instance of DatasourceType

isUseJavaContext

public Boolean isUseJavaContext()
Returns the use-java-context attribute

Specified by:
isUseJavaContext in interface DatasourceType<T>
Returns:
the value defined for the attribute use-java-context

removeUseJavaContext

public DatasourceType<T> removeUseJavaContext()
Removes the use-java-context attribute

Specified by:
removeUseJavaContext in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

spy

public DatasourceType<T> spy(Boolean spy)
Sets the spy attribute

Specified by:
spy in interface DatasourceType<T>
Parameters:
spy - the value for the attribute spy
Returns:
the current instance of DatasourceType

isSpy

public Boolean isSpy()
Returns the spy attribute

Specified by:
isSpy in interface DatasourceType<T>
Returns:
the value defined for the attribute spy

removeSpy

public DatasourceType<T> removeSpy()
Removes the spy attribute

Specified by:
removeSpy in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

useCcm

public DatasourceType<T> useCcm(Boolean useCcm)
Sets the use-ccm attribute

Specified by:
useCcm in interface DatasourceType<T>
Parameters:
useCcm - the value for the attribute use-ccm
Returns:
the current instance of DatasourceType

isUseCcm

public Boolean isUseCcm()
Returns the use-ccm attribute

Specified by:
isUseCcm in interface DatasourceType<T>
Returns:
the value defined for the attribute use-ccm

removeUseCcm

public DatasourceType<T> removeUseCcm()
Removes the use-ccm attribute

Specified by:
removeUseCcm in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

connectionUrl

public DatasourceType<T> connectionUrl(String connectionUrl)
Sets the connection-url element

Specified by:
connectionUrl in interface DatasourceType<T>
Parameters:
connectionUrl - the value for the element connection-url
Returns:
the current instance of DatasourceType

getConnectionUrl

public String getConnectionUrl()
Returns the connection-url element

Specified by:
getConnectionUrl in interface DatasourceType<T>
Returns:
the node defined for the element connection-url

removeConnectionUrl

public DatasourceType<T> removeConnectionUrl()
Removes the connection-url element

Specified by:
removeConnectionUrl in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

driverClass

public DatasourceType<T> driverClass(String driverClass)
Sets the driver-class element

Specified by:
driverClass in interface DatasourceType<T>
Parameters:
driverClass - the value for the element driver-class
Returns:
the current instance of DatasourceType

getDriverClass

public String getDriverClass()
Returns the driver-class element

Specified by:
getDriverClass in interface DatasourceType<T>
Returns:
the node defined for the element driver-class

removeDriverClass

public DatasourceType<T> removeDriverClass()
Removes the driver-class element

Specified by:
removeDriverClass in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

datasourceClass

public DatasourceType<T> datasourceClass(String datasourceClass)
Sets the datasource-class element

Specified by:
datasourceClass in interface DatasourceType<T>
Parameters:
datasourceClass - the value for the element datasource-class
Returns:
the current instance of DatasourceType

getDatasourceClass

public String getDatasourceClass()
Returns the datasource-class element

Specified by:
getDatasourceClass in interface DatasourceType<T>
Returns:
the node defined for the element datasource-class

removeDatasourceClass

public DatasourceType<T> removeDatasourceClass()
Removes the datasource-class element

Specified by:
removeDatasourceClass in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

driver

public DatasourceType<T> driver(String driver)
Sets the driver element

Specified by:
driver in interface DatasourceType<T>
Parameters:
driver - the value for the element driver
Returns:
the current instance of DatasourceType

getDriver

public String getDriver()
Returns the driver element

Specified by:
getDriver in interface DatasourceType<T>
Returns:
the node defined for the element driver

removeDriver

public DatasourceType<T> removeDriver()
Removes the driver element

Specified by:
removeDriver in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreateConnectionProperty

public ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty()
If not already created, a new connection-property element will be created and returned. Otherwise, the first existing connection-property element will be returned.

Specified by:
getOrCreateConnectionProperty in interface DatasourceType<T>
Returns:
the instance defined for the element connection-property

createConnectionProperty

public ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
Creates a new connection-property element

Specified by:
createConnectionProperty in interface DatasourceType<T>
Returns:
the new created instance of ConnectionPropertyType>

getAllConnectionProperty

public List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
Returns all connection-property elements

Specified by:
getAllConnectionProperty in interface DatasourceType<T>
Returns:
list of connection-property

removeAllConnectionProperty

public DatasourceType<T> removeAllConnectionProperty()
Removes all connection-property elements

Specified by:
removeAllConnectionProperty in interface DatasourceType<T>
Returns:
the current instance of ConnectionPropertyType>

newConnectionSql

public DatasourceType<T> newConnectionSql(String newConnectionSql)
Sets the new-connection-sql element

Specified by:
newConnectionSql in interface DatasourceType<T>
Parameters:
newConnectionSql - the value for the element new-connection-sql
Returns:
the current instance of DatasourceType

getNewConnectionSql

public String getNewConnectionSql()
Returns the new-connection-sql element

Specified by:
getNewConnectionSql in interface DatasourceType<T>
Returns:
the node defined for the element new-connection-sql

removeNewConnectionSql

public DatasourceType<T> removeNewConnectionSql()
Removes the new-connection-sql element

Specified by:
removeNewConnectionSql in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

transactionIsolation

public DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
Sets the transaction-isolation element

Specified by:
transactionIsolation in interface DatasourceType<T>
Parameters:
transactionIsolation - the value for the element transaction-isolation
Returns:
the current instance of DatasourceType

transactionIsolation

public DatasourceType<T> transactionIsolation(String transactionIsolation)
Sets the transaction-isolation element

Specified by:
transactionIsolation in interface DatasourceType<T>
Parameters:
transactionIsolation - the value for the element transaction-isolation
Returns:
the current instance of DatasourceType

getTransactionIsolation

public TransactionIsolationType getTransactionIsolation()
Returns the transaction-isolation element

Specified by:
getTransactionIsolation in interface DatasourceType<T>
Returns:
the value found for the element transaction-isolation

getTransactionIsolationAsString

public String getTransactionIsolationAsString()
Returns the transaction-isolation element

Specified by:
getTransactionIsolationAsString in interface DatasourceType<T>
Returns:
the value found for the element transaction-isolation

removeTransactionIsolation

public DatasourceType<T> removeTransactionIsolation()
Removes the transaction-isolation attribute

Specified by:
removeTransactionIsolation in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

urlDelimiter

public DatasourceType<T> urlDelimiter(String urlDelimiter)
Sets the url-delimiter element

Specified by:
urlDelimiter in interface DatasourceType<T>
Parameters:
urlDelimiter - the value for the element url-delimiter
Returns:
the current instance of DatasourceType

getUrlDelimiter

public String getUrlDelimiter()
Returns the url-delimiter element

Specified by:
getUrlDelimiter in interface DatasourceType<T>
Returns:
the node defined for the element url-delimiter

removeUrlDelimiter

public DatasourceType<T> removeUrlDelimiter()
Removes the url-delimiter element

Specified by:
removeUrlDelimiter in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

urlSelectorStrategyClassName

public DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
Sets the url-selector-strategy-class-name element

Specified by:
urlSelectorStrategyClassName in interface DatasourceType<T>
Parameters:
urlSelectorStrategyClassName - the value for the element url-selector-strategy-class-name
Returns:
the current instance of DatasourceType

getUrlSelectorStrategyClassName

public String getUrlSelectorStrategyClassName()
Returns the url-selector-strategy-class-name element

Specified by:
getUrlSelectorStrategyClassName in interface DatasourceType<T>
Returns:
the node defined for the element url-selector-strategy-class-name

removeUrlSelectorStrategyClassName

public DatasourceType<T> removeUrlSelectorStrategyClassName()
Removes the url-selector-strategy-class-name element

Specified by:
removeUrlSelectorStrategyClassName in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreatePool

public PoolType<DatasourceType<T>> getOrCreatePool()
If not already created, a new pool element with the given value will be created. Otherwise, the existing pool element will be returned.

Specified by:
getOrCreatePool in interface DatasourceType<T>
Returns:
a new or existing instance of PoolType>

removePool

public DatasourceType<T> removePool()
Removes the pool element

Specified by:
removePool in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreateSecurity

public DsSecurityType<DatasourceType<T>> getOrCreateSecurity()
If not already created, a new security element with the given value will be created. Otherwise, the existing security element will be returned.

Specified by:
getOrCreateSecurity in interface DatasourceType<T>
Returns:
a new or existing instance of DsSecurityType>

removeSecurity

public DatasourceType<T> removeSecurity()
Removes the security element

Specified by:
removeSecurity in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreateValidation

public ValidationType<DatasourceType<T>> getOrCreateValidation()
If not already created, a new validation element with the given value will be created. Otherwise, the existing validation element will be returned.

Specified by:
getOrCreateValidation in interface DatasourceType<T>
Returns:
a new or existing instance of ValidationType>

removeValidation

public DatasourceType<T> removeValidation()
Removes the validation element

Specified by:
removeValidation in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreateTimeout

public TimeoutType<DatasourceType<T>> getOrCreateTimeout()
If not already created, a new timeout element with the given value will be created. Otherwise, the existing timeout element will be returned.

Specified by:
getOrCreateTimeout in interface DatasourceType<T>
Returns:
a new or existing instance of TimeoutType>

removeTimeout

public DatasourceType<T> removeTimeout()
Removes the timeout element

Specified by:
removeTimeout in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

getOrCreateStatement

public StatementType<DatasourceType<T>> getOrCreateStatement()
If not already created, a new statement element with the given value will be created. Otherwise, the existing statement element will be returned.

Specified by:
getOrCreateStatement in interface DatasourceType<T>
Returns:
a new or existing instance of StatementType>

removeStatement

public DatasourceType<T> removeStatement()
Removes the statement element

Specified by:
removeStatement in interface DatasourceType<T>
Returns:
the current instance of DatasourceType

jta

public DatasourceType<T> jta(Boolean jta)
Sets the jta attribute

Specified by:
jta in interface DatasourceType<T>
Parameters:
jta - the value for the attribute jta
Returns:
the current instance of DatasourceType

isJta

public Boolean isJta()
Returns the jta attribute

Specified by:
isJta in interface DatasourceType<T>
Returns:
the value defined for the attribute jta

removeJta

public DatasourceType<T> removeJta()
Removes the jta attribute

Specified by:
removeJta in interface DatasourceType<T>
Returns:
the current instance of DatasourceType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.