lumis.service.newsletter
Class SubscriptionDaoHib
java.lang.Object
lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Subscription,String>
lumis.service.newsletter.SubscriptionDaoHib
- All Implemented Interfaces:
- ISubscriptionDao
public class SubscriptionDaoHib
- extends GenericHibernateManualUpdateDao<Subscription,String>
- implements ISubscriptionDao
- Since:
- 4.0.8
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionDaoHib
public SubscriptionDaoHib()
- Parameters:
persistentClass
- - Since:
- 4.0.8
getIdentifier
protected String getIdentifier(Subscription bean)
- Specified by:
getIdentifier
in class GenericHibernateManualUpdateDao<Subscription,String>
addOrUpdate
public void addOrUpdate(Subscription bean,
ITransaction transaction)
throws PortalException
- Specified by:
addOrUpdate
in interface ISubscriptionDao
- Overrides:
addOrUpdate
in class GenericHibernateManualUpdateDao<Subscription,String>
- Throws:
PortalException
delete
public boolean delete(String id,
ITransaction transaction)
throws PortalException
- Description copied from class:
GenericHibernateManualUpdateDao
- Deletes the bean with the given id from persistence.
- Specified by:
delete
in interface ISubscriptionDao
- Overrides:
delete
in class GenericHibernateManualUpdateDao<Subscription,String>
- Parameters:
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.
- Returns:
- true if the bean was deleted, or false if it did not exist
- Throws:
PortalException
get
public Subscription get(String id,
ITransaction transaction)
throws PortalObjectNotFoundException,
PortalException
- Description copied from class:
GenericHibernateManualUpdateDao
- Returns the bean with the given id. The bean is
set as read-only, so changes on it won't persist automatically.
- Specified by:
get
in interface ISubscriptionDao
- Overrides:
get
in class GenericHibernateManualUpdateDao<Subscription,String>
- Parameters:
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.
- Returns:
- the bean.
- Throws:
PortalObjectNotFoundException
- if the corresponding bean does not exist in the persistence.
PortalException
getByEmailFormat
public Collection<String> getByEmailFormat(String serviceInstanceId,
int emailFormat,
ITransaction transaction)
throws PortalException
- Specified by:
getByEmailFormat
in interface ISubscriptionDao
- Returns:
-
- Throws:
PortalException
getIdsByServiceInstanceAndEmail
public Collection<String> getIdsByServiceInstanceAndEmail(String serviceInstanceId,
String email,
ITransaction transaction)
throws PortalException
- Description copied from interface:
ISubscriptionDao
- Returns the ids of the subscriptions for the given email in the specified
service instance id.
- Specified by:
getIdsByServiceInstanceAndEmail
in interface ISubscriptionDao
- Parameters:
serviceInstanceId
- the service instance id.email
- the email.transaction
- the transaction for persistence access.
- Returns:
- a collection of subscription ids, or an empty collection if none
was found.
- Throws:
PortalException
getCategoriesBySubscriptionId
public Collection<String> getCategoriesBySubscriptionId(String subscriptionId,
ITransaction transaction)
throws PortalException
- Specified by:
getCategoriesBySubscriptionId
in interface ISubscriptionDao
- Returns:
-
- Throws:
PortalException
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.