lumis.service.newsletter
Class CategoryDaoHib

Package class diagram package CategoryDaoHib
java.lang.Object
  extended by lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Category,String>
      extended by lumis.service.newsletter.CategoryDaoHib
All Implemented Interfaces:
ICategoryDao

public class CategoryDaoHib
extends GenericHibernateManualUpdateDao<Category,String>
implements ICategoryDao

Since:
4.0.8

Constructor Summary
protected CategoryDaoHib()
           
 
Method Summary
 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, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryDaoHib

protected CategoryDaoHib()
Parameters:
persistentClass -
Since:
4.0.8
Method Detail

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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.