com.eruces.teagent.TEAgentResultSet
The TEAgentResultSet class encrypts and decrypts resultset data.
Inheritance
- Inherits com.eruces.teagent.TEAgent
Public Member Functions
| Member | Description |
|---|---|
TEAgentResultSet(short nType) | The TEAgentResultSet constructor specifies an operation type. |
TEAgentResultSet(short nType, TEAgentConnection conn) | The TEAgentResultSet constructor constructs an object with an operation type and an open connection. |
synchronized void reset() | The reset method resets an object. |
void setType(short nType) | The setType method sets the type of operation to be performed. |
short getType() | The getType method gets information about the type of operation to be performed. |
void setServerDB(String strServerName, String strDBName) | The setServerDB method sets the names of a database and a database server. |
String getServer() | The getServer method gets the name of a database server. |
String getDatabase() | The getDatabase method gets the name of a database. |
void attachPolicy(ResultSetPolicy policy) | The attachPolicy method attaches an encryption/decryption policy. |
void removePolicy() | The removePolicy method detaches an encryption policy. |
void setTableAndOwner(String strTabName, String strTabOwner) | The setTableAndOwner method sets the names of a database table and the table's owner. |
String getTableName() | The getTableName method gets the name of a database table. |
String getHiddenLinkColumnName() | The getHiddenLinkColumnName method gets the name of the column containing a TTag. |
void setHiddenLinkColumnName(String strName) | The setHIddenLinkColumnName method sets the name of the column that will contain the TTag. |
void setDataSet(ResultSet dataset) | The setDataSet method sets a resultset to be encrypted or decrypted. |
ResultSet getDataSet() | The getDataSet method gets a resultset. |
synchronized void encrypt() | The encrypt method encrypts data in a resultset. |
synchronized void decrypt() | The decrypt method decrypts data in a resultset. |
Member Function Documentation
TEAgentResultSet(short nType)
The TEAgentResultSet constructor specifies an operation type.
Parameters
| Parameter | Description |
|---|---|
nType | A short variable representing the type of operation to be performed, either encryption or decryption. |
TEAgentResultSet(short nType, TEAgentConnection conn)
The TEAgentResultSet constructor constructs an object with an operation type and an open connection.
Parameters
| Parameter | Description |
|---|---|
nType | A short variable representing the type of operation to be performed, either encryption or decryption. |
conn | A TEAgentConnection object. |
synchronized void reset()
The reset method resets an object.
Remark: Overrides the reset method in the TEAgent class.
void setType(short nType)
The setType method sets the type of operation to be performed.
Parameters
| Parameter | Description |
|---|---|
nType | A short variable representing the type of operation to be performed, either encryption or decryption. |
short getType()
The getType method gets information about the type of operation to be performed.
Returns: Returns a short variable representing the type of operation to be performed, either encryption or decryption.
void setServerDB(String strServerName, String strDBName)
The setServerDB method sets the names of a database and a database server.
Parameters
| Parameter | Description |
|---|---|
strServerName | A string representing the name of a database server. |
strDBName | A string representing the name of a database. |
String getServer()
The getServer method gets the name of a database server.
Returns: Returns a string representing a database server name.
String getDatabase()
The getDatabase method gets the name of a database.
Returns: Returns a string representing a database name.
void attachPolicy(ResultSetPolicy policy)
The attachPolicy method attaches an encryption/decryption policy.
Parameters
| Parameter | Description |
|---|---|
policy | An encryption/decryption policy. |
void removePolicy()
The removePolicy method detaches an encryption policy.
void setTableAndOwner(String strTabName, String strTabOwner)
The setTableAndOwner method sets the names of a database table and the table's owner.
Parameters
| Parameter | Description |
|---|---|
strTabName | A string representing the name of a database table. |
strTabOwner | A string representing the name of a database table owner. |
String getTableName()
The getTableName method gets the name of a database table.
Returns: Returns a string representing the name of a database table.
String getHiddenLinkColumnName()
The getHiddenLinkColumnName method gets the name of the column containing a TTag.
Returns: Returns a string representing the name of the column containing a TTag.
void setHiddenLinkColumnName(String strName)
The setHIddenLinkColumnName method sets the name of the column that will contain the TTag.
Parameters
| Parameter | Description |
|---|---|
strName | A string representing a column name. |
void setDataSet(ResultSet dataset)
The setDataSet method sets a resultset to be encrypted or decrypted.
Parameters
| Parameter | Description |
|---|---|
dataset | A resultset to be encrypted or decrypted. |
ResultSet getDataSet()
The getDataSet method gets a resultset.
Returns: Returns a resultset.
synchronized void encrypt()
The encrypt method encrypts data in a resultset.
Remark: Overrides the encrypt method in the TEAgent class.
synchronized void decrypt()
The decrypt method decrypts data in a resultset.
Remark: Overrides the decrypt method in the TEAgent class.