Interface IRuleDAO

  • All Known Implementing Classes:
    RuleDAO

    public interface IRuleDAO
    IRuleDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Rule load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      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
      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
      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
      void store​(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Rule rule,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        rule - instance of the Rule object to insert
        plugin - the Plugin
      • store

        void store​(Rule rule,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        rule - the reference of the Rule
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the Rule to delete
        plugin - the Plugin
      • load

        Rule load​(int nKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the rule
        plugin - the Plugin
        Returns:
        The instance of the rule
      • selectRulesList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the rule objects
      • selectIdRulesList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the rule objects
      • selectRulesReferenceList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the rule objects