Class RoleDAO

  • All Implemented Interfaces:
    IRoleDAO

    public final class RoleDAO
    extends Object
    implements IRoleDAO
    This class provides Data Access methods for Role objects
    • Constructor Detail

      • RoleDAO

        public RoleDAO()
    • Method Detail

      • insert

        public void insert​(Role role)
        Insert a new record in the table.
        Specified by:
        insert in interface IRoleDAO
        Parameters:
        role - The Instance of the object Role
      • load

        public Role load​(String strRole)
        load the data of Role from the table
        Specified by:
        load in interface IRoleDAO
        Parameters:
        strRole - The indentifier of the object Role
        Returns:
        The Instance of the object Role
      • delete

        public void delete​(String strRole)
        Delete a record from the table
        Specified by:
        delete in interface IRoleDAO
        Parameters:
        strRole - The indentifier of the object Role
      • store

        public void store​(Role role)
        Update the record in the table
        Specified by:
        store in interface IRoleDAO
        Parameters:
        role - The instance of the Role to update
      • selectRolesList

        public ReferenceList selectRolesList()
        Returns a list of all the right role
        Specified by:
        selectRolesList in interface IRoleDAO
        Returns:
        A ReferenceList of role objects
      • selectAll

        public Collection<Role> selectAll()
        Load the list of roles
        Specified by:
        selectAll in interface IRoleDAO
        Returns:
        The Collection of the Roles