Class RBACRoleDAO

  • All Implemented Interfaces:
    IRBACRoleDAO

    public final class RBACRoleDAO
    extends java.lang.Object
    implements IRBACRoleDAO
    This class provides Data Access methods for RBACRole objects
    • Constructor Summary

      Constructors 
      Constructor Description
      RBACRoleDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkExistRole​(java.lang.String strRoleKey)
      Check that the given key points to an existing role
      void delete​(java.lang.String strRoleKey)
      Delete a record from the table
      void insert​(RBACRole role)
      Insert a new record in the table.
      RBACRole load​(java.lang.String strRoleKey)
      Load the data of RBACRole from the table
      java.util.Collection<RBACRole> selectRoleList()
      Load the list of roles
      void store​(java.lang.String strRoleKey, RBACRole role)
      Update the record identified by the given role key with the given role in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.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​(java.lang.String strRoleKey)
        Delete a record from the table
        Specified by:
        delete in interface IRBACRoleDAO
        Parameters:
        strRoleKey - The role key
      • store

        public void store​(java.lang.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
      • selectRoleList

        public java.util.Collection<RBACRole> selectRoleList()
        Load the list of roles
        Specified by:
        selectRoleList in interface IRBACRoleDAO
        Returns:
        The Collection of the Roles
      • checkExistRole

        public boolean checkExistRole​(java.lang.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