Class 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 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()
        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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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>
      • 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>
      • 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>
      • 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>
      • 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>
      • 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