Class RuleDAO
java.lang.Object
fr.paris.lutece.plugins.myluteceaccessrules.business.RuleDAO
- All Implemented Interfaces:
IRuleDAO
This class provides Data Access methods for Rule objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectIdRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the rule objects and returns them as a listselectRulesList(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 referenceListvoidUpdate the record in the table
-
Constructor Details
-
RuleDAO
public RuleDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
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
Update the record in the table -
selectRulesList
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
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
-