Class OptionalQuestionIndexationDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.elasticdata.modules.forms.business.OptionalQuestionIndexationDAO
-
- All Implemented Interfaces:
IOptionalQuestionIndexationDAO
public final class OptionalQuestionIndexationDAO extends java.lang.Object implements IOptionalQuestionIndexationDAO
This class provides Data Access methods for OptionalQuestionIndexation objects
-
-
Constructor Summary
Constructors Constructor Description OptionalQuestionIndexationDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.OptionalQuestionIndexationload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptionalQuestionIndexationloadByQuestionId(int nQuestionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.Integer>selectIdOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the optionalQuestionIndexation objects and returns them as a listjava.util.List<OptionalQuestionIndexation>selectOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the optionalQuestionIndexation objects and returns them as a listjava.util.List<OptionalQuestionIndexation>selectOptionalQuestionIndexationsListByFormId(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the optionalQuestionIndexation objects by form id and returns them as a listvoidstore(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIOptionalQuestionIndexationDAO- Parameters:
optionalQuestionIndexation- instance of the OptionalQuestionIndexation object to insertplugin- the Plugin
-
load
public OptionalQuestionIndexation load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIOptionalQuestionIndexationDAO- Parameters:
nKey- The identifier of the optionalQuestionIndexationplugin- the Plugin- Returns:
- The instance of the optionalQuestionIndexation
-
loadByQuestionId
public OptionalQuestionIndexation loadByQuestionId(int nQuestionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByQuestionIdin interfaceIOptionalQuestionIndexationDAO- Parameters:
nQuestionId- The identifier of the questionplugin- the Plugin- Returns:
- The instance of the optionalQuestionIndexation
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIOptionalQuestionIndexationDAO- Parameters:
nKey- The identifier of the OptionalQuestionIndexation to deleteplugin- the Plugin
-
store
public void store(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIOptionalQuestionIndexationDAO- Parameters:
optionalQuestionIndexation- the reference of the OptionalQuestionIndexationplugin- the Plugin
-
selectOptionalQuestionIndexationsList
public java.util.List<OptionalQuestionIndexation> selectOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the optionalQuestionIndexation objects and returns them as a list- Specified by:
selectOptionalQuestionIndexationsListin interfaceIOptionalQuestionIndexationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the optionalQuestionIndexation objects
-
selectOptionalQuestionIndexationsListByFormId
public java.util.List<OptionalQuestionIndexation> selectOptionalQuestionIndexationsListByFormId(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the optionalQuestionIndexation objects by form id and returns them as a list- Specified by:
selectOptionalQuestionIndexationsListByFormIdin interfaceIOptionalQuestionIndexationDAOplugin- the Plugin- Returns:
- The list which contains the data of all the optionalQuestionIndexation objects
-
selectIdOptionalQuestionIndexationsList
public java.util.List<java.lang.Integer> selectIdOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the optionalQuestionIndexation objects and returns them as a list- Specified by:
selectIdOptionalQuestionIndexationsListin interfaceIOptionalQuestionIndexationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the optionalQuestionIndexation objects
-
-