Class TemplateDisplayDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.business.TemplateDisplayDAO
-
- All Implemented Interfaces:
ITemplateFormDisplayDAO
public final class TemplateDisplayDAO extends Object implements ITemplateFormDisplayDAO
This class provides Data Access methods for Form objects
-
-
Constructor Summary
Constructors Constructor Description TemplateDisplayDAO()
-
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(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.fr.paris.lutece.plugins.forms.business.FormDisplayload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablefr.paris.lutece.plugins.forms.business.FormDisplayselectFormDisplayByStepAndComposite(int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the FormDisplay associated to the given parameterList<fr.paris.lutece.plugins.forms.business.FormDisplay>selectFormDisplayListByParent(int nIdTemplate, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormDisplay objects by parent for a form step and returns them as a listList<fr.paris.lutece.plugins.forms.business.FormDisplay>selectFormDisplayListByTemplate(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the FormDisplay associated to the given parametersfr.paris.lutece.util.ReferenceListselectGroupDisplayReferenceListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceListvoidstore(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.- Specified by:
insertin interfaceITemplateFormDisplayDAO- Parameters:
templateDisplay- instance of the FormDisplay object to insertplugin- the Plugin
-
load
public fr.paris.lutece.plugins.forms.business.FormDisplay load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table- Specified by:
loadin interfaceITemplateFormDisplayDAO- Parameters:
nKey- The identifier of the FormDisplayplugin- the Plugin- Returns:
- The instance of the FormDisplay
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITemplateFormDisplayDAO- Parameters:
nKey- The identifier of the FormDisplay to deleteplugin- the Plugin
-
selectGroupDisplayReferenceListByStep
public fr.paris.lutece.util.ReferenceList selectGroupDisplayReferenceListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ITemplateFormDisplayDAOLoad the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList- Specified by:
selectGroupDisplayReferenceListByStepin interfaceITemplateFormDisplayDAO- Parameters:
nIdStep- the step identifierplugin- the plugin to use- Returns:
- the referenceList which contains the data of all the Display objects of group type
-
store
public void store(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ITemplateFormDisplayDAOUpdate the record in the table- Specified by:
storein interfaceITemplateFormDisplayDAO- Parameters:
templateDisplay- the reference of the FormDisplayplugin- the Plugin
-
selectFormDisplayListByParent
public List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByParent(int nIdTemplate, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormDisplay objects by parent for a form step and returns them as a list- Specified by:
selectFormDisplayListByParentin interfaceITemplateFormDisplayDAO- Parameters:
nIdTemplate- the template idnIdParent- the parent idplugin- the plugin to use- Returns:
- The list which contains the data of all the FormDisplay objects
-
selectFormDisplayByStepAndComposite
public fr.paris.lutece.plugins.forms.business.FormDisplay selectFormDisplayByStepAndComposite(int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ITemplateFormDisplayDAOSelect the FormDisplay associated to the given parameter- Specified by:
selectFormDisplayByStepAndCompositein interfaceITemplateFormDisplayDAO- Parameters:
nIdStep- The identifier of the Step to matchnIdComposite- The identifier of the Composite to matchplugin- The plugin to use to execute the query- Returns:
- the FormDisplay associated to the given parameter
-
selectFormDisplayListByTemplate
public List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByTemplate(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemplateFormDisplayDAOReturn the FormDisplay associated to the given parameters- Specified by:
selectFormDisplayListByTemplatein interfaceITemplateFormDisplayDAO- Parameters:
nIdTemplate- The identifier of the template to match- Returns:
- the formDisplay associated to the given parameters
-
-