Class DataSourceTypeImpl<T>

  • All Implemented Interfaces:
    org.jboss.shrinkwrap.descriptor.api.Child<T>, DataSourceType<T>

    public class DataSourceTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DataSourceType<T>
    This class implements the data-sourceType 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>
      • description

        public DataSourceType<T> description​(String description)
        Sets the description element
        Specified by:
        description in interface DataSourceType<T>
        Parameters:
        description - the value for the element description
        Returns:
        the current instance of DataSourceType
      • getDescription

        public String getDescription()
        Returns the description element
        Specified by:
        getDescription in interface DataSourceType<T>
        Returns:
        the node defined for the element description
      • name

        public DataSourceType<T> name​(String name)
        Sets the name element
        Specified by:
        name in interface DataSourceType<T>
        Parameters:
        name - the value for the element name
        Returns:
        the current instance of DataSourceType
      • getName

        public String getName()
        Returns the name element
        Specified by:
        getName in interface DataSourceType<T>
        Returns:
        the node defined for the element name
      • className

        public DataSourceType<T> className​(String className)
        Sets the class-name element
        Specified by:
        className in interface DataSourceType<T>
        Parameters:
        className - the value for the element class-name
        Returns:
        the current instance of DataSourceType
      • getClassName

        public String getClassName()
        Returns the class-name element
        Specified by:
        getClassName in interface DataSourceType<T>
        Returns:
        the node defined for the element class-name
      • serverName

        public DataSourceType<T> serverName​(String serverName)
        Sets the server-name element
        Specified by:
        serverName in interface DataSourceType<T>
        Parameters:
        serverName - the value for the element server-name
        Returns:
        the current instance of DataSourceType
      • getServerName

        public String getServerName()
        Returns the server-name element
        Specified by:
        getServerName in interface DataSourceType<T>
        Returns:
        the node defined for the element server-name
      • portNumber

        public DataSourceType<T> portNumber​(Integer portNumber)
        Sets the port-number element
        Specified by:
        portNumber in interface DataSourceType<T>
        Parameters:
        portNumber - the value for the element port-number
        Returns:
        the current instance of DataSourceType
      • getPortNumber

        public Integer getPortNumber()
        Returns the port-number element
        Specified by:
        getPortNumber in interface DataSourceType<T>
        Returns:
        the node defined for the element port-number
      • databaseName

        public DataSourceType<T> databaseName​(String databaseName)
        Sets the database-name element
        Specified by:
        databaseName in interface DataSourceType<T>
        Parameters:
        databaseName - the value for the element database-name
        Returns:
        the current instance of DataSourceType
      • getDatabaseName

        public String getDatabaseName()
        Returns the database-name element
        Specified by:
        getDatabaseName in interface DataSourceType<T>
        Returns:
        the node defined for the element database-name
      • url

        public DataSourceType<T> url​(String url)
        Sets the url element
        Specified by:
        url in interface DataSourceType<T>
        Parameters:
        url - the value for the element url
        Returns:
        the current instance of DataSourceType
      • getUrl

        public String getUrl()
        Returns the url element
        Specified by:
        getUrl in interface DataSourceType<T>
        Returns:
        the node defined for the element url
      • user

        public DataSourceType<T> user​(String user)
        Sets the user element
        Specified by:
        user in interface DataSourceType<T>
        Parameters:
        user - the value for the element user
        Returns:
        the current instance of DataSourceType
      • getUser

        public String getUser()
        Returns the user element
        Specified by:
        getUser in interface DataSourceType<T>
        Returns:
        the node defined for the element user
      • password

        public DataSourceType<T> password​(String password)
        Sets the password element
        Specified by:
        password in interface DataSourceType<T>
        Parameters:
        password - the value for the element password
        Returns:
        the current instance of DataSourceType
      • getPassword

        public String getPassword()
        Returns the password element
        Specified by:
        getPassword in interface DataSourceType<T>
        Returns:
        the node defined for the element password
      • getOrCreateProperty

        public PropertyType<DataSourceType<T>> getOrCreateProperty()
        If not already created, a new property element will be created and returned. Otherwise, the first existing property element will be returned.
        Specified by:
        getOrCreateProperty in interface DataSourceType<T>
        Returns:
        the instance defined for the element property
      • loginTimeout

        public DataSourceType<T> loginTimeout​(Integer loginTimeout)
        Sets the login-timeout element
        Specified by:
        loginTimeout in interface DataSourceType<T>
        Parameters:
        loginTimeout - the value for the element login-timeout
        Returns:
        the current instance of DataSourceType
      • getLoginTimeout

        public Integer getLoginTimeout()
        Returns the login-timeout element
        Specified by:
        getLoginTimeout in interface DataSourceType<T>
        Returns:
        the node defined for the element login-timeout
      • transactional

        public DataSourceType<T> transactional​(Boolean transactional)
        Sets the transactional element
        Specified by:
        transactional in interface DataSourceType<T>
        Parameters:
        transactional - the value for the element transactional
        Returns:
        the current instance of DataSourceType
      • isTransactional

        public Boolean isTransactional()
        Returns the transactional element
        Specified by:
        isTransactional in interface DataSourceType<T>
        Returns:
        the node defined for the element transactional
      • isolationLevel

        public DataSourceType<T> isolationLevel​(IsolationLevelType isolationLevel)
        Sets the isolation-level element
        Specified by:
        isolationLevel in interface DataSourceType<T>
        Parameters:
        isolationLevel - the value for the element isolation-level
        Returns:
        the current instance of DataSourceType
      • isolationLevel

        public DataSourceType<T> isolationLevel​(String isolationLevel)
        Sets the isolation-level element
        Specified by:
        isolationLevel in interface DataSourceType<T>
        Parameters:
        isolationLevel - the value for the element isolation-level
        Returns:
        the current instance of DataSourceType
      • getIsolationLevelAsString

        public String getIsolationLevelAsString()
        Returns the isolation-level element
        Specified by:
        getIsolationLevelAsString in interface DataSourceType<T>
        Returns:
        the value found for the element isolation-level
      • initialPoolSize

        public DataSourceType<T> initialPoolSize​(Integer initialPoolSize)
        Sets the initial-pool-size element
        Specified by:
        initialPoolSize in interface DataSourceType<T>
        Parameters:
        initialPoolSize - the value for the element initial-pool-size
        Returns:
        the current instance of DataSourceType
      • getInitialPoolSize

        public Integer getInitialPoolSize()
        Returns the initial-pool-size element
        Specified by:
        getInitialPoolSize in interface DataSourceType<T>
        Returns:
        the node defined for the element initial-pool-size
      • maxPoolSize

        public DataSourceType<T> maxPoolSize​(Integer maxPoolSize)
        Sets the max-pool-size element
        Specified by:
        maxPoolSize in interface DataSourceType<T>
        Parameters:
        maxPoolSize - the value for the element max-pool-size
        Returns:
        the current instance of DataSourceType
      • getMaxPoolSize

        public Integer getMaxPoolSize()
        Returns the max-pool-size element
        Specified by:
        getMaxPoolSize in interface DataSourceType<T>
        Returns:
        the node defined for the element max-pool-size
      • minPoolSize

        public DataSourceType<T> minPoolSize​(Integer minPoolSize)
        Sets the min-pool-size element
        Specified by:
        minPoolSize in interface DataSourceType<T>
        Parameters:
        minPoolSize - the value for the element min-pool-size
        Returns:
        the current instance of DataSourceType
      • getMinPoolSize

        public Integer getMinPoolSize()
        Returns the min-pool-size element
        Specified by:
        getMinPoolSize in interface DataSourceType<T>
        Returns:
        the node defined for the element min-pool-size
      • maxIdleTime

        public DataSourceType<T> maxIdleTime​(Integer maxIdleTime)
        Sets the max-idle-time element
        Specified by:
        maxIdleTime in interface DataSourceType<T>
        Parameters:
        maxIdleTime - the value for the element max-idle-time
        Returns:
        the current instance of DataSourceType
      • getMaxIdleTime

        public Integer getMaxIdleTime()
        Returns the max-idle-time element
        Specified by:
        getMaxIdleTime in interface DataSourceType<T>
        Returns:
        the node defined for the element max-idle-time
      • maxStatements

        public DataSourceType<T> maxStatements​(Integer maxStatements)
        Sets the max-statements element
        Specified by:
        maxStatements in interface DataSourceType<T>
        Parameters:
        maxStatements - the value for the element max-statements
        Returns:
        the current instance of DataSourceType
      • getMaxStatements

        public Integer getMaxStatements()
        Returns the max-statements element
        Specified by:
        getMaxStatements in interface DataSourceType<T>
        Returns:
        the node defined for the element max-statements
      • id

        public DataSourceType<T> id​(String id)
        Sets the id attribute
        Specified by:
        id in interface DataSourceType<T>
        Parameters:
        id - the value for the attribute id
        Returns:
        the current instance of DataSourceType
      • getId

        public String getId()
        Returns the id attribute
        Specified by:
        getId in interface DataSourceType<T>
        Returns:
        the value defined for the attribute id