Class FreeHtmlTopicDao
java.lang.Object
fr.paris.lutece.plugins.newsletter.business.topic.FreeHtmlTopicDao
- All Implemented Interfaces:
IFreeHtmlTopicDAO
@ApplicationScoped
@Named("newsletter.freeHtmlTopicDao")
public class FreeHtmlTopicDao
extends Object
implements IFreeHtmlTopicDAO
DAO implementation for
FreeHtmlTopic-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get aFreeHtmlTopicby its primary key from the databasefindCollection(List<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
-
Constructor Details
-
FreeHtmlTopicDao
public FreeHtmlTopicDao()
-
-
Method Details
-
findByPrimaryKey
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 List<FreeHtmlTopic> findCollection(List<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.
-