Class TorqueDynamicUserManagerImpl

All Implemented Interfaces:
Serializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, UserManager

public class TorqueDynamicUserManagerImpl extends TorqueAbstractUserManager
This implementation persists to a database via Torque.
Version:
$Id:$
Author:
Thomas Vandahl
See Also:
  • Constructor Details

    • TorqueDynamicUserManagerImpl

      public TorqueDynamicUserManagerImpl()
  • Method Details

    • doSelectAllUsers

      protected <T extends User> List<T> doSelectAllUsers(Connection con) throws org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractUserManager
      Get all specialized Users
      Specified by:
      doSelectAllUsers in class TorqueAbstractUserManager
      Parameters:
      con - a database connection
      Returns:
      a List of User instances
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • doSelectUsers

      protected <T extends User> List<T> doSelectUsers(Connection con, org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractUserManager
      Get filtered specialized Users
      Specified by:
      doSelectUsers in class TorqueAbstractUserManager
      Parameters:
      con - a database connection
      criteria - the criteria filter
      Returns:
      a List of User instances
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • doSelectById

      protected <T extends User> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractUserManager
      Get a specialized User by id
      Specified by:
      doSelectById in class TorqueAbstractUserManager
      Parameters:
      id - the id of the group
      con - a database connection
      Returns:
      a User instance
      Throws:
      org.apache.torque.NoRowsException - if no such group exists
      org.apache.torque.TooManyRowsException - if multiple groups with the given id exist
      org.apache.torque.TorqueException - if any database error occurs if any other database error occurs
    • doSelectByName

      protected <T extends User> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractUserManager
      Get a specialized User by name
      Specified by:
      doSelectByName in class TorqueAbstractUserManager
      Parameters:
      name - the name of the group
      con - a database connection
      Returns:
      a User instance
      Throws:
      org.apache.torque.NoRowsException - if no such group exists
      org.apache.torque.TooManyRowsException - if multiple groups with the given name exist
      org.apache.torque.TorqueException - if any database error occurs if any other database error occurs