Class PooledConnectionInfo

java.lang.Object
overit.geocall.sql.PooledConnectionInfo

public class PooledConnectionInfo extends Object
Object that stores the information about the PooledConnection
  • Field Details

    • _activity

      protected String _activity
    • _lastconnect

      protected long _lastconnect
      Date (in milliseconds from the 1st January 1970) of the last opening of connection
    • _lastget

      protected long _lastget
      Date (in milliseconds from the 1st January 1970) of the last usages request of connection
    • _lastrelease

      protected long _lastrelease
      Date (in milliseconds from the 1st January 1970) of the last connection release
    • _id

      protected int _id
    • _idle

      protected boolean _idle
    • _lastDBClientIdentifier

      protected String _lastDBClientIdentifier
    • _lastDBFieldMap

      protected DBFieldMap _lastDBFieldMap
  • Constructor Details

    • PooledConnectionInfo

      public PooledConnectionInfo()
      Creates a PooledConnectionInfo object
  • Method Details

    • connected

      public void connected(Connection c) throws SQLException
      Connects a Connection, sets the DataBase type DBType, the SID and the time of the last opening of connection
      Parameters:
      c - The Connection
      Throws:
      SQLException - If a database access error occurs an SQLException will be raised
    • querySid

      protected String querySid(Connection connection)
    • getSid

      public String getSid()
      Returns the unique name that uniquely identifies the database
      Returns:
      The string that represents the SID, the name of the database
    • getDBType

      public DBType getDBType()
      Returns the DataBase type on which the connection works
      Returns:
      The DBType
    • lastGet

      public long lastGet()
      Returns the time passed from the last usages request of connection
      Returns:
      The time (in milliseconds from the 1st January 1970) passed from the last usages request
    • lastConnect

      public long lastConnect()
      Returns the time passed from the last opening of connection
      Returns:
      The time (in milliseconds from the 1st January 1970) passed from the last opening
    • lastRelease

      public long lastRelease()
      Returns the time passed from the last connection release
      Returns:
      The time (in milliseconds from the 1st January 1970) passed from the last release
    • getActivity

      public String getActivity()
      Returns the string that describes the activity of the connection
      Returns:
      The string that describes the activity
    • idle

      public boolean idle()
      Checks if the connection is idle or not
      Returns:
      true if the connection is idle, false otherwise
    • getId

      public int getId()
      Returns the id
      Returns:
      The id
    • getLastDBClientIdentier

      public String getLastDBClientIdentier()
      Returns the current or the last client identification code
      Returns:
      the current or the last client identification code
    • getLastDBFieldMap

      public DBFieldMap getLastDBFieldMap()
      Returns the current or the last field map of mthe identity asking for the connection
      Returns:
      the current or the last field map of mthe identity asking for the connection