lumis.service.newsletter
Class ModelDaoHib

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

public class ModelDaoHib
extends GenericHibernateManualUpdateDao<Model,String>
implements IModelDao

Since:
4.0.8

Constructor Summary
ModelDaoHib()
           
 
Method Summary
 void addOrUpdate(Model model, ITransaction transaction)
           
 boolean delete(String modelId, ITransaction transaction)
          Deletes the bean with the given id from persistence.
 Model get(String modelId, ITransaction transaction)
          Returns the bean with the given id.
protected  String getIdentifier(Model 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

ModelDaoHib

public ModelDaoHib()
Parameters:
persistentClass -
Since:
4.0.8
Method Detail

getIdentifier

protected String getIdentifier(Model bean)
Specified by:
getIdentifier in class GenericHibernateManualUpdateDao<Model,String>

addOrUpdate

public void addOrUpdate(Model model,
                        ITransaction transaction)
                 throws DaoException,
                        PortalException
Specified by:
addOrUpdate in interface IModelDao
Overrides:
addOrUpdate in class GenericHibernateManualUpdateDao<Model,String>
Throws:
DaoException
PortalException

delete

public boolean delete(String modelId,
                      ITransaction transaction)
               throws DaoException,
                      PortalException
Description copied from class: GenericHibernateManualUpdateDao
Deletes the bean with the given id from persistence.

Specified by:
delete in interface IModelDao
Overrides:
delete in class GenericHibernateManualUpdateDao<Model,String>
Parameters:
modelId - 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:
DaoException
PortalException

get

public Model get(String modelId,
                 ITransaction transaction)
          throws DaoException,
                 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 IModelDao
Overrides:
get in class GenericHibernateManualUpdateDao<Model,String>
Parameters:
modelId - the bean's id.
transaction - the transaction for persistence access. Must be a ITransactionHibernate.
Returns:
the bean.
Throws:
DaoException
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.