public interface IActionDAO
| Modifier and Type | Method and Description | 
|---|---|
| void | decrementOrderByOne(int nOrder,
                   int nIdWorkflow)decrements the order of all the next states after the one which will be removed | 
| void | delete(int nIdAction)Delete the action Object | 
| List<Action> | findActionsForOrderInit(int nIdWorkflow)Finds all the actions for the given workflow ordered by id | 
| int | findMaximumOrderByWorkflowId(int nWorkflowId)return the maximum order number of that states in a given workflow | 
| List<Action> | findStatesAfterOrder(int nOrder,
                    int nIdWorkflow)Finds all the actions which have an order greater to a given order | 
| List<Action> | findStatesBetweenOrders(int nOrder1,
                       int nOrder2,
                       int nIdWorkflow)Finds all the actions which have an order lower to a given order | 
| void | insert(Action action)Insert a new record in the table. | 
| void | insertLinkedActions(int nIdAction,
                   int nIdLinkedAction)Create the links between actions | 
| Action | load(int nIdAction)Load the action Object | 
| Action | loadWithIcon(int nIdAction)Load the action Object with icon associated | 
| void | removeLinkedActions(int nIdAction)Remove the links between actions | 
| List<Action> | selectActionsByFilter(ActionFilter filter)select all actions by filter | 
| Collection<Integer> | selectListIdsLinkedAction(int nIdAction)Load the list of IDs linked to the given ID action. | 
| void | store(Action action)update record in the table. | 
void insert(Action action)
action - instance of the Action object to insertvoid store(Action action)
action - instance of the Action object to updateAction load(int nIdAction)
nIdAction - the state idAction loadWithIcon(int nIdAction)
nIdAction - the state idvoid delete(int nIdAction)
nIdAction - the action idList<Action> selectActionsByFilter(ActionFilter filter)
filter - the action filtervoid insertLinkedActions(int nIdAction,
                         int nIdLinkedAction)
nIdAction - the id actionnIdLinkedAction - the id linked actionvoid removeLinkedActions(int nIdAction)
nIdAction - the ID actionCollection<Integer> selectListIdsLinkedAction(int nIdAction)
nIdAction - the ID actionint findMaximumOrderByWorkflowId(int nWorkflowId)
nWorkflowId - the workflow idvoid decrementOrderByOne(int nOrder,
                         int nIdWorkflow)
nOrder - the ordernIdWorkflow - the workflow idList<Action> findStatesBetweenOrders(int nOrder1, int nOrder2, int nIdWorkflow)
nOrder1 - the order 1nOrder2 - the order 2nIdWorkflow - the workflow idList<Action> findStatesAfterOrder(int nOrder, int nIdWorkflow)
nOrder - the ordernIdWorkflow - the workflow idCopyright © 2020 City of Paris. All rights reserved.