Class ControlGroupDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.ControlGroupDAO
-
- All Implemented Interfaces:
IControlGroupDAO
public final class ControlGroupDAO extends java.lang.Object implements IControlGroupDAO
This class provides Data Access methods for ControlGroup objects
-
-
Constructor Summary
Constructors Constructor Description ControlGroupDAO()
-
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(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<ControlGroup>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<ControlGroup>selectControlGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the controlGroup objects and returns them as a listjava.util.List<ControlGroup>selectControlGroupsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectControlGroupsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the controlGroup objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdControlGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the controlGroup objects and returns them as a listfr.paris.lutece.util.ReferenceListselectLogicalOperatorsReferenceList(java.util.Locale locale)Load all logical operators from enumvoidstore(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIControlGroupDAO- Parameters:
controlGroup- instance of the ControlGroup object to insertplugin- the Plugin
-
load
public java.util.Optional<ControlGroup> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIControlGroupDAO- Parameters:
nKey- The identifier of the controlGroupplugin- the Plugin- Returns:
- The instance of the controlGroup
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIControlGroupDAO- Parameters:
nKey- The identifier of the ControlGroup to deleteplugin- the Plugin
-
store
public void store(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIControlGroupDAO- Parameters:
controlGroup- the reference of the ControlGroupplugin- the Plugin
-
selectControlGroupsList
public java.util.List<ControlGroup> selectControlGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the controlGroup objects and returns them as a list- Specified by:
selectControlGroupsListin interfaceIControlGroupDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the controlGroup objects
-
selectIdControlGroupsList
public java.util.List<java.lang.Integer> selectIdControlGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the controlGroup objects and returns them as a list- Specified by:
selectIdControlGroupsListin interfaceIControlGroupDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the controlGroup objects
-
selectControlGroupsReferenceList
public fr.paris.lutece.util.ReferenceList selectControlGroupsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the controlGroup objects and returns them as a referenceList- Specified by:
selectControlGroupsReferenceListin interfaceIControlGroupDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the controlGroup objects
-
selectLogicalOperatorsReferenceList
public fr.paris.lutece.util.ReferenceList selectLogicalOperatorsReferenceList(java.util.Locale locale)
Description copied from interface:IControlGroupDAOLoad all logical operators from enum- Specified by:
selectLogicalOperatorsReferenceListin interfaceIControlGroupDAO- Parameters:
locale- TODO- Returns:
- The referenceList which contains the logical operators
-
selectControlGroupsListByIds
public java.util.List<ControlGroup> selectControlGroupsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Specified by:
selectControlGroupsListByIdsin interfaceIControlGroupDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
-