Interface TSConnection

All Known Implementing Classes:
TSConnectionImpl, TSEISConnection

public interface TSConnection
A Pooled object interface.
Version:
2.0, 06/06/02
Author:
Gursharan Singh/Binod P.G
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Closes this connection.
    void
    Commits all the operations.
    void
    Delete the key and value from Test Information System (TSEIS).
    void
    Drops all data in the EIS.
    boolean
    Get the auto-commt flag value.
    Get the data cache of the connection accumulated during a transaction.
    void
    insert(String key, String value)
    Insert a key and value in Test Information System (TSEIS).
    Get all the data in the TSEis.
    Read the value for the key.
    void
    Rolls back all the operations.
    void
    setAutoCommit(boolean flag)
    Sets the auto-commit flag to the value passed in.
    void
    update(String key, String value)
    Update the key and value in Test Information System (TSEIS).
  • Method Details

    • insert

      void insert(String key, String value) throws Exception
      Insert a key and value in Test Information System (TSEIS).
      Parameters:
      key - Key to insert.
      value - value to insert.
      Throws:
      Exception - If the key is already present in the EIS.
    • delete

      void delete(String key) throws Exception
      Delete the key and value from Test Information System (TSEIS).
      Parameters:
      key - Key to delete.
      Throws:
      Exception - If the key is not present in the EIS.
    • update

      void update(String key, String value) throws Exception
      Update the key and value in Test Information System (TSEIS).
      Parameters:
      key - Key to update.
      value - value to update.
      Throws:
      Exception - If the key is not present in the EIS.
    • readValue

      String readValue(String key) throws Exception
      Read the value for the key.
      Parameters:
      key - Key to read.
      Returns:
      String value.
      Throws:
      Exception - If the key is not present in the EIS.
    • dropTable

      void dropTable() throws Exception
      Drops all data in the EIS.
      Throws:
      Exception - If there is any exception while droppping.
    • rollback

      void rollback()
      Rolls back all the operations.
    • commit

      void commit() throws Exception
      Commits all the operations.
      Throws:
      Exception - If commit fails.
    • begin

      void begin() throws Exception
      Throws:
      Exception
    • close

      void close() throws Exception
      Closes this connection.
      Throws:
      Exception - If close fails.
    • setAutoCommit

      void setAutoCommit(boolean flag)
      Sets the auto-commit flag to the value passed in. True indicates that all the operation will be committed. If a false is passed, EIS will wait until an explicit commit is executed.
      Parameters:
      flag - True or False
    • getAutoCommit

      boolean getAutoCommit()
      Get the auto-commt flag value.
      Returns:
      the boolean value indicating auto-commit.
    • readData

      Vector readData() throws Exception
      Get all the data in the TSEis. Only Data is returned. Keys are not.
      Returns:
      Vector containing all the data values.
      Throws:
      Exception - If read fails.
    • getTempTable

      Hashtable getTempTable()
      Get the data cache of the connection accumulated during a transaction.