Interface ITranslationItemDAO

  • All Known Implementing Classes:
    TranslationItemDAO

    public interface ITranslationItemDAO
    ITranslationItemDAO 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 deleteAllFromReferenceId​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a list of records linked to a Reference
      void deleteAllFromReferenceItemId​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a list of records linked to a ReferenceItem
      void insert​(TranslationItem translationItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      TranslationItem load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<TranslationItem> selectTranslationItems​(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the TranslationItems objects in a reference and returns them as a list
      void store​(TranslationItem translationItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

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

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

        void deleteAllFromReferenceId​(int nId,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a list of records linked to a Reference
        Parameters:
        nId - The identifier of the Reference
        plugin - the Plugin
      • deleteAllFromReferenceItemId

        void deleteAllFromReferenceItemId​(int nId,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a list of records linked to a ReferenceItem
        Parameters:
        nId - The identifier of the ReferenceItem
        plugin - the Plugin
      • load

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

        java.util.List<TranslationItem> selectTranslationItems​(int nIdReference,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the TranslationItems objects in a reference and returns them as a list
        Parameters:
        nIdReference - the reference id
        plugin - the Plugin
        Returns:
        The list which contains the data of all the TranslationItem objects