Class SubscriptionLinkDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.broadcastproxy.business.SubscriptionLinkDAO
-
- All Implemented Interfaces:
ISubscriptionLinkDAO
public final class SubscriptionLinkDAO extends Object implements ISubscriptionLinkDAO
This class provides Data Access methods for SubscriptionLink objects
-
-
Constructor Summary
Constructors Constructor Description SubscriptionLinkDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablebooleanexistDisabledNewsletter(fr.paris.lutece.portal.service.plugin.Plugin plugin)Return true if exist disabled newslettervoidinsert(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Optional<SubscriptionLink>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptional<SubscriptionLink>loadBySubscriptionId(int nSubscriptionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table by subscription idList<Integer>selectIdSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the subscriptionLink objects and returns them as a listList<SubscriptionLink>selectSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the subscriptionLink objects and returns them as a listList<SubscriptionLink>selectSubscriptionLinksListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectSubscriptionLinksReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the subscriptionLink objects and returns them as a referenceListvoidstore(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceISubscriptionLinkDAO- Parameters:
subscriptionLink- instance of the SubscriptionLink object to insertplugin- the Plugin
-
load
public Optional<SubscriptionLink> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceISubscriptionLinkDAO- Parameters:
nKey- The identifier of the subscriptionLinkplugin- the Plugin- Returns:
- The instance of the subscriptionLink
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceISubscriptionLinkDAO- Parameters:
nKey- The identifier of the SubscriptionLink to deleteplugin- the Plugin
-
store
public void store(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceISubscriptionLinkDAO- Parameters:
subscriptionLink- the reference of the SubscriptionLinkplugin- the Plugin
-
selectSubscriptionLinksList
public List<SubscriptionLink> selectSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the subscriptionLink objects and returns them as a list- Specified by:
selectSubscriptionLinksListin interfaceISubscriptionLinkDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the subscriptionLink objects
-
selectIdSubscriptionLinksList
public List<Integer> selectIdSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the subscriptionLink objects and returns them as a list- Specified by:
selectIdSubscriptionLinksListin interfaceISubscriptionLinkDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the subscriptionLink objects
-
selectSubscriptionLinksReferenceList
public fr.paris.lutece.util.ReferenceList selectSubscriptionLinksReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the subscriptionLink objects and returns them as a referenceList- Specified by:
selectSubscriptionLinksReferenceListin interfaceISubscriptionLinkDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the subscriptionLink objects
-
selectSubscriptionLinksListByIds
public List<SubscriptionLink> selectSubscriptionLinksListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
Load the data of all the avant objects and returns them as a list- Specified by:
selectSubscriptionLinksListByIdsin interfaceISubscriptionLinkDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadBySubscriptionId
public Optional<SubscriptionLink> loadBySubscriptionId(int nSubscriptionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ISubscriptionLinkDAOLoad the data from the table by subscription id- Specified by:
loadBySubscriptionIdin interfaceISubscriptionLinkDAOplugin- the Plugin- Returns:
- The instance of the subscriptionLink
-
existDisabledNewsletter
public boolean existDisabledNewsletter(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ISubscriptionLinkDAOReturn true if exist disabled newsletter- Specified by:
existDisabledNewsletterin interfaceISubscriptionLinkDAO- Returns:
- Return true if exist disabled newsletter
-
-