fr.paris.lutece.plugins.wiki.business
Interface ITopicVersionDAO

All Known Implementing Classes:
TopicVersionDAO

public interface ITopicVersionDAO

ITopicVersionDAO Interface


Method Summary
 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
 void modifyTopicVersion(int nTopicId, String strUserName, String strComment, String strContent, int nPreviousVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modify the topic 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
 void store(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

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

store

void store(TopicVersion topicVersion,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
topicVersion - the reference of the TopicVersion
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

modifyTopicVersion

void modifyTopicVersion(int nTopicId,
                        String strUserName,
                        String strComment,
                        String strContent,
                        int nPreviousVersion,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the topic version

Parameters:
nTopicId - The topic ID
strUserName - The username
strComment - The comment
strContent - The content
nPreviousVersion - The previous 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


Copyright © 2014 Mairie de Paris. All Rights Reserved.