Interface IEntryDAO
- All Known Implementing Classes:
EntryDAO
public interface IEntryDAO
IEntryDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementOrderByOne(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType) Decrements the order of all the entries (conditional questions) after the one which will be removedvoiddelete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByOrderAndIdFieldAndIdResource(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType) Finds the entry (conditional question) with a given order, idDependField and the id of the resourcefindEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdResource, String strResourceType) Finds all the entries without any parent associated to a given resourcefindEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdForm) getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdEntry, int nIdResponse) intInsert a new record in the table.load(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the entry from the tableloadMultiple(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the entry from the tableselectEntryListByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the entry who verify the filter and returns them in a listintselectNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the number of entry who verify the filtervoidUpdate the entry in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
entry- instance of the Entry object to insertplugin- the plugin- Returns:
- the id of the new entry
-
store
Update the entry in the table- Parameters:
entry- instance of the Entry object to updateplugin- the plugin
-
delete
void delete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdEntry- The identifier of the entryplugin- the plugin
-
load
Load the data of the entry from the table- Parameters:
nIdEntry- The identifier of the entryplugin- the plugin- Returns:
- the instance of the Entry
-
loadMultiple
Load the data of the entry from the table- Parameters:
idList- The identifiers of the entriesplugin- the plugin- Returns:
- the instance of the Entry
-
selectEntryListByFilter
List<Entry> selectEntryListByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the entry who verify the filter and returns them in a list- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of entry
-
selectNumberEntryByFilter
int selectNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the number of entry who verify the filter- Parameters:
filter- the filterplugin- the plugin- Returns:
- the number of entry who verify the filter
-
findEntriesWithoutParent
List<Entry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdResource, String strResourceType) Finds all the entries without any parent associated to a given resource- Parameters:
plugin- the pluginnIdResource- the id of the resourcestrResourceType- the resource type- Returns:
- the list of all the entries without parent
-
findByOrderAndIdFieldAndIdResource
Entry findByOrderAndIdFieldAndIdResource(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType) Finds the entry (conditional question) with a given order, idDependField and the id of the resource- Parameters:
plugin- the pluginnOrder- the ordernIdField- the id of the fieldnIdResource- the id of the resourcestrResourceType- The resource type of the entry to get- Returns:
- the list of all the entries without parent
-
decrementOrderByOne
void decrementOrderByOne(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType) Decrements the order of all the entries (conditional questions) after the one which will be removed- Parameters:
plugin- The pluginnOrder- the order of the entry which will be removednIdField- the id of the fieldnIdResource- the id of the resourcestrResourceType- The resource type
-
findEntryByForm
Map<Integer,String> findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdForm) - Parameters:
plugin- The pluginnIdForm- if form- Returns:
-
getEntryValueByIdResponse
String getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdEntry, int nIdResponse) - Parameters:
plugin- the pluginnIdEntry- id entrynIdResponse- id entry response- Returns:
- entry value
-