Class DataSource

  • All Implemented Interfaces:
    Keyable<String>

    public class DataSource
    extends Object
    implements Keyable<String>
    javaee6.xsd

    Java class for data-sourceType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="data-sourceType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" minOccurs="0"/>
             <element name="name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
             <element name="class-name" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
             <element name="server-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
             <element name="port-number" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="database-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
             <element name="url" type="{http://java.sun.com/xml/ns/javaee}jdbc-urlType" minOccurs="0"/>
             <element name="user" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
             <element name="password" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
             <element name="property" type="{http://java.sun.com/xml/ns/javaee}propertyType" maxOccurs="unbounded" minOccurs="0"/>
             <element name="login-timeout" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="transactional" type="{http://java.sun.com/xml/ns/javaee}xsdBooleanType" minOccurs="0"/>
             <element name="isolation-level" type="{http://java.sun.com/xml/ns/javaee}isolation-levelType" minOccurs="0"/>
             <element name="initial-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="max-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="min-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="max-idle-time" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
             <element name="max-statements" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/>
           </sequence>
           <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • DataSource

        public DataSource()
      • DataSource

        public DataSource​(String name,
                          String className)
    • Method Detail

      • getDescriptions

        public Text[] getDescriptions()
      • setDescriptions

        public void setDescriptions​(Text[] text)
      • getDescription

        public String getDescription()
      • getName

        public String getName()
      • setName

        public void setName​(String value)
      • getClassName

        public String getClassName()
      • setClassName

        public void setClassName​(String value)
      • getServerName

        public String getServerName()
      • setServerName

        public void setServerName​(String value)
      • getPortNumber

        public Integer getPortNumber()
      • setPortNumber

        public void setPortNumber​(Integer value)
      • getDatabaseName

        public String getDatabaseName()
      • setDatabaseName

        public void setDatabaseName​(String value)
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String value)
      • getUser

        public String getUser()
      • setUser

        public void setUser​(String value)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String value)
      • getLoginTimeout

        public Integer getLoginTimeout()
      • setLoginTimeout

        public void setLoginTimeout​(Integer value)
      • getTransactional

        public Boolean getTransactional()
      • setTransactional

        public void setTransactional​(Boolean value)
      • setIsolationLevel

        public void setIsolationLevel​(IsolationLevel value)
      • getInitialPoolSize

        public Integer getInitialPoolSize()
      • setInitialPoolSize

        public void setInitialPoolSize​(Integer value)
      • getMaxPoolSize

        public Integer getMaxPoolSize()
      • setMaxPoolSize

        public void setMaxPoolSize​(Integer value)
      • getMinPoolSize

        public Integer getMinPoolSize()
      • setMinPoolSize

        public void setMinPoolSize​(Integer value)
      • getMaxIdleTime

        public Integer getMaxIdleTime()
      • setMaxIdleTime

        public void setMaxIdleTime​(Integer value)
      • getMaxStatements

        public Integer getMaxStatements()
      • setMaxStatements

        public void setMaxStatements​(Integer value)
      • getId

        public String getId()
      • setId

        public void setId​(String value)
      • getKey

        public String getKey()
        Description copied from interface: Keyable
        Gets the immutable key for this object.
        Specified by:
        getKey in interface Keyable<String>
        Returns:
        gets the immutable key for this object