public interface IEntryDAO
Modifier and Type | Method and Description |
---|---|
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
|
void |
delete(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
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
|
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
|
Map<Integer,String> |
findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdForm) |
String |
getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdEntry,
int nIdResponse) |
int |
insert(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Entry |
load(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the entry from the table
|
List<Entry> |
loadMultiple(List<Integer> idList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the entry from the table
|
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
|
int |
selectNumberEntryByFilter(EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of entry who verify the filter
|
void |
store(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the entry in the table
|
int insert(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry
- instance of the Entry object to insertplugin
- the pluginvoid store(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry
- instance of the Entry object to updateplugin
- the pluginvoid delete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdEntry
- The identifier of the entryplugin
- the pluginEntry load(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdEntry
- The identifier of the entryplugin
- the pluginList<Entry> loadMultiple(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
idList
- The identifiers of the entriesplugin
- the pluginList<Entry> selectEntryListByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginint selectNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginList<Entry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdResource, String strResourceType)
plugin
- the pluginnIdResource
- the id of the resourcestrResourceType
- the resource typeEntry findByOrderAndIdFieldAndIdResource(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType)
plugin
- the pluginnOrder
- the ordernIdField
- the id of the fieldnIdResource
- the id of the resourcestrResourceType
- The resource type of the entry to getvoid decrementOrderByOne(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType)
plugin
- The pluginnOrder
- the order of the entry which will be removednIdField
- the id of the fieldnIdResource
- the id of the resourcestrResourceType
- The resource typeMap<Integer,String> findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdForm)
plugin
- The pluginnIdForm
- if formString getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdEntry, int nIdResponse)
plugin
- the pluginnIdEntry
- id entrynIdResponse
- id entry responseCopyright © 2020 City of Paris. All rights reserved.