Class DataSourceTypeImpl<T>

java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee7.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 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>
    • 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
    • removeDescription

      public DataSourceType<T> removeDescription()
      Removes the description element
      Specified by:
      removeDescription in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeName

      public DataSourceType<T> removeName()
      Removes the name element
      Specified by:
      removeName in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeClassName

      public DataSourceType<T> removeClassName()
      Removes the class-name element
      Specified by:
      removeClassName in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeServerName

      public DataSourceType<T> removeServerName()
      Removes the server-name element
      Specified by:
      removeServerName in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removePortNumber

      public DataSourceType<T> removePortNumber()
      Removes the port-number element
      Specified by:
      removePortNumber in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeDatabaseName

      public DataSourceType<T> removeDatabaseName()
      Removes the database-name element
      Specified by:
      removeDatabaseName in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeUrl

      public DataSourceType<T> removeUrl()
      Removes the url element
      Specified by:
      removeUrl in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeUser

      public DataSourceType<T> removeUser()
      Removes the user element
      Specified by:
      removeUser in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removePassword

      public DataSourceType<T> removePassword()
      Removes the password element
      Specified by:
      removePassword in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • createProperty

      public PropertyType<DataSourceType<T>> createProperty()
      Creates a new property element
      Specified by:
      createProperty in interface DataSourceType<T>
      Returns:
      the new created instance of PropertyTypeinvalid input: '<'DataSourceType>
    • getAllProperty

      public List<PropertyType<DataSourceType<T>>> getAllProperty()
      Returns all property elements
      Specified by:
      getAllProperty in interface DataSourceType<T>
      Returns:
      list of property
    • removeAllProperty

      public DataSourceType<T> removeAllProperty()
      Removes all property elements
      Specified by:
      removeAllProperty in interface DataSourceType<T>
      Returns:
      the current instance of PropertyTypeinvalid input: '<'DataSourceType>
    • 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
    • removeLoginTimeout

      public DataSourceType<T> removeLoginTimeout()
      Removes the login-timeout element
      Specified by:
      removeLoginTimeout in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeTransactional

      public DataSourceType<T> removeTransactional()
      Removes the transactional element
      Specified by:
      removeTransactional in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • getIsolationLevel

      public IsolationLevelType getIsolationLevel()
      Returns the isolation-level element
      Specified by:
      getIsolationLevel in interface DataSourceType<T>
      Returns:
      the value found for the element isolation-level
    • 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
    • removeIsolationLevel

      public DataSourceType<T> removeIsolationLevel()
      Removes the isolation-level attribute
      Specified by:
      removeIsolationLevel in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeInitialPoolSize

      public DataSourceType<T> removeInitialPoolSize()
      Removes the initial-pool-size element
      Specified by:
      removeInitialPoolSize in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeMaxPoolSize

      public DataSourceType<T> removeMaxPoolSize()
      Removes the max-pool-size element
      Specified by:
      removeMaxPoolSize in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeMinPoolSize

      public DataSourceType<T> removeMinPoolSize()
      Removes the min-pool-size element
      Specified by:
      removeMinPoolSize in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeMaxIdleTime

      public DataSourceType<T> removeMaxIdleTime()
      Removes the max-idle-time element
      Specified by:
      removeMaxIdleTime in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeMaxStatements

      public DataSourceType<T> removeMaxStatements()
      Removes the max-statements element
      Specified by:
      removeMaxStatements in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType
    • 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
    • removeId

      public DataSourceType<T> removeId()
      Removes the id attribute
      Specified by:
      removeId in interface DataSourceType<T>
      Returns:
      the current instance of DataSourceType