public final class ControlDAO extends Object implements IControlDAO
| Constructor and Description |
|---|
ControlDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteByControlTarget(int nIdControlTarget,
ControlType controlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table by the control target
|
void |
deleteControlQuestion(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteControlQuestionValue(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Control control,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insert(int nIdControl,
int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insert(int nIdControl,
int nIdQuestion,
String strValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Control |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Set<Integer> |
loadIdQuestions(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<Control> |
selectControlByControlTargetAndType(int nIdControlTarget,
ControlType controlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a control for conditional display based on its attached display id
|
List<Control> |
selectControlByQuestion(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select control list based on its attached question and control type
|
List<Control> |
selectControlByQuestionAndType(int nIdQuestion,
String strControlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select control list based on its attached question and control type
|
List<Control> |
selectControlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the control objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectControlsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the control objects and returns them as a referenceList
|
List<Integer> |
selectIdControlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the control objects and returns them as a list
|
List<ControlMapping> |
selectMappingControlList(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the control mapping and returns them as a List
|
fr.paris.lutece.util.ReferenceList |
selectMappingControlReferenceList(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the control mapping and returns them as a referenceList
|
void |
store(Control control,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IControlDAOcontrol - instance of the Control object to insertplugin - the Pluginpublic void insert(int nIdControl,
int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IControlDAOnIdQuestion - the question idplugin - the Pluginpublic void insert(int nIdControl,
int nIdQuestion,
String strValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IControlDAOnIdQuestion - the question idstrValue - the valueplugin - the Pluginpublic Control load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IControlDAOnKey - The identifier of the controlplugin - the Pluginpublic Set<Integer> loadIdQuestions(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadIdQuestions in interface IControlDAOnIdControl - The identifier of the controlplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IControlDAOnKey - The identifier of the Control to deleteplugin - the Pluginpublic void deleteControlQuestion(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteControlQuestion in interface IControlDAOplugin - the Pluginpublic void deleteControlQuestionValue(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteControlQuestionValue in interface IControlDAOplugin - the Pluginpublic void deleteByControlTarget(int nIdControlTarget,
ControlType controlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByControlTarget in interface IControlDAOnIdControlTarget - The identifier of the Control targetcontrolType - The control typeplugin - the Pluginpublic void store(Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IControlDAOcontrol - the reference of the Controlplugin - the Pluginpublic List<Control> selectControlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectControlsList in interface IControlDAOplugin - the Pluginpublic List<Integer> selectIdControlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdControlsList in interface IControlDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectControlsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectControlsReferenceList in interface IControlDAOplugin - the Pluginpublic List<Control> selectControlByControlTargetAndType(int nIdControlTarget, ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IControlDAOselectControlByControlTargetAndType in interface IControlDAOnIdControlTarget - the control target idcontrolType - the control typeplugin - the Pluginpublic List<Control> selectControlByQuestionAndType(int nIdQuestion, String strControlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IControlDAOselectControlByQuestionAndType in interface IControlDAOnIdQuestion - the question idstrControlType - the control typeplugin - the Pluginpublic List<Control> selectControlByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectControlByQuestion in interface IControlDAOnIdQuestion - the question idplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectMappingControlReferenceList(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMappingControlReferenceList in interface IControlDAOplugin - the Pluginpublic List<ControlMapping> selectMappingControlList(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IControlDAOselectMappingControlList in interface IControlDAOplugin - the PluginCopyright © 2023 City of Paris. All rights reserved.