Class EntryDAO
java.lang.Object
fr.paris.lutece.plugins.termofservice.business.EntryDAO
- All Implemented Interfaces:
IEntryDAO
This class provides Data Access methods for Entry objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadLastVersion(fr.paris.lutece.portal.service.plugin.Plugin _plugin) Load the data from the tableloadPublishedEntry(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the published entryvoidpublish(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Publish an entryselectEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the entry objects and returns them as a listselectEntrysListByIds(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 referenceListselectIdEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the entry objects and returns them as a listvoidUpdate the record in the tablevoidunpublishAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Unpublish all entries
-
Constructor Details
-
EntryDAO
public EntryDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
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
Update the record in the table -
selectEntrysList
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
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
Description copied from interface:IEntryDAOLoad the data from the table- Specified by:
loadLastVersionin interfaceIEntryDAO- Returns:
- The instance of the entry
-
publish
public void publish(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IEntryDAOPublish an entry -
unpublishAll
public void unpublishAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IEntryDAOUnpublish all entries- Specified by:
unpublishAllin interfaceIEntryDAO- Parameters:
plugin- the Plugin
-
loadPublishedEntry
Description copied from interface:IEntryDAOLoad the published entry- Specified by:
loadPublishedEntryin interfaceIEntryDAO- Parameters:
plugin- the Plugin- Returns:
- The instance of the published entry
-