Class TSEISConnection
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.TSEISConnection
- All Implemented Interfaces:
- TSConnection
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
insertDescription copied from interface:TSConnectionInsert a key and value in Test Information System (TSEIS).- Specified by:
- insertin interface- TSConnection
- Parameters:
- key- Key to insert.
- value- value to insert.
- Throws:
- Exception- If the key is already present in the EIS.
 
- 
deleteDescription copied from interface:TSConnectionDelete the key and value from Test Information System (TSEIS).- Specified by:
- deletein interface- TSConnection
- Parameters:
- key- Key to delete.
- Throws:
- Exception- If the key is not present in the EIS.
 
- 
updateDescription copied from interface:TSConnectionUpdate the key and value in Test Information System (TSEIS).- Specified by:
- updatein interface- TSConnection
- Parameters:
- key- Key to update.
- value- value to update.
- Throws:
- Exception- If the key is not present in the EIS.
 
- 
readDataDescription copied from interface:TSConnectionGet all the data in the TSEis. Only Data is returned. Keys are not.- Specified by:
- readDatain interface- TSConnection
- Returns:
- Vector containing all the data values.
- Throws:
- Exception- If read fails.
 
- 
readValueDescription copied from interface:TSConnectionRead the value for the key.- Specified by:
- readValuein interface- TSConnection
- Parameters:
- key- Key to read.
- Returns:
- String value.
- Throws:
- Exception- If the key is not present in the EIS.
 
- 
setAutoCommitpublic 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 interface- TSConnection
- Parameters:
- flag- True or False
 
- 
getAutoCommitpublic boolean getAutoCommit()Description copied from interface:TSConnectionGet the auto-commt flag value.- Specified by:
- getAutoCommitin interface- TSConnection
- Returns:
- the boolean value indicating auto-commit.
 
- 
commitDescription copied from interface:TSConnectionCommits all the operations.- Specified by:
- commitin interface- TSConnection
- Throws:
- Exception- If commit fails.
 
- 
dropTableDescription copied from interface:TSConnectionDrops all data in the EIS.- Specified by:
- dropTablein interface- TSConnection
- Throws:
- Exception- If there is any exception while droppping.
 
- 
begin- Specified by:
- beginin interface- TSConnection
- Throws:
- Exception
 
- 
rollbackpublic void rollback()Description copied from interface:TSConnectionRolls back all the operations.- Specified by:
- rollbackin interface- TSConnection
 
- 
closeDescription copied from interface:TSConnectionCloses this connection.- Specified by:
- closein interface- TSConnection
- Throws:
- Exception- If close fails.
 
- 
isClosedpublic boolean isClosed()
- 
checkIfValidpublic boolean checkIfValid()
- 
getTempTableDescription copied from interface:TSConnectionGet the data cache of the connection accumulated during a transaction.- Specified by:
- getTempTablein interface- TSConnection
 
 
-