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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoryDaoHib
protected CategoryDaoHib()
- Parameters:
persistentClass
- - Since:
- 4.0.8
getIdentifier
protected String getIdentifier(Category bean)
- Specified by:
getIdentifier
in class GenericHibernateManualUpdateDao<Category,String>
addOrUpdate
public void addOrUpdate(Category bean,
ITransaction transaction)
throws PortalException
- Specified by:
addOrUpdate
in interface ICategoryDao
- Overrides:
addOrUpdate
in class GenericHibernateManualUpdateDao<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 interface ICategoryDao
- Overrides:
delete
in class GenericHibernateManualUpdateDao<Category,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 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 interface ICategoryDao
- Overrides:
get
in class GenericHibernateManualUpdateDao<Category,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
getCategoryContentItemIds
public List<String> getCategoryContentItemIds(Locale locale,
Category category,
Date startDateTime,
ITransaction transaction)
throws PortalException
- Specified by:
getCategoryContentItemIds
in interface ICategoryDao
- Returns:
-
- Throws:
PortalException
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.