fr.paris.lutece.plugins.mytasks.business
Interface IMyTaskDAO

All Known Implementing Classes:
MyTaskDAO

public interface IMyTaskDAO

IMyTaskDAO


Method Summary
 void delete(int nIdMyTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteUserMyTask(int nIdMyTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int getNbMyTasks(java.lang.String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the nb of tasks from a given user guid
 void insert(MyTask myTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertUserMyTask(java.lang.String strUserGuid, int nIdMyTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table
 MyTask load(int nIdMyTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<MyTask> selectMyTasksListFromUser(java.lang.String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of MyTask from a given user guid
 void store(MyTask myTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 void undoneMyTasks(java.lang.String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Change every tasks to undone from the given user guid
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

void insert(MyTask myTask,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
myTask - instance of the MyTask object to insert
plugin - the Plugin

store

void store(MyTask myTask,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
myTask - the reference of the MyTask
plugin - the Plugin

delete

void delete(int nIdMyTask,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdMyTask - int identifier of the MyTask to delete
plugin - the Plugin

load

MyTask load(int nIdMyTask,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nIdMyTask - The identifier of the mytask
plugin - the Plugin
Returns:
The instance of the widget

selectMyTasksListFromUser

java.util.List<MyTask> selectMyTasksListFromUser(java.lang.String strUserGuid,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of MyTask from a given user guid

Parameters:
strUserGuid - the user guid
plugin - Plugin
Returns:
a list of MyTask

insertUserMyTask

void insertUserMyTask(java.lang.String strUserGuid,
                      int nIdMyTask,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table

Parameters:
strUserGuid - the user guid
nIdMyTask - the Id of the MyTask
plugin - Plugin

deleteUserMyTask

void deleteUserMyTask(int nIdMyTask,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdMyTask - the Id of the task
plugin - Plugin

undoneMyTasks

void undoneMyTasks(java.lang.String strUserGuid,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Change every tasks to undone from the given user guid

Parameters:
strUserGuid - the user guid
plugin - Plugin

getNbMyTasks

int getNbMyTasks(java.lang.String strUserGuid,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the nb of tasks from a given user guid

Parameters:
strUserGuid - the user guid
plugin - Plugin
Returns:
the nb of tasks


Copyright © 2011 Mairie de Paris. All Rights Reserved.