Class TopicDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.wiki.business.TopicDAO
-
-
Constructor Summary
Constructors Constructor Description TopicDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Topicload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableTopicload(String strTopicName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a topicintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyCollection<Topic>selectTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the topic objects and returns them as a collectionvoidstore(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Topic load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectTopicsList
public Collection<Topic> selectTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the topic objects and returns them as a collection- Specified by:
selectTopicsListin interfaceITopicDAO- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the topic objects
-
-