Class TranslationItemDAO

  • All Implemented Interfaces:
    ITranslationItemDAO

    public final class TranslationItemDAO
    extends java.lang.Object
    implements ITranslationItemDAO
    This class provides Data Access methods for TranslationItem objects
    • Method Summary

      All Methods Instance Methods Concrete 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 item, 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 idReference, 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 item, 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

      • TranslationItemDAO

        public TranslationItemDAO()
    • Method Detail

      • insert

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

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

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

        public void deleteAllFromReferenceItemId​(int nId,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a list of records linked to a ReferenceItem
        Specified by:
        deleteAllFromReferenceItemId in interface ITranslationItemDAO
        Parameters:
        nId - The identifier of the ReferenceItem
        plugin - the Plugin
      • store

        public void store​(TranslationItem item,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ITranslationItemDAO
        Parameters:
        item - the reference of the TranslationItem
        plugin - the Plugin
      • selectTranslationItems

        public java.util.List<TranslationItem> selectTranslationItems​(int idReference,
                                                                      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
        Specified by:
        selectTranslationItems in interface ITranslationItemDAO
        Parameters:
        idReference - the reference id
        plugin - the Plugin
        Returns:
        The list which contains the data of all the TranslationItem objects