Package overit.geocall.da
Class EncryptedTable
java.lang.Object
overit.geocall.da.EncryptedTable
This class reference all the encrypted columns of a single database table. It allows to retrieve the list of encrypted
columns associated to specific pool, or the list of
DAO with encrypted column reference and associated to specific
pool.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddColumns(String pool, Collection<String> columns) Add aCollectionof names of encrypted column.getEncryptedColumns(String pool) Retrieve the set of column names that reference this table and use the pool passed as parameter.getTable()Return the table namebooleanCheck if this table contains some encrypted columns used by the pool passed as parameter
-
Constructor Details
-
EncryptedTable
-
-
Method Details
-
addColumns
Add aCollectionof names of encrypted column. ThisDAOwill be added to set ofDAOassociated to specific pool name. The name of pool let retrieve from theDAO.Poolannotation.- Parameters:
pool- the name of the pool that manages these table's columncolumns-Collectionof column names to add- Returns:
trueif the list of encrypted columns changed as a result of the call
-
getTable
Return the table name- Returns:
- the name of the table
-
getEncryptedColumns
Retrieve the set of column names that reference this table and use the pool passed as parameter.- Parameters:
pool- the name of the pool- Returns:
- set of column names that use the pool passed as parameter
-
isForPool
Check if this table contains some encrypted columns used by the pool passed as parameter- Parameters:
pool- The name of the parameter to use for the check- Returns:
trueif exists some column managed by the pool passed as parameter, otherwisefalse
-