Constructor and Description |
---|
BlogDAO() |
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 |
deleteVersions(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Blog blog,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertVersion(Blog blog,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Blog |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<Blog> |
loadBlogByIdTag(int nIdTag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Blogs objects and returns them as a list
|
Blog |
loadByName(String strName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Blog |
loadVersion(int nId,
int nVersion,
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
|
int |
newVersionPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<Blog> |
selectBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the blog objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectBlogsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the Blog objects and returns them as a referenceList
|
List<Blog> |
selectBlogsVersionsList(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the blog objects and returns them as a list
|
List<Blog> |
selectByFilter(BlogFilter filter)
Load the list of blogs
|
List<Integer> |
selectIdBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the Blog objects and returns them as a list
|
List<Blog> |
selectlastModifiedBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nLimit)
Load the data of nLimit last modified blog objects and returns them as a list
|
List<Blog> |
selectWithoutBinaries(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
store(Blog blog,
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 int newVersionPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Blog blog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void insertVersion(Blog blog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IBlogDAO
insertVersion
in interface IBlogDAO
blog
- instance of the blog object to insertplugin
- the Pluginpublic Blog load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Blog loadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByName
in interface IBlogDAO
plugin
- the Pluginpublic Blog loadVersion(int nId, int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadVersion
in interface IBlogDAO
plugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void deleteVersions(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteVersions
in interface IBlogDAO
nKey
- The identifier of the blog to deleteplugin
- the Pluginpublic void store(Blog blog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Blog> selectBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectBlogsList
in interface IBlogDAO
plugin
- the Pluginpublic List<Blog> selectlastModifiedBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nLimit)
selectlastModifiedBlogsList
in interface IBlogDAO
plugin
- the PluginnLimit
- number of blogumentpublic List<Blog> selectBlogsVersionsList(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectBlogsVersionsList
in interface IBlogDAO
plugin
- the Pluginpublic List<Integer> selectIdBlogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdBlogsList
in interface IBlogDAO
plugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectBlogsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectBlogsReferenceList
in interface IBlogDAO
plugin
- the Pluginpublic List<Blog> selectByFilter(BlogFilter filter)
selectByFilter
in interface IBlogDAO
filter
- The blogFilter Objectpublic List<Blog> loadBlogByIdTag(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadBlogByIdTag
in interface IBlogDAO
plugin
- the Pluginpublic List<Blog> selectWithoutBinaries(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWithoutBinaries
in interface IBlogDAO
Copyright © 2020 City of Paris. All rights reserved.