Class EntryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.termofservice.business.EntryDAO
-
-
Constructor Summary
Constructors Constructor Description EntryDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Optional<Entry>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptional<Entry>loadLastVersion(fr.paris.lutece.portal.service.plugin.Plugin _plugin)Load the data from the tableList<Entry>selectEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the entry objects and returns them as a listList<Entry>selectEntrysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectEntrysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the entry objects and returns them as a referenceListList<Integer>selectIdEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the entry objects and returns them as a listvoidstore(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Optional<Entry> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectEntrysList
public List<Entry> selectEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the entry objects and returns them as a list- Specified by:
selectEntrysListin interfaceIEntryDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the entry objects
-
selectIdEntrysList
public List<Integer> selectIdEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the entry objects and returns them as a list- Specified by:
selectIdEntrysListin interfaceIEntryDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the entry objects
-
selectEntrysReferenceList
public fr.paris.lutece.util.ReferenceList selectEntrysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the entry objects and returns them as a referenceList- Specified by:
selectEntrysReferenceListin interfaceIEntryDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the entry objects
-
selectEntrysListByIds
public List<Entry> selectEntrysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
Load the data of all the avant objects and returns them as a list- Specified by:
selectEntrysListByIdsin interfaceIEntryDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadLastVersion
public Optional<Entry> loadLastVersion(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
Description copied from interface:IEntryDAOLoad the data from the table- Specified by:
loadLastVersionin interfaceIEntryDAO- Returns:
- The instance of the entry
-
-