Interface IEditorProfileDAO

All Known Implementing Classes:
EditorProfileDAO

public interface IEditorProfileDAO
Data access interface of the editor profiles
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdProfile)
    Deletes a profile and its targets
    void
    Inserts a profile with its targets, and sets its generated identifier
    load(int nIdProfile)
    Loads a profile with its targets
    Loads the profiles with their targets, by editor, then by priority with the default profile of each editor last
    int
    selectMaxPriority(String strEditorName)
     
    void
    Updates a profile and replaces its targets.
    void
    storePriority(int nIdProfile, int nPriority)
    Updates the priority of a profile
  • Method Details

    • insert

      void insert(EditorProfile profile)
      Inserts a profile with its targets, and sets its generated identifier
      Parameters:
      profile - the profile
    • store

      void store(EditorProfile profile)
      Updates a profile and replaces its targets. Its editor is not changed.
      Parameters:
      profile - the profile
    • delete

      void delete(int nIdProfile)
      Deletes a profile and its targets
      Parameters:
      nIdProfile - the identifier of the profile
    • load

      EditorProfile load(int nIdProfile)
      Loads a profile with its targets
      Parameters:
      nIdProfile - the identifier of the profile
      Returns:
      the profile, null if it does not exist
    • selectAll

      List<EditorProfile> selectAll()
      Loads the profiles with their targets, by editor, then by priority with the default profile of each editor last
      Returns:
      the profiles
    • storePriority

      void storePriority(int nIdProfile, int nPriority)
      Updates the priority of a profile
      Parameters:
      nIdProfile - the identifier of the profile
      nPriority - the priority
    • selectMaxPriority

      int selectMaxPriority(String strEditorName)
      Parameters:
      strEditorName - the name of an editor
      Returns:
      the highest priority of the profiles of the editor, 0 when there are none