Interface IServiceContractDAO

  • All Known Implementing Classes:
    ServiceContractDAO

    public interface IServiceContractDAO
    IServiceContractDAO Interface
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_NAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close​(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteFromClientApp​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      java.util.List<ServiceContract> getServiceContractsListWithMinEndDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Date minEndDate)
      Load the data of all the service contracts with a min end date as specified
      void insert​(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<ServiceContract> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<ServiceContract> loadFromClientApplication​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      java.util.List<ServiceContract> selectActiveServiceContract​(java.lang.String clientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      java.util.List<ServiceContract> selectAllServiceContractsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the service contracts and returns them as a list
      java.util.List<java.lang.Integer> selectFilterdIdServiceContractsList​(java.util.Map<java.lang.String,​java.lang.String> params, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      java.util.List<java.lang.Integer> selectIdServiceContractsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the serviceContract objects and returns them as a list
      java.util.List<ServiceContract> selectServiceContractBetweenDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Date startingDate, java.sql.Date endingDate)
      Load the data of all the service contracts between two date and returns them as a list
      java.util.List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,​java.lang.String>> selectServiceContractsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      void store​(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void updateLastUpdateAuthor​(int idService, java.lang.String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
    • Method Detail

      • insert

        void insert​(ServiceContract serviceContract,
                    int clientApplicationId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        serviceContract - instance of the ServiceContract object to insert
        plugin - the Plugin
      • deleteFromClientApp

        void deleteFromClientApp​(int nKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • store

        void store​(ServiceContract serviceContract,
                   int clientApplicationId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        serviceContract - the reference of the ServiceContract
        plugin - the Plugin
      • loadFromClientApplication

        java.util.List<ServiceContract> loadFromClientApplication​(int nKey,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin 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 ServiceContract to delete
        plugin - the Plugin
      • load

        java.util.Optional<ServiceContract> load​(int nKey,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the serviceContract
        plugin - the Plugin
        Returns:
        The instance of the serviceContract
      • selectIdServiceContractsList

        java.util.List<java.lang.Integer> selectIdServiceContractsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the serviceContract objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the serviceContract objects
      • selectServiceContractsListByIds

        java.util.List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,​java.lang.String>> selectServiceContractsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                                                                                                             java.util.List<java.lang.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
      • selectServiceContractBetweenDate

        java.util.List<ServiceContract> selectServiceContractBetweenDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                                         java.sql.Date startingDate,
                                                                         java.sql.Date endingDate)
        Load the data of all the service contracts between two date and returns them as a list
        Parameters:
        plugin - the Plugin
        startingDate - starting date of the contract
        endingDate - ending date of the contract
        Returns:
        The list which contains the data of all the avant objects
      • getServiceContractsListWithMinEndDate

        java.util.List<ServiceContract> getServiceContractsListWithMinEndDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                                              java.sql.Date minEndDate)
        Load the data of all the service contracts with a min end date as specified
        Parameters:
        plugin - - the plugin
        minEndDate - - the min end date
        Returns:
        List
      • selectAllServiceContractsList

        java.util.List<ServiceContract> selectAllServiceContractsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the service contracts and returns them as a list
        Parameters:
        plugin - the plugin
        Returns:
        The list which contains the data of all ServiceContract objects
      • selectActiveServiceContract

        java.util.List<ServiceContract> selectActiveServiceContract​(java.lang.String clientCode,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • close

        void close​(ServiceContract serviceContract,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • updateLastUpdateAuthor

        void updateLastUpdateAuthor​(int idService,
                                    java.lang.String authorName,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • selectFilterdIdServiceContractsList

        java.util.List<java.lang.Integer> selectFilterdIdServiceContractsList​(java.util.Map<java.lang.String,​java.lang.String> params,
                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)