Class DatasourceTypeImpl<T>

java.lang.Object
org.jboss.jca.embedded.dsl.datasources13.impl.DatasourceTypeImpl<T>
All Implemented Interfaces:
DatasourceType<T>, org.jboss.shrinkwrap.descriptor.api.Child<T>

public class DatasourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DatasourceType<T>
This class implements the datasourceType xsd type
  • Constructor Details

    • 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 Details

    • up

      public T up()
      Specified by:
      up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
    • 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
    • connectable

      public DatasourceType<T> connectable(Boolean connectable)
      Sets the connectable attribute
      Specified by:
      connectable in interface DatasourceType<T>
      Parameters:
      connectable - the value for the attribute connectable
      Returns:
      the current instance of DatasourceType
    • isConnectable

      public Boolean isConnectable()
      Returns the connectable attribute
      Specified by:
      isConnectable in interface DatasourceType<T>
      Returns:
      the value defined for the attribute connectable
    • removeConnectable

      public DatasourceType<T> removeConnectable()
      Removes the connectable attribute
      Specified by:
      removeConnectable in interface DatasourceType<T>
      Returns:
      the current instance of DatasourceType
    • tracking

      public DatasourceType<T> tracking(Boolean tracking)
      Sets the tracking attribute
      Specified by:
      tracking in interface DatasourceType<T>
      Parameters:
      tracking - the value for the attribute tracking
      Returns:
      the current instance of DatasourceType
    • isTracking

      public Boolean isTracking()
      Returns the tracking attribute
      Specified by:
      isTracking in interface DatasourceType<T>
      Returns:
      the value defined for the attribute tracking
    • removeTracking

      public DatasourceType<T> removeTracking()
      Removes the tracking attribute
      Specified by:
      removeTracking 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<DatasourceType>
    • 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<DatasourceType>
    • 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<DatasourceType>
    • 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<DatasourceType>
    • 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<DatasourceType>
    • 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<DatasourceType>
    • 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<DatasourceType>
    • 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