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

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

public class XaDatasourceTypeImpl<T>
extends Object
implements Child<T>, XaDatasourceType<T>

This class implements the xa-datasourceType xsd type

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

Constructor Summary
XaDatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
XaDatasourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 XaDatasourcePropertyType<XaDatasourceType<T>> createXaDatasourceProperty()
          Creates a new xa-datasource-property element
 XaDatasourceType<T> driver(String driver)
          Sets the driver element
 XaDatasourceType<T> enabled(Boolean enabled)
          Sets the enabled attribute
 List<XaDatasourcePropertyType<XaDatasourceType<T>>> getAllXaDatasourceProperty()
          Returns all xa-datasource-property elements
 String getDriver()
          Returns the driver element
 String getJndiName()
          Returns the jndi-name attribute
 String getNewConnectionSql()
          Returns the new-connection-sql element
 RecoverType<XaDatasourceType<T>> getOrCreateRecovery()
          If not already created, a new recovery element with the given value will be created.
 DsSecurityType<XaDatasourceType<T>> getOrCreateSecurity()
          If not already created, a new security element with the given value will be created.
 StatementType<XaDatasourceType<T>> getOrCreateStatement()
          If not already created, a new statement element with the given value will be created.
 TimeoutType<XaDatasourceType<T>> getOrCreateTimeout()
          If not already created, a new timeout element with the given value will be created.
 ValidationType<XaDatasourceType<T>> getOrCreateValidation()
          If not already created, a new validation element with the given value will be created.
 XaDatasourcePropertyType<XaDatasourceType<T>> getOrCreateXaDatasourceProperty()
          If not already created, a new xa-datasource-property element will be created and returned.
 XaPoolType<XaDatasourceType<T>> getOrCreateXaPool()
          If not already created, a new xa-pool 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
 String getXaDatasourceClass()
          Returns the xa-datasource-class element
 Boolean isEnabled()
          Returns the enabled attribute
 Boolean isSpy()
          Returns the spy attribute
 Boolean isUseCcm()
          Returns the use-ccm attribute
 Boolean isUseJavaContext()
          Returns the use-java-context attribute
 XaDatasourceType<T> jndiName(String jndiName)
          Sets the jndi-name attribute
 XaDatasourceType<T> newConnectionSql(String newConnectionSql)
          Sets the new-connection-sql element
 XaDatasourceType<T> poolName(String poolName)
          Sets the pool-name attribute
 XaDatasourceType<T> removeAllXaDatasourceProperty()
          Removes all xa-datasource-property elements
 XaDatasourceType<T> removeDriver()
          Removes the driver element
 XaDatasourceType<T> removeEnabled()
          Removes the enabled attribute
 XaDatasourceType<T> removeJndiName()
          Removes the jndi-name attribute
 XaDatasourceType<T> removeNewConnectionSql()
          Removes the new-connection-sql element
 XaDatasourceType<T> removePoolName()
          Removes the pool-name attribute
 XaDatasourceType<T> removeRecovery()
          Removes the recovery element
 XaDatasourceType<T> removeSecurity()
          Removes the security element
 XaDatasourceType<T> removeSpy()
          Removes the spy attribute
 XaDatasourceType<T> removeStatement()
          Removes the statement element
 XaDatasourceType<T> removeTimeout()
          Removes the timeout element
 XaDatasourceType<T> removeTransactionIsolation()
          Removes the transaction-isolation attribute
 XaDatasourceType<T> removeUrlDelimiter()
          Removes the url-delimiter element
 XaDatasourceType<T> removeUrlSelectorStrategyClassName()
          Removes the url-selector-strategy-class-name element
 XaDatasourceType<T> removeUseCcm()
          Removes the use-ccm attribute
 XaDatasourceType<T> removeUseJavaContext()
          Removes the use-java-context attribute
 XaDatasourceType<T> removeValidation()
          Removes the validation element
 XaDatasourceType<T> removeXaDatasourceClass()
          Removes the xa-datasource-class element
 XaDatasourceType<T> removeXaPool()
          Removes the xa-pool element
 XaDatasourceType<T> spy(Boolean spy)
          Sets the spy attribute
 XaDatasourceType<T> transactionIsolation(String transactionIsolation)
          Sets the transaction-isolation element
 XaDatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
          Sets the transaction-isolation element
 T up()
          Returns the parent of this Child
 XaDatasourceType<T> urlDelimiter(String urlDelimiter)
          Sets the url-delimiter element
 XaDatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
          Sets the url-selector-strategy-class-name element
 XaDatasourceType<T> useCcm(Boolean useCcm)
          Sets the use-ccm attribute
 XaDatasourceType<T> useJavaContext(Boolean useJavaContext)
          Sets the use-java-context attribute
 XaDatasourceType<T> xaDatasourceClass(String xaDatasourceClass)
          Sets the xa-datasource-class element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XaDatasourceTypeImpl

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

XaDatasourceTypeImpl

