Interface IClientDAO

All Known Implementing Classes:
ClientDAO

public interface IClientDAO
IClientDAO Interface
  • 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
  • Method Details

    • insert

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

      void store(Client client, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      client - the reference of the Client
      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 Client to delete
      plugin - the Plugin
    • load

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

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

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

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

      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
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectClientByClientCode

      Optional<Client> 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.
      Parameters:
      plugin - the plugin
      clientCode - the client code
      Returns:
      The instance of the client
    • selectClientsListByAppCode

      List<Client> 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
      Parameters:
      plugin - the Plugin
      appCode - the app code
      Returns:
      The list which contains the data of all the client objects