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 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
-
insert
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
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
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
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
Drops all data in the EIS.- Throws:
Exception- If there is any exception while droppping.
-
rollback
void rollback()Rolls back all the operations. -
commit
Commits all the operations.- Throws:
Exception- If commit fails.
-
begin
- Throws:
Exception
-
close
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
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.
-