Class ConnectionPool

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConnectionPool
    extends java.lang.Object
    implements java.io.Serializable
    Database connection pool configuration.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionPool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteIdleTimeout()  
      void deleteLoginTimeout()  
      void deleteMaxPool()  
      void deleteMaxSize()  
      void deleteMinPool()  
      boolean equals​(java.lang.Object obj)
      Overrides the Object.equals method.
      java.lang.String getFactory()
      Returns the value of field 'factory'.
      java.lang.Integer getIdleTimeout()
      Returns the value of field 'idleTimeout'.
      java.lang.Integer getLoginTimeout()
      Returns the value of field 'loginTimeout'.
      java.lang.Integer getMaxPool()
      Returns the value of field 'maxPool'.
      java.lang.Integer getMaxSize()
      Returns the value of field 'maxSize'.
      java.lang.Integer getMinPool()
      Returns the value of field 'minPool'.
      int hashCode()
      Method hashCode.
      boolean hasIdleTimeout()
      Method hasIdleTimeout.
      boolean hasLoginTimeout()
      Method hasLoginTimeout.
      boolean hasMaxPool()
      Method hasMaxPool.
      boolean hasMaxSize()
      Method hasMaxSize.
      boolean hasMinPool()
      Method hasMinPool.
      void setFactory​(java.lang.String factory)
      Sets the value of field 'factory'.
      void setIdleTimeout​(java.lang.Integer idleTimeout)
      Sets the value of field 'idleTimeout'.
      void setLoginTimeout​(java.lang.Integer loginTimeout)
      Sets the value of field 'loginTimeout'.
      void setMaxPool​(java.lang.Integer maxPool)
      Sets the value of field 'maxPool'.
      void setMaxSize​(java.lang.Integer maxSize)
      Sets the value of field 'maxSize'.
      void setMinPool​(java.lang.Integer minPool)
      Sets the value of field 'minPool'.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionPool

        public ConnectionPool()
    • Method Detail

      • deleteIdleTimeout

        public void deleteIdleTimeout()
      • deleteLoginTimeout

        public void deleteLoginTimeout()
      • deleteMaxPool

        public void deleteMaxPool()
      • deleteMaxSize

        public void deleteMaxSize()
      • deleteMinPool

        public void deleteMinPool()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides the Object.equals method.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
        true if the objects are equal.
      • getFactory

        public java.lang.String getFactory()
        Returns the value of field 'factory'. The field 'factory' has the following description: The connection pool implementation to use.
        Returns:
        the value of field 'Factory'.
      • getIdleTimeout

        public java.lang.Integer getIdleTimeout()
        Returns the value of field 'idleTimeout'. The field 'idleTimeout' has the following description: How long, in seconds, an idle connection is kept in the pool before it is removed.
        Returns:
        the value of field 'IdleTimeout'.
      • getLoginTimeout

        public java.lang.Integer getLoginTimeout()
        Returns the value of field 'loginTimeout'. The field 'loginTimeout' has the following description: How long, in seconds, to attempt to make a connection to the database.
        Returns:
        the value of field 'LoginTimeout'.
      • getMaxPool

        public java.lang.Integer getMaxPool()
        Returns the value of field 'maxPool'. The field 'maxPool' has the following description: The maximum number of pooled connections to retain.
        Returns:
        the value of field 'MaxPool'.
      • getMaxSize

        public java.lang.Integer getMaxSize()
        Returns the value of field 'maxSize'. The field 'maxSize' has the following description: The maximum number of connections that can be created.
        Returns:
        the value of field 'MaxSize'.
      • getMinPool

        public java.lang.Integer getMinPool()
        Returns the value of field 'minPool'. The field 'minPool' has the following description: The minimum number of pooled connections to retain.
        Returns:
        the value of field 'MinPool'.
      • hasIdleTimeout

        public boolean hasIdleTimeout()
        Method hasIdleTimeout.
        Returns:
        true if at least one IdleTimeout has been added
      • hasLoginTimeout

        public boolean hasLoginTimeout()
        Method hasLoginTimeout.
        Returns:
        true if at least one LoginTimeout has been added
      • hasMaxPool

        public boolean hasMaxPool()
        Method hasMaxPool.
        Returns:
        true if at least one MaxPool has been added
      • hasMaxSize

        public boolean hasMaxSize()
        Method hasMaxSize.
        Returns:
        true if at least one MaxSize has been added
      • hasMinPool

        public boolean hasMinPool()
        Method hasMinPool.
        Returns:
        true if at least one MinPool has been added
      • hashCode

        public int hashCode()
        Method hashCode.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for the object.
      • setFactory

        public void setFactory​(java.lang.String factory)
        Sets the value of field 'factory'. The field 'factory' has the following description: The connection pool implementation to use.
        Parameters:
        factory - the value of field 'factory'.
      • setIdleTimeout

        public void setIdleTimeout​(java.lang.Integer idleTimeout)
        Sets the value of field 'idleTimeout'. The field 'idleTimeout' has the following description: How long, in seconds, an idle connection is kept in the pool before it is removed.
        Parameters:
        idleTimeout - the value of field 'idleTimeout'.
      • setLoginTimeout

        public void setLoginTimeout​(java.lang.Integer loginTimeout)
        Sets the value of field 'loginTimeout'. The field 'loginTimeout' has the following description: How long, in seconds, to attempt to make a connection to the database.
        Parameters:
        loginTimeout - the value of field 'loginTimeout'.
      • setMaxPool

        public void setMaxPool​(java.lang.Integer maxPool)
        Sets the value of field 'maxPool'. The field 'maxPool' has the following description: The maximum number of pooled connections to retain.
        Parameters:
        maxPool - the value of field 'maxPool'.
      • setMaxSize

        public void setMaxSize​(java.lang.Integer maxSize)
        Sets the value of field 'maxSize'. The field 'maxSize' has the following description: The maximum number of connections that can be created.
        Parameters:
        maxSize - the value of field 'maxSize'.
      • setMinPool

        public void setMinPool​(java.lang.Integer minPool)
        Sets the value of field 'minPool'. The field 'minPool' has the following description: The minimum number of pooled connections to retain.
        Parameters:
        minPool - the value of field 'minPool'.