Class FreeHtmlTopicDao
- java.lang.Object
-
- fr.paris.lutece.plugins.newsletter.business.topic.FreeHtmlTopicDao
-
- All Implemented Interfaces:
IFreeHtmlTopicDAO
public class FreeHtmlTopicDao extends java.lang.Object implements IFreeHtmlTopicDAO
DAO implementation forFreeHtmlTopic
-
-
Constructor Summary
Constructors Constructor Description FreeHtmlTopicDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreeHtmlTopicfindByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get aFreeHtmlTopicby its primary key from the databasejava.util.List<FreeHtmlTopic>findCollection(java.util.List<java.lang.Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get a list ofFreeHtmlTopicfrom a list of idsvoidinsert(FreeHtmlTopic freeHtmlTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a newFreeHtmlTopicinto the databasevoidremove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete aFreeHtmlTopicfrom the databasevoidupdate(FreeHtmlTopic freeHtmlTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update aFreeHtmlTopicin the database
-
-
-
Method Detail
-
findByPrimaryKey
public FreeHtmlTopic findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get aFreeHtmlTopicby its primary key from the database- Specified by:
findByPrimaryKeyin interfaceIFreeHtmlTopicDAO- Parameters:
nId- The id of theFreeHtmlTopicto getplugin- The plugin- Returns:
- The
FreeHtmlTopicwith the given id, or null if noFreeHtmlTopichas this id.
-
insert
public void insert(FreeHtmlTopic freeHtmlTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a newFreeHtmlTopicinto the database- Specified by:
insertin interfaceIFreeHtmlTopicDAO- Parameters:
freeHtmlTopic- TheFreeHtmlTopicto insert.plugin- The plugin
-
update
public void update(FreeHtmlTopic freeHtmlTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update aFreeHtmlTopicin the database- Specified by:
updatein interfaceIFreeHtmlTopicDAO- Parameters:
freeHtmlTopic- The new values of theFreeHtmlTopic.plugin- The plugin
-
remove
public void remove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete aFreeHtmlTopicfrom the database- Specified by:
removein interfaceIFreeHtmlTopicDAO- Parameters:
nId- The id of theFreeHtmlTopicto delete.plugin- The plugin
-
findCollection
public java.util.List<FreeHtmlTopic> findCollection(java.util.List<java.lang.Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a list ofFreeHtmlTopicfrom a list of ids- Specified by:
findCollectionin interfaceIFreeHtmlTopicDAO- Parameters:
listIds- The list of ids ofFreeHtmlTopicto get.plugin- The plugin- Returns:
- The list of
FreeHtmlTopicfound.
-
-