public class SubscriptionDaoHib extends GenericHibernateManualUpdateDao<Subscription,String> implements ISubscriptionDao
Constructor and Description |
---|
SubscriptionDaoHib() |
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdate(Subscription bean,
ITransaction transaction) |
boolean |
delete(String id,
ITransaction transaction)
Deletes the bean with the given id from persistence.
|
Subscription |
get(String id,
ITransaction transaction)
Returns the bean with the given id.
|
Collection<String> |
getByEmailFormat(String serviceInstanceId,
int emailFormat,
Locale locale,
ITransaction transaction) |
Collection<String> |
getCategoriesBySubscriptionId(String subscriptionId,
ITransaction transaction) |
protected String |
getIdentifier(Subscription bean) |
Collection<String> |
getIdsByServiceInstanceAndEmail(String serviceInstanceId,
String email,
Locale locale,
ITransaction transaction)
Returns the ids of the subscriptions for the given email in the specified
service instance id.
|
add, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
public SubscriptionDaoHib()
persistentClass
- protected String getIdentifier(Subscription bean)
getIdentifier
in class GenericHibernateManualUpdateDao<Subscription,String>
public void addOrUpdate(Subscription bean, ITransaction transaction) throws PortalException
addOrUpdate
in interface ISubscriptionDao
addOrUpdate
in class GenericHibernateManualUpdateDao<Subscription,String>
PortalException
public boolean delete(String id, ITransaction transaction) throws PortalException
GenericHibernateManualUpdateDao
delete
in interface ISubscriptionDao
delete
in class GenericHibernateManualUpdateDao<Subscription,String>
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.PortalException
public Subscription get(String id, ITransaction transaction) throws PortalObjectNotFoundException, PortalException
GenericHibernateManualUpdateDao
get
in interface ISubscriptionDao
get
in class GenericHibernateManualUpdateDao<Subscription,String>
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.PortalObjectNotFoundException
- if the corresponding bean does not exist in the persistence.PortalException
public Collection<String> getByEmailFormat(String serviceInstanceId, int emailFormat, Locale locale, ITransaction transaction) throws PortalException
getByEmailFormat
in interface ISubscriptionDao
PortalException
public Collection<String> getIdsByServiceInstanceAndEmail(String serviceInstanceId, String email, Locale locale, ITransaction transaction) throws PortalException
ISubscriptionDao
getIdsByServiceInstanceAndEmail
in interface ISubscriptionDao
serviceInstanceId
- the service instance id.email
- the email.transaction
- the transaction for persistence access.PortalException
public Collection<String> getCategoriesBySubscriptionId(String subscriptionId, ITransaction transaction) throws PortalException
getCategoriesBySubscriptionId
in interface ISubscriptionDao
PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.