public XaDatasourceTypeImpl(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 XaDatasourceType<T> jndiName(String jndiName)
Sets the jndi-name attribute

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

getJndiName

public String getJndiName()
Returns the jndi-name attribute

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

removeJndiName

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

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

poolName

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

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

getPoolName

public String getPoolName()
Returns the pool-name attribute

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

removePoolName

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

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

enabled

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

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

isEnabled

public Boolean isEnabled()
Returns the enabled attribute

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

removeEnabled

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

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

useJavaContext

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

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

isUseJavaContext

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

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

removeUseJavaContext

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

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

spy

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

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

isSpy

public Boolean isSpy()
Returns the spy attribute

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

removeSpy

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

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

useCcm

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

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

isUseCcm

public Boolean isUseCcm()
Returns the use-ccm attribute

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

removeUseCcm

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

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

getOrCreateXaDatasourceProperty

public XaDatasourcePropertyType<XaDatasourceType<T>> getOrCreateXaDatasourceProperty()
If not already created, a new xa-datasource-property element will be created and returned. Otherwise, the first existing xa-datasource-property element will be returned.

Specified by:
getOrCreateXaDatasourceProperty in interface XaDatasourceType<T>
Returns:
the instance defined for the element xa-datasource-property

createXaDatasourceProperty

public XaDatasourcePropertyType<XaDatasourceType<T>> createXaDatasourceProperty()
Creates a new xa-datasource-property element

Specified by:
createXaDatasourceProperty in interface XaDatasourceType<T>
Returns:
the new created instance of XaDatasourcePropertyType>

getAllXaDatasourceProperty

public List<XaDatasourcePropertyType<XaDatasourceType<T>>> getAllXaDatasourceProperty()
Returns all xa-datasource-property elements

Specified by:
getAllXaDatasourceProperty in interface XaDatasourceType<T>
Returns:
list of xa-datasource-property

removeAllXaDatasourceProperty

public XaDatasourceType<T> removeAllXaDatasourceProperty()
Removes all xa-datasource-property elements

Specified by:
removeAllXaDatasourceProperty in interface XaDatasourceType<T>
Returns:
the current instance of XaDatasourcePropertyType>

xaDatasourceClass

public XaDatasourceType<T> xaDatasourceClass(String xaDatasourceClass)
Sets the xa-datasource-class element

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

getXaDatasourceClass

public String getXaDatasourceClass()
Returns the xa-datasource-class element

Specified by:
getXaDatasourceClass in interface XaDatasourceType<T>
Returns:
the node defined for the element xa-datasource-class

removeXaDatasourceClass

public XaDatasourceType<T> removeXaDatasourceClass()
Removes the xa-datasource-class element

Specified by:
removeXaDatasourceClass in interface XaDatasourceType<T>
Returns:
the current instance of XaDatasourceType

driver

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

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

getDriver

public String getDriver()
Returns the driver element

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

removeDriver

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

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

urlDelimiter

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

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

getUrlDelimiter

public String getUrlDelimiter()
Returns the url-delimiter element

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

removeUrlDelimiter

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

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

urlSelectorStrategyClassName

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

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

getUrlSelectorStrategyClassName

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

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

removeUrlSelectorStrategyClassName

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

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

newConnectionSql

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

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

getNewConnectionSql

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

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

removeNewConnectionSql

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

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

transactionIsolation

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

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

transactionIsolation

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

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

getTransactionIsolation

public TransactionIsolationType getTransactionIsolation()
Returns the transaction-isolation element

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

getTransactionIsolationAsString

public String getTransactionIsolationAsString()
Returns the transaction-isolation element

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

removeTransactionIsolation

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

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

getOrCreateXaPool

public XaPoolType<XaDatasourceType<T>> getOrCreateXaPool()
If not already created, a new xa-pool element with the given value will be created. Otherwise, the existing xa-pool element will be returned.

Specified by:
getOrCreateXaPool in interface XaDatasourceType<T>
Returns:
a new or existing instance of XaPoolType>

removeXaPool

public XaDatasourceType<T> removeXaPool()
Removes the xa-pool element

Specified by:
removeXaPool in interface XaDatasourceType<T>
Returns:
the current instance of XaDatasourceType

getOrCreateSecurity

public DsSecurityType<XaDatasourceType<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 XaDatasourceType<T>
Returns:
a new or existing instance of DsSecurityType>

removeSecurity

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

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

getOrCreateValidation

public ValidationType<XaDatasourceType<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 XaDatasourceType<T>
Returns:
a new or existing instance of ValidationType>

removeValidation

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

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

getOrCreateTimeout

public TimeoutType<XaDatasourceType<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 XaDatasourceType<T>
Returns:
a new or existing instance of TimeoutType>

removeTimeout

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

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

getOrCreateStatement

public StatementType<XaDatasourceType<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 XaDatasourceType<T>
Returns:
a new or existing instance of StatementType>

removeStatement

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

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

getOrCreateRecovery

public RecoverType<XaDatasourceType<T>> getOrCreateRecovery()
If not already created, a new recovery element with the given value will be created. Otherwise, the existing recovery element will be returned.

Specified by:
getOrCreateRecovery in interface XaDatasourceType<T>
Returns:
a new or existing instance of RecoverType>

removeRecovery

public XaDatasourceType<T> removeRecovery()
Removes the recovery element

Specified by:
removeRecovery in interface XaDatasourceType<T>
Returns:
the current instance of XaDatasourceType


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