Class FormResponseStepDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormResponseStepDAO
-
- All Implemented Interfaces:
IFormResponseStepDAO
public final class FormResponseStepDAO extends java.lang.Object implements IFormResponseStepDAO
This class provides Data Access methods for Form objects
-
-
Constructor Summary
Constructors Constructor Description FormResponseStepDAO()
-
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 tablevoiddeleteByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the formResponseStep linked to a given FormResponsevoiddeleteByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes all the formResponseStep linked to a given stepvoidinsert(FormResponseStep formResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.FormResponseStepload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<FormResponseStep>selectFormResponseStepsByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the order steps list by FormResponse idvoidstore(FormResponseStep formResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(FormResponseStep formResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFormResponseStepDAO- Parameters:
formResponseStep- instance of the formResponseStep object to insertplugin- the Plugin
-
load
public FormResponseStep load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFormResponseStepDAO- Parameters:
nKey- The identifier of the FormResponseStepplugin- the Plugin- Returns:
- The instance of the FormResponseStep
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIFormResponseStepDAO- Parameters:
nKey- The identifier of the FormResponseStep to deleteplugin- the Plugin
-
store
public void store(FormResponseStep formResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFormResponseStepDAO- Parameters:
formResponseStep- the reference of the FormResponseStepplugin- the Plugin
-
deleteByFormResponse
public void deleteByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the formResponseStep linked to a given FormResponse- Specified by:
deleteByFormResponsein interfaceIFormResponseStepDAO- Parameters:
nIdFormResponse- The form Identifierplugin- the Plugin
-
deleteByStep
public void deleteByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes all the formResponseStep linked to a given step- Specified by:
deleteByStepin interfaceIFormResponseStepDAO- Parameters:
nIdStep- The step idplugin- the Plugin
-
selectFormResponseStepsByFormResponse
public java.util.List<FormResponseStep> selectFormResponseStepsByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the order steps list by FormResponse id- Specified by:
selectFormResponseStepsByFormResponsein interfaceIFormResponseStepDAO- Parameters:
nIdFormResponse- The identifier of the FormResponseplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponseStep objects
-
-