|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.genericattributes.business.EntryDAO
public final class EntryDAO
This class provides Data Access methods for Entry objects
| Constructor Summary | |
|---|---|
EntryDAO()
|
|
| Method Summary | |
|---|---|
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 |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntryDAO()
| Method Detail |
|---|
public int insert(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IEntryDAOentry - instance of the Entry object to insertplugin - the plugin
public Entry load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IEntryDAOnId - The identifier of the entryplugin - the plugin
public void delete(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IEntryDAOnIdEntry - The identifier of the entryplugin - the plugin
public void store(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IEntryDAOentry - instance of the Entry object to updateplugin - the plugin
public List<Entry> selectEntryListByFilter(EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectEntryListByFilter in interface IEntryDAOfilter - the filterplugin - the plugin
public int selectNumberEntryByFilter(EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNumberEntryByFilter in interface IEntryDAOfilter - the filterplugin - the plugin
public 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 type
public 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 get
public 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 type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||