public final class MyTaskHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static MyTask |
create(MyTask myTask)
Create an instance of the MyTask class
|
static void |
createUserMyTask(String strUserGuid,
int nIdMyTask)
Insert a new record in the table
|
static MyTask |
findByPrimaryKey(int nIdMyTask)
Returns an instance of a MyTask whose identifier is specified in parameter
|
static int |
getNbMyTasks(String strUserGuid)
Get the nb of tasks from a given user guid
|
static int |
newPrimaryKey()
Generates a new primary key
|
static void |
remove(int nIdMyTask)
Remove the widget whose identifier is specified in parameter
|
static void |
removeUserMyTask(int nIdMyTask)
Delete a record from the table
|
static List<MyTask> |
selectMyTasksListFromUser(String strUserGuid)
Load the list of MyTask from a given user guid
|
static void |
undoneMyTasks(String strUserGuid)
Change every tasks to undone from the given user guid
|
static MyTask |
update(MyTask myTask)
Update of the widget which is specified in parameter
|
public static int newPrimaryKey()
public static MyTask create(MyTask myTask)
myTask - The instance of the MyTask which contains the informations to storepublic static MyTask update(MyTask myTask)
myTask - The instance of the MyTask which contains the data to storepublic static void remove(int nIdMyTask)
nIdMyTask - The Id of the taskpublic static MyTask findByPrimaryKey(int nIdMyTask)
nIdMyTask - The MyTask primary keypublic static List<MyTask> selectMyTasksListFromUser(String strUserGuid)
strUserGuid - the user guidMyTaskpublic static void createUserMyTask(String strUserGuid, int nIdMyTask)
strUserGuid - the user guidnIdMyTask - the Id of the MyTaskpublic static void removeUserMyTask(int nIdMyTask)
nIdMyTask - the Id of the taskpublic static void undoneMyTasks(String strUserGuid)
strUserGuid - the user guidpublic static int getNbMyTasks(String strUserGuid)
strUserGuid - the user guidCopyright © 2017 City of Paris. All rights reserved.