Class RuleDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.myluteceaccessrules.business.RuleDAO
-
-
Constructor Summary
Constructors Constructor Description RuleDAO()
-
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(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Ruleload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Integer>selectIdRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the rule objects and returns them as a listList<Rule>selectRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the rule objects and returns them as a listfr.paris.lutece.util.ReferenceListselectRulesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the rule objects and returns them as a referenceListvoidstore(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Rule load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectRulesList
public List<Rule> selectRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the rule objects and returns them as a list- Specified by:
selectRulesListin interfaceIRuleDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the rule objects
-
selectIdRulesList
public List<Integer> selectIdRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the rule objects and returns them as a list- Specified by:
selectIdRulesListin interfaceIRuleDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the rule objects
-
selectRulesReferenceList
public fr.paris.lutece.util.ReferenceList selectRulesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the rule objects and returns them as a referenceList- Specified by:
selectRulesReferenceListin interfaceIRuleDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the rule objects
-
-