Class DAOAllUsers

java.lang.Object
overit.geocall.da.DAO
overit.geocall.basic.bl.user.da.DAOAllUsers
All Implemented Interfaces:
Serializable, DataAttributesHolder, EDMConfigurableBean, overit.geocall.marks.FieldExposer, overit.geocall.marks.NameExposer, DBFieldMapper, DBObjectMapper, Tool

@Pool("Pool") @Table("AUSER") @Pk("AUSEID") @Sequence("AUSEID") public class DAOAllUsers extends DAO
This DAO represents a tool to interacts with the users table on the db.
This DAO works with all the application's user and doesn't make a segregation by the current company.
See Also:
  • Constructor Details

    • DAOAllUsers

      public DAOAllUsers()
  • Method Details

    • getFilterCriterion

      protected Criterion getFilterCriterion(CommandContext cc)
      Description copied from class: DAO
      Method to extend to go to introduce the inferential rules with which to deduce the SQL automatically based on the context passed as a parameter.
      Overrides:
      getFilterCriterion in class DAO
      Parameters:
      cc - The CommandContext associated to the DAO
      Returns:
      The Criterion used to create the SQL By default the method returns the Criteria.SEARCH_STRONG for the commands that refers to key fields and the Criteria.SEARCH for all the other commands.
    • command

      public int command(CommandContext cc, PoolKit pk) throws DAException, DAValidateException
      Description copied from class: DAO
      Executes the command defined by the CommandContext passed as parameter
      Overrides:
      command in class DAO
      Parameters:
      cc - The CommandContext associated to the DAO;
      pk - The PoolKit used to connect to the database;
      Returns:
      The number of records that have been entered, modified or deleted
      Throws:
      DAException - If there is a (blocking) data-access error, a DAException must be thrown
      DAValidateException - If there are error in the validation phase, a DAValidateException must be thrown