| Constructor and Description |
|---|
EntryDAO() |
| 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 nId,
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
|
public int insert(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Entry load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Entry> selectEntryListByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectEntryListByFilter in interface IEntryDAOfilter - the filterplugin - the pluginpublic int selectNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNumberEntryByFilter in interface IEntryDAOfilter - the filterplugin - the pluginpublic List<Entry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdResource, String strResourceType)
findEntriesWithoutParent in interface IEntryDAOplugin - the pluginnIdResource - the id of the resourcestrResourceType - the resource typepublic Entry findByOrderAndIdFieldAndIdResource(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nOrder, int nIdField, int nIdResource, String strResourceType)
findByOrderAndIdFieldAndIdResource in interface IEntryDAOplugin - the pluginnOrder - the ordernIdField - the id of the fieldnIdResource - the id of the resourcestrResourceType - The resource type of the entry to getpublic void decrementOrderByOne(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nOrder,
int nIdField,
int nIdResource,
String strResourceType)
decrementOrderByOne in interface IEntryDAOplugin - The pluginnOrder - the order of the entry which will be removednIdField - the id of the fieldnIdResource - the id of the resourcestrResourceType - The resource typepublic Map<Integer,String> findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdForm)
findEntryByForm in interface IEntryDAOplugin - The pluginnIdForm - if formpublic String getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdEntry, int nIdResponse)
getEntryValueByIdResponse in interface IEntryDAOplugin - the pluginnIdEntry - id entrynIdResponse - id entry responseCopyright © 2016 City of Paris. All rights reserved.