Class TemporaryCodeConfigDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearDefaultFlag​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Clear default flag
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(TemporaryCodeConfig temporaryCodeConfig, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<TemporaryCodeConfig> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<TemporaryCodeConfig> loadDefaultConfig​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a dafult temporary code config
      java.util.List<java.lang.Integer> selectIdTemporaryCodeConfigsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the temporaryCodeConfig objects and returns them as a list
      java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the temporaryCodeConfig objects and returns them as a list
      java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsListByIds​(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
      fr.paris.lutece.util.ReferenceList selectTemporaryCodeConfigsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the temporaryCodeConfig objects and returns them as a referenceList
      void store​(TemporaryCodeConfig temporaryCodeConfig, 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 Detail

      • TemporaryCodeConfigDAO

        public TemporaryCodeConfigDAO()
    • Method Detail

      • insert

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

        public java.util.Optional<TemporaryCodeConfig> load​(int nKey,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ITemporaryCodeConfigDAO
        Parameters:
        nKey - The identifier of the temporaryCodeConfig
        plugin - the Plugin
        Returns:
        The instance of the temporaryCodeConfig
      • 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 ITemporaryCodeConfigDAO
        Parameters:
        nKey - The identifier of the TemporaryCodeConfig to delete
        plugin - the Plugin
      • store

        public void store​(TemporaryCodeConfig temporaryCodeConfig,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ITemporaryCodeConfigDAO
        Parameters:
        temporaryCodeConfig - the reference of the TemporaryCodeConfig
        plugin - the Plugin
      • selectTemporaryCodeConfigsList

        public java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the temporaryCodeConfig objects and returns them as a list
        Specified by:
        selectTemporaryCodeConfigsList in interface ITemporaryCodeConfigDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the temporaryCodeConfig objects
      • selectIdTemporaryCodeConfigsList

        public java.util.List<java.lang.Integer> selectIdTemporaryCodeConfigsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the temporaryCodeConfig objects and returns them as a list
        Specified by:
        selectIdTemporaryCodeConfigsList in interface ITemporaryCodeConfigDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the temporaryCodeConfig objects
      • selectTemporaryCodeConfigsReferenceList

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

        public java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsListByIds​(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
        Specified by:
        selectTemporaryCodeConfigsListByIds in interface ITemporaryCodeConfigDAO
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects