Class EntrySelectOptionDAO
java.lang.Object
fr.paris.lutece.plugins.quicklinks.business.EntrySelectOptionDAO
- All Implemented Interfaces:
IEntrySelectOptionDAO
@ApplicationScoped
public class EntrySelectOptionDAO
extends Object
implements IEntrySelectOptionDAO
Class EntrySelectDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete theEntrySelectOptionwhose identifier is specified in parameterinsert(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert theEntrySelectOptionload(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of theEntrySelectOptionfrom the tableintnewPrimaryKey(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a newEntryselect(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get a complete list ofEntrySelectOptionselectByEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get a list ofEntrySelectOptionspecified by entry idvoidstore(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update theEntrySelectOption
-
Constructor Details
-
EntrySelectOptionDAO
public EntrySelectOptionDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a newEntry- Parameters:
nIdEntry- identryplugin- ThePluginusing this data access service- Returns:
- The new key.
-
load
public EntrySelectOption load(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of theEntrySelectOptionfrom the table- Specified by:
loadin interfaceIEntrySelectOptionDAO- Parameters:
nId- The identifier of the entry select optionnIdEntry- The identifier of theEntryplugin- the plugin- Returns:
- the instance of the
EntrySelectOption
-
delete
public void delete(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete theEntrySelectOptionwhose identifier is specified in parameter- Specified by:
deletein interfaceIEntrySelectOptionDAO- Parameters:
nId- The identifier of theEntrySelectOptionnIdEntry- The identifier of theEntryplugin- ThePlugin
-
insert
public EntrySelectOption insert(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert theEntrySelectOption- Specified by:
insertin interfaceIEntrySelectOptionDAO- Parameters:
entrySelectOption- TheEntrySelectOptionto insertplugin- ThePlugin- Returns:
- The
EntrySelectOption
-
store
public void store(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update theEntrySelectOption- Specified by:
storein interfaceIEntrySelectOptionDAO- Parameters:
entrySelectOption- TheEntrySelectOptionobjectplugin- ThePlugin
-
select
Get a complete list ofEntrySelectOption- Specified by:
selectin interfaceIEntrySelectOptionDAO- Parameters:
plugin- ThePlugin- Returns:
- A
CollectionofEntrySelectOption
-
selectByEntry
public Collection<EntrySelectOption> selectByEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get a list ofEntrySelectOptionspecified by entry id- Specified by:
selectByEntryin interfaceIEntrySelectOptionDAO- Parameters:
nIdEntry- The entry idplugin- ThePlugin- Returns:
- A
CollectionofEntrySelectOption
-