public interface ITaskDAO
Modifier and Type | Method and Description |
---|---|
void |
decrementOrderByOne(int nOrder,
int nIdAction)
decrements the order of all the next tasks after the one which will be removed
|
void |
delete(int nIdTask)
Delete the task Object
|
int |
findMaximumOrderByActionId(int nIdAction)
return the maximum order number of the tasks in a given workflow
|
List<ITask> |
findTasksAfterOrder(int nOrder,
int nIdAction,
Locale locale)
Finds all the tasks which have an order greater to a given order
|
List<ITask> |
findTasksBetweenOrders(int nOrder1,
int nOrder2,
int nIdAction,
Locale locale)
Finds all the tasks which have an order lower to a given order
|
List<ITask> |
findTasksForOrderInit(int nIdAction,
Locale locale)
Finds all the tasks for the given action ordered by id
|
void |
insert(ITask task)
Insert a new record in the table.
|
ITask |
load(int nIdTask,
Locale locale)
Load the task Object
|
List<ITask> |
selectTaskByIdAction(int nIdAction,
Locale locale)
select all task associated width the action specified in parameter
|
void |
store(ITask task)
update record in the table.
|
void insert(ITask task)
task
- instance of the Task object to insertvoid store(ITask task)
task
- instance of the task object to updateITask load(int nIdTask, Locale locale)
nIdTask
- the task idlocale
- the localevoid delete(int nIdTask)
nIdTask
- the task idList<ITask> selectTaskByIdAction(int nIdAction, Locale locale)
nIdAction
- the action idlocale
- the localeint findMaximumOrderByActionId(int nIdAction)
nIdAction
- the action idvoid decrementOrderByOne(int nOrder, int nIdAction)
nOrder
- the order idnIdAction
- the action idList<ITask> findTasksBetweenOrders(int nOrder1, int nOrder2, int nIdAction, Locale locale)
nOrder1
- the order 1nOrder2
- the order 2nIdAction
- the action idlocale
- the localeList<ITask> findTasksAfterOrder(int nOrder, int nIdAction, Locale locale)
nOrder
- the ordernIdAction
- the action idlocale
- the localeCopyright © 2020 City of Paris. All rights reserved.