Class FormResponseStepDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormResponseStepDAO
- All Implemented Interfaces:
IFormResponseStepDAO
This class provides Data Access methods for Form objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectFormResponseStepsByFormResponse(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
-
Constructor Details
-
FormResponseStepDAO
public FormResponseStepDAO()
-
-
Method Details
-
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
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 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
-