Constructor and Description |
---|
PostDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nPostId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Post post,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Post |
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
|
Collection<Post> |
selectPostsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the post objects and returns them as a collection
|
Collection<Post> |
selectPostsListIdAuteur(int nIdAuteur,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the post objects and returns them as a collection
|
void |
store(Post post,
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(Post post, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Post load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(int nPostId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(Post post, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Collection<Post> selectPostsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPostsList
in interface IPostDAO
plugin
- the Pluginpublic Collection<Post> selectPostsListIdAuteur(int nIdAuteur, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPostsListIdAuteur
in interface IPostDAO
nIdAuteur
- the IdAuteurplugin
- the PluginCopyright © 2016 City of Paris. All rights reserved.