Class RBACRoleDAO

  • All Implemented Interfaces:
    IRBACRoleDAO

    public final class RBACRoleDAO
    extends Object
    implements IRBACRoleDAO
    This class provides Data Access methods for RBACRole objects
    • Constructor Detail

      • RBACRoleDAO

        public RBACRoleDAO()
    • Method Detail

      • insert

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

        public RBACRole load​(String strRoleKey)
        Load the data of RBACRole from the table
        Specified by:
        load in interface IRBACRoleDAO
        Parameters:
        strRoleKey - The identifier of RBACRole
        Returns:
        the instance of the RBACRole
      • delete

        public void delete​(String strRoleKey)
        Delete a record from the table
        Specified by:
        delete in interface IRBACRoleDAO
        Parameters:
        strRoleKey - The role key
      • store

        public void store​(String strRoleKey,
                          RBACRole role)
        Update the record identified by the given role key with the given role in the table
        Specified by:
        store in interface IRBACRoleDAO
        Parameters:
        strRoleKey - the key of the role to modify
        role - The reference of role to be the new one
      • checkExistRole

        public boolean checkExistRole​(String strRoleKey)
        Check that the given key points to an existing role
        Specified by:
        checkExistRole in interface IRBACRoleDAO
        Parameters:
        strRoleKey - the role key
        Returns:
        true if the role exists, false otherwise