Package lumis.service.newsletter
Class CategoryDaoHib
- java.lang.Object
-
- lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Category,java.lang.String>
-
- lumis.service.newsletter.CategoryDaoHib
-
- All Implemented Interfaces:
ICategoryDao
public class CategoryDaoHib extends GenericHibernateManualUpdateDao<Category,java.lang.String> implements ICategoryDao
- Since:
- 4.0.8
- Version:
- $Revision$ $Date$
-
-
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(java.lang.String id, ITransaction transaction)
Deletes the bean with the given id from persistence.Category
get(java.lang.String id, ITransaction transaction)
Returns the bean with the given id.java.util.List<java.lang.String>
getCategoryContentItemIds(java.util.Locale locale, Category category, java.util.Date startDateTime, ITransaction transaction)
protected java.lang.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 java.lang.String getIdentifier(Category bean)
- Specified by:
getIdentifier
in classGenericHibernateManualUpdateDao<Category,java.lang.String>
-
addOrUpdate
public void addOrUpdate(Category bean, ITransaction transaction) throws PortalException
- Specified by:
addOrUpdate
in interfaceICategoryDao
- Overrides:
addOrUpdate
in classGenericHibernateManualUpdateDao<Category,java.lang.String>
- Throws:
PortalException
-
delete
public boolean delete(java.lang.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,java.lang.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(java.lang.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,java.lang.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 java.util.List<java.lang.String> getCategoryContentItemIds(java.util.Locale locale, Category category, java.util.Date startDateTime, ITransaction transaction) throws PortalException
- Specified by:
getCategoryContentItemIds
in interfaceICategoryDao
- Returns:
- Throws:
PortalException
-
-