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 SummaryModifier and TypeMethodDescriptionvoidbegin()voidclose()Closes this connection.voidcommit()Commits all the operations.voidDelete the key and value from Test Information System (TSEIS).voidDrops all data in the EIS.booleanGet the auto-commt flag value.Get the data cache of the connection accumulated during a transaction.voidInsert a key and value in Test Information System (TSEIS).readData()Get all the data in the TSEis.Read the value for the key.voidrollback()Rolls back all the operations.voidsetAutoCommit(boolean flag) Sets the auto-commit flag to the value passed in.voidUpdate the key and value in Test Information System (TSEIS).
- 
Method Details- 
insertInsert 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.
 
- 
deleteDelete 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.
 
- 
updateUpdate 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.
 
- 
readValueRead the value for the key.- Parameters:
- key- Key to read.
- Returns:
- String value.
- Throws:
- Exception- If the key is not present in the EIS.
 
- 
dropTableDrops all data in the EIS.- Throws:
- Exception- If there is any exception while droppping.
 
- 
rollbackvoid rollback()Rolls back all the operations.
- 
commitCommits all the operations.- Throws:
- Exception- If commit fails.
 
- 
begin- Throws:
- Exception
 
- 
closeCloses this connection.- Throws:
- Exception- If close fails.
 
- 
setAutoCommitvoid 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
 
- 
getAutoCommitboolean getAutoCommit()Get the auto-commt flag value.- Returns:
- the boolean value indicating auto-commit.
 
- 
readDataGet 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.
 
- 
getTempTableHashtable getTempTable()Get the data cache of the connection accumulated during a transaction.
 
-