java.lang.Object
fr.paris.lutece.plugins.identityimport.business.ClientDAO
All Implemented Interfaces:
IClientDAO

public final class ClientDAO extends Object implements IClientDAO
This class provides Data Access methods for Client objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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(Client client, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectClientByClientCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String clientCode)
    Load the data from the table of the Client corresponding to the given client code.
    selectClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the client objects and returns them as a list
    selectClientsListByAppCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String appCode)
    Load the data of all the client objects and returns them as a list
    selectClientsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
    Load the data of all the avant objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectClientsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the client objects and returns them as a referenceList
    selectIdClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the client objects and returns them as a list
    void
    store(Client client, 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

    • ClientDAO

      public ClientDAO()
  • Method Details

    • insert

      public void insert(Client client, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IClientDAO
      Parameters:
      client - instance of the Client object to insert
      plugin - the Plugin
    • load

      public Optional<Client> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IClientDAO
      Parameters:
      nKey - The identifier of the client
      plugin - the Plugin
      Returns:
      The instance of the client
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IClientDAO
      Parameters:
      nKey - The identifier of the Client to delete
      plugin - the Plugin
    • store

      public void store(Client client, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IClientDAO
      Parameters:
      client - the reference of the Client
      plugin - the Plugin
    • selectClientsList

      public List<Client> selectClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the client objects and returns them as a list
      Specified by:
      selectClientsList in interface IClientDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the client objects
    • selectIdClientsList

      public List<Integer> selectIdClientsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the client objects and returns them as a list
      Specified by:
      selectIdClientsList in interface IClientDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the client objects
    • selectClientsReferenceList

      public fr.paris.lutece.util.ReferenceList selectClientsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the client objects and returns them as a referenceList
      Specified by:
      selectClientsReferenceList in interface IClientDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the client objects
    • selectClientsListByIds

      public List<Client> selectClientsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Specified by:
      selectClientsListByIds in interface IClientDAO
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectClientByClientCode

      public Optional<Client> selectClientByClientCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String clientCode)
      Description copied from interface: IClientDAO
      Load the data from the table of the Client corresponding to the given client code.
      Specified by:
      selectClientByClientCode in interface IClientDAO
      Parameters:
      plugin - the plugin
      clientCode - the client code
      Returns:
      The instance of the client
    • selectClientsListByAppCode

      public List<Client> selectClientsListByAppCode(fr.paris.lutece.portal.service.plugin.Plugin plugin, String appCode)
      Description copied from interface: IClientDAO
      Load the data of all the client objects and returns them as a list
      Specified by:
      selectClientsListByAppCode in interface IClientDAO
      Parameters:
      plugin - the Plugin
      appCode - the app code
      Returns:
      The list which contains the data of all the client objects