Interface DatasourceType<T>

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
DatasourceTypeImpl

public interface DatasourceType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the datasourceType xsd type
  • Method Details

    • jndiName

      DatasourceType<T> jndiName(String jndiName)
      Sets the jndi-name attribute
      Parameters:
      jndiName - the value for the attribute jndi-name
      Returns:
      the current instance of DatasourceType
    • getJndiName

      String getJndiName()
      Returns the jndi-name attribute
      Returns:
      the value defined for the attribute jndi-name
    • removeJndiName

      DatasourceType<T> removeJndiName()
      Removes the jndi-name attribute
      Returns:
      the current instance of DatasourceType
    • poolName

      DatasourceType<T> poolName(String poolName)
      Sets the pool-name attribute
      Parameters:
      poolName - the value for the attribute pool-name
      Returns:
      the current instance of DatasourceType
    • getPoolName

      String getPoolName()
      Returns the pool-name attribute
      Returns:
      the value defined for the attribute pool-name
    • removePoolName

      DatasourceType<T> removePoolName()
      Removes the pool-name attribute
      Returns:
      the current instance of DatasourceType
    • enabled

      DatasourceType<T> enabled(Boolean enabled)
      Sets the enabled attribute
      Parameters:
      enabled - the value for the attribute enabled
      Returns:
      the current instance of DatasourceType
    • isEnabled

      Boolean isEnabled()
      Returns the enabled attribute
      Returns:
      the value defined for the attribute enabled
    • removeEnabled

      DatasourceType<T> removeEnabled()
      Removes the enabled attribute
      Returns:
      the current instance of DatasourceType
    • useJavaContext

      DatasourceType<T> useJavaContext(Boolean useJavaContext)
      Sets the use-java-context attribute
      Parameters:
      useJavaContext - the value for the attribute use-java-context
      Returns:
      the current instance of DatasourceType
    • isUseJavaContext

      Boolean isUseJavaContext()
      Returns the use-java-context attribute
      Returns:
      the value defined for the attribute use-java-context
    • removeUseJavaContext

      DatasourceType<T> removeUseJavaContext()
      Removes the use-java-context attribute
      Returns:
      the current instance of DatasourceType
    • spy

      Sets the spy attribute
      Parameters:
      spy - the value for the attribute spy
      Returns:
      the current instance of DatasourceType
    • isSpy

      Boolean isSpy()
      Returns the spy attribute
      Returns:
      the value defined for the attribute spy
    • removeSpy

      DatasourceType<T> removeSpy()
      Removes the spy attribute
      Returns:
      the current instance of DatasourceType
    • useCcm

      DatasourceType<T> useCcm(Boolean useCcm)
      Sets the use-ccm attribute
      Parameters:
      useCcm - the value for the attribute use-ccm
      Returns:
      the current instance of DatasourceType
    • isUseCcm

      Boolean isUseCcm()
      Returns the use-ccm attribute
      Returns:
      the value defined for the attribute use-ccm
    • removeUseCcm

      DatasourceType<T> removeUseCcm()
      Removes the use-ccm attribute
      Returns:
      the current instance of DatasourceType
    • connectionUrl

      DatasourceType<T> connectionUrl(String connectionUrl)
      Sets the connection-url element
      Parameters:
      connectionUrl - the value for the element connection-url
      Returns:
      the current instance of DatasourceType
    • getConnectionUrl

      String getConnectionUrl()
      Returns the connection-url element
      Returns:
      the node defined for the element connection-url
    • removeConnectionUrl

      DatasourceType<T> removeConnectionUrl()
      Removes the connection-url element
      Returns:
      the current instance of DatasourceType
    • driverClass

      DatasourceType<T> driverClass(String driverClass)
      Sets the driver-class element
      Parameters:
      driverClass - the value for the element driver-class
      Returns:
      the current instance of DatasourceType
    • getDriverClass

      String getDriverClass()
      Returns the driver-class element
      Returns:
      the node defined for the element driver-class
    • removeDriverClass

      DatasourceType<T> removeDriverClass()
      Removes the driver-class element
      Returns:
      the current instance of DatasourceType
    • datasourceClass

      DatasourceType<T> datasourceClass(String datasourceClass)
      Sets the datasource-class element
      Parameters:
      datasourceClass - the value for the element datasource-class
      Returns:
      the current instance of DatasourceType
    • getDatasourceClass

      String getDatasourceClass()
      Returns the datasource-class element
      Returns:
      the node defined for the element datasource-class
    • removeDatasourceClass

      DatasourceType<T> removeDatasourceClass()
      Removes the datasource-class element
      Returns:
      the current instance of DatasourceType
    • driver

      DatasourceType<T> driver(String driver)
      Sets the driver element
      Parameters:
      driver - the value for the element driver
      Returns:
      the current instance of DatasourceType
    • getDriver

      String getDriver()
      Returns the driver element
      Returns:
      the node defined for the element driver
    • removeDriver

      DatasourceType<T> removeDriver()
      Removes the driver element
      Returns:
      the current instance of DatasourceType
    • getOrCreateConnectionProperty

      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.
      Returns:
      the instance defined for the element connection-property
    • createConnectionProperty

      ConnectionPropertyType<DatasourceType<T>> createConnectionProperty()
      Creates a new connection-property element
      Returns:
      the new created instance of ConnectionPropertyType<DatasourceType>
    • getAllConnectionProperty

      List<ConnectionPropertyType<DatasourceType<T>>> getAllConnectionProperty()
      Returns all connection-property elements
      Returns:
      list of connection-property
    • removeAllConnectionProperty

      DatasourceType<T> removeAllConnectionProperty()
      Removes all connection-property elements
      Returns:
      the current instance of ConnectionPropertyType<DatasourceType>
    • newConnectionSql

      DatasourceType<T> newConnectionSql(String newConnectionSql)
      Sets the new-connection-sql element
      Parameters:
      newConnectionSql - the value for the element new-connection-sql
      Returns:
      the current instance of DatasourceType
    • getNewConnectionSql

      String getNewConnectionSql()
      Returns the new-connection-sql element
      Returns:
      the node defined for the element new-connection-sql
    • removeNewConnectionSql

      DatasourceType<T> removeNewConnectionSql()
      Removes the new-connection-sql element
      Returns:
      the current instance of DatasourceType
    • transactionIsolation

      DatasourceType<T> transactionIsolation(TransactionIsolationType transactionIsolation)
      Sets the transaction-isolation element
      Parameters:
      transactionIsolation - the value for the element transaction-isolation
      Returns:
      the current instance of DatasourceType
    • transactionIsolation

      DatasourceType<T> transactionIsolation(String transactionIsolation)
      Sets the transaction-isolation element
      Parameters:
      transactionIsolation - the value for the element transaction-isolation
      Returns:
      the current instance of DatasourceType
    • getTransactionIsolation

      TransactionIsolationType getTransactionIsolation()
      Returns the transaction-isolation element
      Returns:
      the value found for the element transaction-isolation
    • getTransactionIsolationAsString

      String getTransactionIsolationAsString()
      Returns the transaction-isolation element
      Returns:
      the value found for the element transaction-isolation
    • removeTransactionIsolation

      DatasourceType<T> removeTransactionIsolation()
      Removes the transaction-isolation attribute
      Returns:
      the current instance of DatasourceType
    • urlDelimiter

      DatasourceType<T> urlDelimiter(String urlDelimiter)
      Sets the url-delimiter element
      Parameters:
      urlDelimiter - the value for the element url-delimiter
      Returns:
      the current instance of DatasourceType
    • getUrlDelimiter

      String getUrlDelimiter()
      Returns the url-delimiter element
      Returns:
      the node defined for the element url-delimiter
    • removeUrlDelimiter

      DatasourceType<T> removeUrlDelimiter()
      Removes the url-delimiter element
      Returns:
      the current instance of DatasourceType
    • urlSelectorStrategyClassName

      DatasourceType<T> urlSelectorStrategyClassName(String urlSelectorStrategyClassName)
      Sets the url-selector-strategy-class-name element
      Parameters:
      urlSelectorStrategyClassName - the value for the element url-selector-strategy-class-name
      Returns:
      the current instance of DatasourceType
    • getUrlSelectorStrategyClassName

      String getUrlSelectorStrategyClassName()
      Returns the url-selector-strategy-class-name element
      Returns:
      the node defined for the element url-selector-strategy-class-name
    • removeUrlSelectorStrategyClassName

      DatasourceType<T> removeUrlSelectorStrategyClassName()
      Removes the url-selector-strategy-class-name element
      Returns:
      the current instance of DatasourceType
    • getOrCreatePool

      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.
      Returns:
      a new or existing instance of PoolType<DatasourceType>
    • removePool

      DatasourceType<T> removePool()
      Removes the pool element
      Returns:
      the current instance of DatasourceType
    • getOrCreateSecurity

      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.
      Returns:
      a new or existing instance of DsSecurityType<DatasourceType>
    • removeSecurity

      DatasourceType<T> removeSecurity()
      Removes the security element
      Returns:
      the current instance of DatasourceType
    • getOrCreateValidation

      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.
      Returns:
      a new or existing instance of ValidationType<DatasourceType>
    • removeValidation

      DatasourceType<T> removeValidation()
      Removes the validation element
      Returns:
      the current instance of DatasourceType
    • getOrCreateTimeout

      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.
      Returns:
      a new or existing instance of TimeoutType<DatasourceType>
    • removeTimeout

      DatasourceType<T> removeTimeout()
      Removes the timeout element
      Returns:
      the current instance of DatasourceType
    • getOrCreateStatement

      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.
      Returns:
      a new or existing instance of StatementType<DatasourceType>
    • removeStatement

      DatasourceType<T> removeStatement()
      Removes the statement element
      Returns:
      the current instance of DatasourceType
    • jta

      Sets the jta attribute
      Parameters:
      jta - the value for the attribute jta
      Returns:
      the current instance of DatasourceType
    • isJta

      Boolean isJta()
      Returns the jta attribute
      Returns:
      the value defined for the attribute jta
    • removeJta

      DatasourceType<T> removeJta()
      Removes the jta attribute
      Returns:
      the current instance of DatasourceType