Class DuplicateRuleDAO

  • All Implemented Interfaces:
    IDuplicateRuleDAO

    public final class DuplicateRuleDAO
    extends java.lang.Object
    implements IDuplicateRuleDAO
    This class provides Data Access methods for IdentityAttribute objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nRuleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(DuplicateRule duplicateRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      DuplicateRule select​(int nRuleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<DuplicateRule> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.String> selectAllCodes​(fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      java.util.List<java.lang.Integer> selectAllIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      DuplicateRule selectByCode​(java.lang.String ruleCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      DuplicateRule selectByName​(java.lang.String ruleName, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      void update​(DuplicateRule duplicateRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void updateLastUpdateAuthor​(DuplicateRule duplicateRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DuplicateRuleDAO

        public DuplicateRuleDAO()
    • Method Detail

      • insert

        public void insert​(DuplicateRule duplicateRule,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IDuplicateRuleDAO
        Parameters:
        duplicateRule - instance of the IdentityAttribute object to insert
        plugin - the Plugin
      • select

        public DuplicateRule select​(int nRuleId,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        select in interface IDuplicateRuleDAO
        Parameters:
        nRuleId - The rule ID
        plugin - the Plugin
        Returns:
        The instance of the identityAttribute
      • selectAll

        public java.util.List<DuplicateRule> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDuplicateRuleDAO
        Load the data from the table
        Specified by:
        selectAll in interface IDuplicateRuleDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The instance of the identityAttribute
      • selectAllIds

        public java.util.List<java.lang.Integer> selectAllIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Specified by:
        selectAllIds in interface IDuplicateRuleDAO
      • selectAllCodes

        public java.util.List<java.lang.String> selectAllCodes​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Specified by:
        selectAllCodes in interface IDuplicateRuleDAO
      • update

        public void update​(DuplicateRule duplicateRule,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        update in interface IDuplicateRuleDAO
        Parameters:
        duplicateRule - the reference of the IdentityAttribute
        plugin - the Plugin
      • delete

        public void delete​(int nRuleId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IDuplicateRuleDAO
        Parameters:
        nRuleId - The rule ID
        plugin - the Plugin