Interface ITopicVersionDAO
-
- All Known Implementing Classes:
TopicVersionDAO
public interface ITopicVersionDAOITopicVersionDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTopicVersion(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Modify the topic versionvoiddelete(int nIdTopicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByTopic(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all topicVersions for a given topicvoidinsert(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.TopicVersionload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableCollection<TopicVersion>loadAllVersions(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load all versionsTopicVersionloadLastVersion(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load last versionCollection<TopicVersion>selectTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the topicVersion objects and returns them as a collection
-
-
-
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 inssertplugin- 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 deleteplugin- the Plugin
-
load
TopicVersion load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The keyplugin- 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
-
addTopicVersion
void addTopicVersion(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the topic version- Parameters:
topicVersion- The topic versionplugin- The plugin
-
loadLastVersion
TopicVersion loadLastVersion(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load last version- Parameters:
idTopic- The topic IDplugin- 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 idplugin- 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 Idplugin- the Plugin
-
-