Class CRMUserDAO

java.lang.Object
fr.paris.lutece.plugins.crm.business.user.CRMUserDAO
All Implemented Interfaces:
ICRMUserDAO

public class CRMUserDAO extends Object implements ICRMUserDAO
CRMUserDAO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    int
    insert(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadByUserGuid(String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from a given user guid
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Generates a new primary key
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all.
    selectByListIds(List<Integer> listIdsCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Select by list ids.
    selectListIdsCRMUserByFilter(CRMUserFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find list ids crm user by filter.
    void
    store(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

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

    • CRMUserDAO

      public CRMUserDAO()
  • Method Details

    • newPrimaryKey

      public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Generates a new primary key
      Specified by:
      newPrimaryKey in interface ICRMUserDAO
      Parameters:
      plugin - The Plugin
      Returns:
      The new primary key
    • insert

      public int insert(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface ICRMUserDAO
      Parameters:
      user - instance of the CRMUser object to insert
      plugin - the Plugin
      Returns:
      the key of the newly created notification
    • load

      public CRMUser load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface ICRMUserDAO
      Parameters:
      nIdCRMUser - The identifier of the CRMUser
      plugin - the Plugin
      Returns:
      The instance of the CRMUser
    • loadByUserGuid

      public CRMUser loadByUserGuid(String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from a given user guid
      Specified by:
      loadByUserGuid in interface ICRMUserDAO
      Parameters:
      strUserGuid - the user guid
      plugin - the Plugin
      Returns:
      The instance of the CRMUser
    • store

      public void store(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface ICRMUserDAO
      Parameters:
      user - the reference of the CRMUser
      plugin - the Plugin
    • delete

      public void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface ICRMUserDAO
      Parameters:
      nIdCRMUser - int identifier of the CRMUser to delete
      plugin - the Plugin
    • selectAll

      public List<CRMUser> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all.
      Specified by:
      selectAll in interface ICRMUserDAO
      Parameters:
      plugin - the plugin
      Returns:
      the list
    • selectListIdsCRMUserByFilter

      public List<Integer> selectListIdsCRMUserByFilter(CRMUserFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find list ids crm user by filter.
      Specified by:
      selectListIdsCRMUserByFilter in interface ICRMUserDAO
      Parameters:
      filter - the filter
      plugin - the plugin
      Returns:
      the list
    • selectByListIds

      public List<CRMUser> selectByListIds(List<Integer> listIdsCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select by list ids.
      Specified by:
      selectByListIds in interface ICRMUserDAO
      Parameters:
      listIdsCRMUser - the list ids crm user
      plugin - the plugin
      Returns:
      the list