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 TypeMethodDescriptionvoid
begin()
void
close()
Closes this connection.void
commit()
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 a key and value in Test Information System (TSEIS).readData()
Get all the data in the TSEis.Read the value for the key.void
rollback()
Rolls back all the operations.void
setAutoCommit
(boolean flag) Sets the auto-commit flag to the value passed in.void
Update 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.
-