Class TSEISConnection
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSEISConnection
- All Implemented Interfaces:
TSConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()booleanvoidclose()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).booleanisClosed()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).
-
Constructor Details
-
TSEISConnection
-
-
Method Details
-
insert
Description copied from interface:TSConnectionInsert a key and value in Test Information System (TSEIS).- Specified by:
insertin interfaceTSConnection- Parameters:
key- Key to insert.value- value to insert.- Throws:
Exception- If the key is already present in the EIS.
-
delete
Description copied from interface:TSConnectionDelete the key and value from Test Information System (TSEIS).- Specified by:
deletein interfaceTSConnection- Parameters:
key- Key to delete.- Throws:
Exception- If the key is not present in the EIS.
-
update
Description copied from interface:TSConnectionUpdate the key and value in Test Information System (TSEIS).- Specified by:
updatein interfaceTSConnection- Parameters:
key- Key to update.value- value to update.- Throws:
Exception- If the key is not present in the EIS.
-
readData
Description copied from interface:TSConnectionGet all the data in the TSEis. Only Data is returned. Keys are not.- Specified by:
readDatain interfaceTSConnection- Returns:
- Vector containing all the data values.
- Throws:
Exception- If read fails.
-
readValue
Description copied from interface:TSConnectionRead the value for the key.- Specified by:
readValuein interfaceTSConnection- 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:TSConnectionSets 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:
setAutoCommitin interfaceTSConnection- Parameters:
flag- True or False
-
getAutoCommit
public boolean getAutoCommit()Description copied from interface:TSConnectionGet the auto-commt flag value.- Specified by:
getAutoCommitin interfaceTSConnection- Returns:
- the boolean value indicating auto-commit.
-
commit
Description copied from interface:TSConnectionCommits all the operations.- Specified by:
commitin interfaceTSConnection- Throws:
Exception- If commit fails.
-
dropTable
Description copied from interface:TSConnectionDrops all data in the EIS.- Specified by:
dropTablein interfaceTSConnection- Throws:
Exception- If there is any exception while droppping.
-
begin
- Specified by:
beginin interfaceTSConnection- Throws:
Exception
-
rollback
public void rollback()Description copied from interface:TSConnectionRolls back all the operations.- Specified by:
rollbackin interfaceTSConnection
-
close
Description copied from interface:TSConnectionCloses this connection.- Specified by:
closein interfaceTSConnection- Throws:
Exception- If close fails.
-
isClosed
public boolean isClosed() -
checkIfValid
public boolean checkIfValid() -
getTempTable
Description copied from interface:TSConnectionGet the data cache of the connection accumulated during a transaction.- Specified by:
getTempTablein interfaceTSConnection
-