|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.wiki.business.TopicVersionDAO
public final class TopicVersionDAO
This class provides Data Access methods for TopicVersion objects
Constructor Summary | |
---|---|
TopicVersionDAO()
|
Method Summary | |
---|---|
void |
delete(int nTopicVersionId,
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 nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the topicVersion from the table |
java.util.Collection<TopicVersion> |
loadAllVersions(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
TopicVersion |
loadLastVersion(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
modifyTopicVersion(int nTopicId,
java.lang.String strUserName,
java.lang.String strComment,
java.lang.String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.Collection<TopicVersion> |
selectTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the topicVersions and returns them as a collection |
void |
store(TopicVersion topicVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopicVersionDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public void insert(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITopicVersionDAO
topicVersion
- instance of the TopicVersion object to insertplugin
- The pluginpublic TopicVersion load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ITopicVersionDAO
nId
- The identifier of the topicVersionplugin
- The plugin
public void delete(int nTopicVersionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ITopicVersionDAO
nTopicVersionId
- The identifier of the topicVersionplugin
- The pluginpublic void store(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ITopicVersionDAO
topicVersion
- The reference of the topicVersionplugin
- The pluginpublic java.util.Collection<TopicVersion> selectTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTopicVersionsList
in interface ITopicVersionDAO
plugin
- The plugin
public void modifyTopicVersion(int nTopicId, java.lang.String strUserName, java.lang.String strComment, java.lang.String strContent, int nPreviousVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
modifyTopicVersion
in interface ITopicVersionDAO
public TopicVersion loadLastVersion(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadLastVersion
in interface ITopicVersionDAO
public java.util.Collection<TopicVersion> loadAllVersions(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAllVersions
in interface ITopicVersionDAO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |