Class EncryptedTable

java.lang.Object
overit.geocall.da.EncryptedTable

public class EncryptedTable extends Object
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 Details

    • EncryptedTable

      public EncryptedTable(String table)
  • Method Details

    • addColumns

      public boolean addColumns(String pool, Collection<String> columns)
      Add a Collection of names of encrypted column. This DAO will be added to set of DAO associated to specific pool name. The name of pool let retrieve from the DAO.Pool annotation.
      Parameters:
      pool - the name of the pool that manages these table's column
      columns - Collection of column names to add
      Returns:
      true if the list of encrypted columns changed as a result of the call
    • getTable

      public String getTable()
      Return the table name
      Returns:
      the name of the table
    • getEncryptedColumns

      public List<String> getEncryptedColumns(String pool)
      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

      public boolean isForPool(String pool)
      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:
      true if exists some column managed by the pool passed as parameter, otherwise false