|
||||||||||
| 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 from the table |
Collection<TopicVersion> |
loadAllVersions(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all versions |
TopicVersion |
loadLastVersion(int nIdTopic,
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 |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
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 |
| 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 ITopicVersionDAOtopicVersion - instance of the TopicVersion object to inssertplugin - the Plugin
public TopicVersion load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ITopicVersionDAOnId - The keyplugin - the Plugin
public void delete(int nTopicVersionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ITopicVersionDAOnTopicVersionId - int identifier of the TopicVersion to deleteplugin - the Plugin
public void store(TopicVersion topicVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ITopicVersionDAOtopicVersion - the reference of the TopicVersionplugin - the Pluginpublic Collection<TopicVersion> selectTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTopicVersionsList in interface ITopicVersionDAOplugin - the Plugin
public void modifyTopicVersion(int nTopicId,
String strUserName,
String strComment,
String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
modifyTopicVersion in interface ITopicVersionDAOnTopicId - The topic IDstrUserName - The usernamestrComment - The commentstrContent - The contentnPreviousVersion - The previous versionplugin - The plugin
public TopicVersion loadLastVersion(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadLastVersion in interface ITopicVersionDAOnIdTopic - The topic IDplugin - The plugin
public Collection<TopicVersion> loadAllVersions(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAllVersions in interface ITopicVersionDAOnIdTopic - The topic idplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||