Class TSEISConnection

java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSEISConnection
All Implemented Interfaces:
TSConnection

public class TSEISConnection extends Object implements TSConnection
  • Constructor Details

  • Method Details

    • insert

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

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

      public void update(String key, String value) throws Exception
      Description copied from interface: TSConnection
      Update the key and value in Test Information System (TSEIS).
      Specified by:
      update in interface TSConnection
      Parameters:
      key - Key to update.
      value - value to update.
      Throws:
      Exception - If the key is not present in the EIS.
    • readData

      public Vector readData() throws Exception
      Description copied from interface: TSConnection
      Get all the data in the TSEis. Only Data is returned. Keys are not.
      Specified by:
      readData in interface TSConnection
      Returns:
      Vector containing all the data values.
      Throws:
      Exception - If read fails.
    • readValue

      public String readValue(String key) throws Exception
      Description copied from interface: TSConnection
      Read the value for the key.
      Specified by:
      readValue in interface TSConnection
      Parameters:
      key - Key to read.
      Returns:
      String value.
      Throws:
      Exception - If the key is not present in the EIS.
    • setAutoCommit

      public void setAutoCommit(boolean flag)
      Description copied from interface: TSConnection
      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.
      Specified by:
      setAutoCommit in interface TSConnection
      Parameters:
      flag - True or False
    • getAutoCommit

      public boolean getAutoCommit()
      Description copied from interface: TSConnection
      Get the auto-commt flag value.
      Specified by:
      getAutoCommit in interface TSConnection
      Returns:
      the boolean value indicating auto-commit.
    • commit

      public void commit() throws Exception
      Description copied from interface: TSConnection
      Commits all the operations.
      Specified by:
      commit in interface TSConnection
      Throws:
      Exception - If commit fails.
    • dropTable

      public void dropTable() throws Exception
      Description copied from interface: TSConnection
      Drops all data in the EIS.
      Specified by:
      dropTable in interface TSConnection
      Throws:
      Exception - If there is any exception while droppping.
    • begin

      public void begin() throws Exception
      Specified by:
      begin in interface TSConnection
      Throws:
      Exception
    • rollback

      public void rollback()
      Description copied from interface: TSConnection
      Rolls back all the operations.
      Specified by:
      rollback in interface TSConnection
    • close

      public void close() throws Exception
      Description copied from interface: TSConnection
      Closes this connection.
      Specified by:
      close in interface TSConnection
      Throws:
      Exception - If close fails.
    • isClosed

      public boolean isClosed()
    • checkIfValid

      public boolean checkIfValid()
    • getTempTable

      public Hashtable getTempTable()
      Description copied from interface: TSConnection
      Get the data cache of the connection accumulated during a transaction.
      Specified by:
      getTempTable in interface TSConnection