public final class ProjectDAO extends Object implements IProjectDAO
Constructor and Description |
---|
ProjectDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Project project,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Project |
load(int nKey,
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
|
List<Integer> |
selectIdProjectsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the project objects and returns them as a list
|
List<Project> |
selectProjectsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the project objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectProjectsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the project objects and returns them as a referenceList
|
void |
store(Project project,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Project project, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IProjectDAO
project
- instance of the Project object to insertplugin
- the Pluginpublic Project load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IProjectDAO
nKey
- The identifier of the projectplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IProjectDAO
nKey
- The identifier of the Project to deleteplugin
- the Pluginpublic void store(Project project, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IProjectDAO
project
- the reference of the Projectplugin
- the Pluginpublic List<Project> selectProjectsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProjectsList
in interface IProjectDAO
plugin
- the Pluginpublic List<Integer> selectIdProjectsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdProjectsList
in interface IProjectDAO
plugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectProjectsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProjectsReferenceList
in interface IProjectDAO
plugin
- the PluginCopyright © 2020 City of Paris. All rights reserved.