Package lumis.service.newsletter
Class CategoryDaoHib
- java.lang.Object
-
- lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Category,String>
-
- lumis.service.newsletter.CategoryDaoHib
-
- All Implemented Interfaces:
ICategoryDao
public class CategoryDaoHib extends GenericHibernateManualUpdateDao<Category,String> implements ICategoryDao
- Since:
- 4.0.8
- Version:
- $Revision: 16382 $ $Date: 2014-08-01 19:13:32 -0300 (Fri, 01 Aug 2014) $
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CategoryDaoHib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(Category bean, ITransaction transaction)
boolean
delete(String id, ITransaction transaction)
Deletes the bean with the given id from persistence.Category
get(String id, ITransaction transaction)
Returns the bean with the given id.List<String>
getCategoryContentItemIds(Locale locale, Category category, Date startDateTime, ITransaction transaction)
protected String
getIdentifier(Category bean)
-
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao
add, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
-
-
-
-
Method Detail
-
getIdentifier
protected String getIdentifier(Category bean)
- Specified by:
getIdentifier
in classGenericHibernateManualUpdateDao<Category,String>
-
addOrUpdate
public void addOrUpdate(Category bean, ITransaction transaction) throws PortalException
- Specified by:
addOrUpdate
in interfaceICategoryDao
- Overrides:
addOrUpdate
in classGenericHibernateManualUpdateDao<Category,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 interfaceICategoryDao
- Overrides:
delete
in classGenericHibernateManualUpdateDao<Category,String>
- Parameters:
id
- the bean's id.transaction
- the transaction for persistence access. Must be aITransactionHibernate
.- Returns:
- true if the bean was deleted, or false if it did not exist
- Throws:
PortalException
-
get
public Category 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 interfaceICategoryDao
- Overrides:
get
in classGenericHibernateManualUpdateDao<Category,String>
- Parameters:
id
- the bean's id.transaction
- the transaction for persistence access. Must be aITransactionHibernate
.- Returns:
- the bean.
- Throws:
PortalObjectNotFoundException
- if the corresponding bean does not exist in the persistence.PortalException
-
getCategoryContentItemIds
public List<String> getCategoryContentItemIds(Locale locale, Category category, Date startDateTime, ITransaction transaction) throws PortalException
- Specified by:
getCategoryContentItemIds
in interfaceICategoryDao
- Returns:
- Throws:
PortalException
-
-