public final class NoticeDAO extends Object implements INoticeDAO
Constructor and Description |
---|
NoticeDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdNotice,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
fr.paris.lutece.util.ReferenceList |
getEnableNoticeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all enable notice returns them in a reference list
|
List<Notice> |
getNoticeByIdForm(String strIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of the Notice from the table
|
fr.paris.lutece.util.ReferenceList |
getNoticeByTitle(String strTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of the Notice from the table
|
int |
insert(Notice notice,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
boolean |
isEnable(Notice notice,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns true if is enable false otherwise
|
Notice |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Notice from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
int |
selectMaxOrderByNoticeGroup(int nIdNoticeGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects the last order for the group
|
List<Notice> |
selectNoticeList(NoticeFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the notice who verify the filter and returns them in a list
|
void |
store(Notice notice,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the notice in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginpublic int selectMaxOrderByNoticeGroup(int nIdNoticeGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxOrderByNoticeGroup
in interface INoticeDAO
nIdNoticeGroup
- notice group idplugin
- the plugin0
otherwise.public int insert(Notice notice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface INoticeDAO
notice
- instance of the Notice to insertplugin
- the pluginpublic Notice load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface INoticeDAO
nId
- The identifier of the noticeplugin
- the pluginpublic void delete(int nIdNotice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface INoticeDAO
nIdNotice
- The identifier of the noticeplugin
- the pluginpublic void store(Notice notice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface INoticeDAO
notice
- instance of the Notice object to updateplugin
- the pluginpublic List<Notice> selectNoticeList(NoticeFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNoticeList
in interface INoticeDAO
filter
- the filterplugin
- the pluginpublic fr.paris.lutece.util.ReferenceList getEnableNoticeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getEnableNoticeList
in interface INoticeDAO
plugin
- the pluginpublic fr.paris.lutece.util.ReferenceList getNoticeByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNoticeByTitle
in interface INoticeDAO
strTitle
- The title of the noticeplugin
- the pluginpublic List<Notice> getNoticeByIdForm(String strIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNoticeByIdForm
in interface INoticeDAO
strIdForm
- The string of the noticeplugin
- the pluginpublic boolean isEnable(Notice notice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isEnable
in interface INoticeDAO
notice
- The noticeplugin
- the PluginCopyright © 2016 Mairie de Paris. All Rights Reserved.