Interface ITopicVersionDAO

  • All Known Implementing Classes:
    TopicVersionDAO

    public interface ITopicVersionDAO
    ITopicVersionDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addTopicVersion​(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Modify the topic version
      void delete​(int nIdTopicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByTopic​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all topicVersions for a given topic
      void insert​(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      TopicVersion load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Collection<TopicVersion> loadAllVersions​(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load all versions
      TopicVersion loadLastVersion​(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load last version
      Collection<TopicVersion> selectTopicVersionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the topicVersion objects and returns them as a collection
    • Method Detail

      • insert

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

        void delete​(int nIdTopicVersion,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdTopicVersion - int identifier of the TopicVersion to delete
        plugin - the Plugin
      • load

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

        Collection<TopicVersion> selectTopicVersionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the topicVersion objects and returns them as a collection
        Parameters:
        plugin - the Plugin
        Returns:
        The collection which contains the data of all the topicVersion objects
      • addTopicVersion

        void addTopicVersion​(TopicVersion topicVersion,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Modify the topic version
        Parameters:
        topicVersion - The topic version
        plugin - The plugin
      • loadLastVersion

        TopicVersion loadLastVersion​(int idTopic,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load last version
        Parameters:
        idTopic - The topic ID
        plugin - The plugin
        Returns:
        The topic version
      • loadAllVersions

        Collection<TopicVersion> loadAllVersions​(int idTopic,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load all versions
        Parameters:
        idTopic - The topic id
        plugin - The plugin
        Returns:
        The list of topics
      • deleteByTopic

        void deleteByTopic​(int nTopicId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all topicVersions for a given topic
        Parameters:
        nTopicId - The Topic Id
        plugin - the Plugin