Interface IReferenceItemDAO

  • All Known Implementing Classes:
    ReferenceItemDAO

    public interface IReferenceItemDAO
    IReferenceItemDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteAll​(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes the records associated to a Reference
      void insert​(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      ReferenceItem load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      ReferenceItem loadReferenceItemByName​(int nIdReference, java.lang.String sItemName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<ReferenceItem> selectAllReferenceItems​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a list
      java.util.List<java.lang.Integer> selectIdReferenceItemsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the referenceItem objects and returns them as a list
      java.util.List<ReferenceItem> selectReferenceItemsList​(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectReferenceItemsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a referenceList
      java.util.List<ReferenceItem> selectReferenceItemsTranslatedList​(int nIdReference, java.lang.String strLang, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the translated referenceItem objects and returns them as a list
      void store​(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

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

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

        void deleteAll​(int nIdReference,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deletes the records associated to a Reference
        Parameters:
        nIdReference - The Reference identifier of the Reference Items to delete
        plugin -
      • loadReferenceItemByName

        ReferenceItem loadReferenceItemByName​(int nIdReference,
                                              java.lang.String sItemName,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdReference - The identifier of the reference of referenceitems
        sItemName - The name of referenceitem
        plugin - the Plugin
        Returns:
        The instance of the referenceItem
      • load

        ReferenceItem load​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the referenceItem
        plugin - the Plugin
        Returns:
        The instance of the referenceItem
      • selectReferenceItemsList

        java.util.List<ReferenceItem> selectReferenceItemsList​(int nIdReference,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the referenceItem objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the referenceItem objects
      • selectAllReferenceItems

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

        java.util.List<ReferenceItem> selectReferenceItemsTranslatedList​(int nIdReference,
                                                                         java.lang.String strLang,
                                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the translated referenceItem objects and returns them as a list
        Parameters:
        nIdReference - the identifier of the reference
        strLang - the language
        plugin - the Plugin
        Returns:
      • selectIdReferenceItemsList

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

        fr.paris.lutece.util.ReferenceList selectReferenceItemsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the referenceItem objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the referenceItem objects