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 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)
           
 TopicVersion loadLastVersion(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 void modifyTopicVersion(int nTopicId, String strUserName, String strComment, String strContent, int nPreviousVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 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:
strId - The identifier of the topicVersion
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)
Parameters:
nTopicId -
strUserName -
strComment -
strContent -
nPreviousVersion -
plugin -

loadLastVersion

TopicVersion loadLastVersion(int idTopic,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)

loadAllVersions

Collection<TopicVersion> loadAllVersions(int idTopic,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)


Copyright © 2013 Mairie de Paris. All Rights Reserved.