Interface IEditorProfileDAO
- All Known Implementing Classes:
EditorProfileDAO
public interface IEditorProfileDAO
Data access interface of the editor profiles
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdProfile) Deletes a profile and its targetsvoidinsert(EditorProfile profile) Inserts a profile with its targets, and sets its generated identifierload(int nIdProfile) Loads a profile with its targetsLoads the profiles with their targets, by editor, then by priority with the default profile of each editor lastintselectMaxPriority(String strEditorName) voidstore(EditorProfile profile) Updates a profile and replaces its targets.voidstorePriority(int nIdProfile, int nPriority) Updates the priority of a profile
-
Method Details
-
insert
Inserts a profile with its targets, and sets its generated identifier- Parameters:
profile- the profile
-
store
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
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 profilenPriority- the priority
-
selectMaxPriority
- Parameters:
strEditorName- the name of an editor- Returns:
- the highest priority of the profiles of the editor, 0 when there are none
-