Class DataSourceType

  • All Implemented Interfaces:
    com.sun.xml.bind.Locatable

    public class DataSourceType
    extends Object
    implements com.sun.xml.bind.Locatable
    Configuration of a DataSource.

    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

      • DataSourceType

        public DataSourceType()
    • Method Detail

      • setDescription

        public void setDescription​(DescriptionType value)
        Sets the value of the description property.
        Parameters:
        value - allowed object is DescriptionType
      • setName

        public void setName​(JndiNameType value)
        Sets the value of the name property.
        Parameters:
        value - allowed object is JndiNameType
      • getServerName

        public String getServerName()
        Gets the value of the serverName property.
        Returns:
        possible object is String
      • setServerName

        public void setServerName​(String value)
        Sets the value of the serverName property.
        Parameters:
        value - allowed object is String
      • getPortNumber

        public XsdIntegerType getPortNumber()
        Gets the value of the portNumber property.
        Returns:
        possible object is XsdIntegerType
      • setPortNumber

        public void setPortNumber​(XsdIntegerType value)
        Sets the value of the portNumber property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getDatabaseName

        public String getDatabaseName()
        Gets the value of the databaseName property.
        Returns:
        possible object is String
      • setDatabaseName

        public void setDatabaseName​(String value)
        Sets the value of the databaseName property.
        Parameters:
        value - allowed object is String
      • getUrl

        public JdbcUrlType getUrl()
        Gets the value of the url property.
        Returns:
        possible object is JdbcUrlType
      • setUrl

        public void setUrl​(JdbcUrlType value)
        Sets the value of the url property.
        Parameters:
        value - allowed object is JdbcUrlType
      • getUser

        public String getUser()
        Gets the value of the user property.
        Returns:
        possible object is String
      • setUser

        public void setUser​(String value)
        Sets the value of the user property.
        Parameters:
        value - allowed object is String
      • getPassword

        public String getPassword()
        Gets the value of the password property.
        Returns:
        possible object is String
      • setPassword

        public void setPassword​(String value)
        Sets the value of the password property.
        Parameters:
        value - allowed object is String
      • getProperty

        public List<PropertyType> getProperty()
        Gets the value of the property property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the property property.

        For example, to add a new item, do as follows:

            getProperty().add(newItem);
         

        Objects of the following type(s) are allowed in the list PropertyType

      • getLoginTimeout

        public XsdIntegerType getLoginTimeout()
        Gets the value of the loginTimeout property.
        Returns:
        possible object is XsdIntegerType
      • setLoginTimeout

        public void setLoginTimeout​(XsdIntegerType value)
        Sets the value of the loginTimeout property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getTransactional

        public XsdBooleanType getTransactional()
        Gets the value of the transactional property.
        Returns:
        possible object is XsdBooleanType
      • setTransactional

        public void setTransactional​(XsdBooleanType value)
        Sets the value of the transactional property.
        Parameters:
        value - allowed object is XsdBooleanType
      • setIsolationLevel

        public void setIsolationLevel​(IsolationLevelType value)
        Sets the value of the isolationLevel property.
        Parameters:
        value - allowed object is IsolationLevelType
      • getInitialPoolSize

        public XsdIntegerType getInitialPoolSize()
        Gets the value of the initialPoolSize property.
        Returns:
        possible object is XsdIntegerType
      • setInitialPoolSize

        public void setInitialPoolSize​(XsdIntegerType value)
        Sets the value of the initialPoolSize property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getMaxPoolSize

        public XsdIntegerType getMaxPoolSize()
        Gets the value of the maxPoolSize property.
        Returns:
        possible object is XsdIntegerType
      • setMaxPoolSize

        public void setMaxPoolSize​(XsdIntegerType value)
        Sets the value of the maxPoolSize property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getMinPoolSize

        public XsdIntegerType getMinPoolSize()
        Gets the value of the minPoolSize property.
        Returns:
        possible object is XsdIntegerType
      • setMinPoolSize

        public void setMinPoolSize​(XsdIntegerType value)
        Sets the value of the minPoolSize property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getMaxIdleTime

        public XsdIntegerType getMaxIdleTime()
        Gets the value of the maxIdleTime property.
        Returns:
        possible object is XsdIntegerType
      • setMaxIdleTime

        public void setMaxIdleTime​(XsdIntegerType value)
        Sets the value of the maxIdleTime property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getMaxStatements

        public XsdIntegerType getMaxStatements()
        Gets the value of the maxStatements property.
        Returns:
        possible object is XsdIntegerType
      • setMaxStatements

        public void setMaxStatements​(XsdIntegerType value)
        Sets the value of the maxStatements property.
        Parameters:
        value - allowed object is XsdIntegerType
      • getId

        public String getId()
        Gets the value of the id property.
        Returns:
        possible object is String
      • setId

        public void setId​(String value)
        Sets the value of the id property.
        Parameters:
        value - allowed object is String
      • sourceLocation

        public Locator sourceLocation()
        Specified by:
        sourceLocation in interface com.sun.xml.bind.Locatable
      • setSourceLocation

        public void setSourceLocation​(Locator newLocator)