Package lumis.service.newsletter
Class ModelDaoHib
- java.lang.Object
-
- lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Model,java.lang.String>
-
- lumis.service.newsletter.ModelDaoHib
-
- All Implemented Interfaces:
IModelDao
public class ModelDaoHib extends GenericHibernateManualUpdateDao<Model,java.lang.String> implements IModelDao
- Since:
- 4.0.8
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ModelDaoHib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(Model model, ITransaction transaction)
boolean
delete(java.lang.String modelId, ITransaction transaction)
Deletes the bean with the given id from persistence.Model
get(java.lang.String modelId, ITransaction transaction)
Returns the bean with the given id.protected java.lang.String
getIdentifier(Model 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(Model bean)
- Specified by:
getIdentifier
in classGenericHibernateManualUpdateDao<Model,java.lang.String>
-
addOrUpdate
public void addOrUpdate(Model model, ITransaction transaction) throws DaoException, PortalException
- Specified by:
addOrUpdate
in interfaceIModelDao
- Overrides:
addOrUpdate
in classGenericHibernateManualUpdateDao<Model,java.lang.String>
- Throws:
DaoException
PortalException
-
delete
public boolean delete(java.lang.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 interfaceIModelDao
- Overrides:
delete
in classGenericHibernateManualUpdateDao<Model,java.lang.String>
- Parameters:
modelId
- 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:
DaoException
PortalException
-
get
public Model get(java.lang.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 interfaceIModelDao
- Overrides:
get
in classGenericHibernateManualUpdateDao<Model,java.lang.String>
- Parameters:
modelId
- the bean's id.transaction
- the transaction for persistence access. Must be aITransactionHibernate
.- Returns:
- the bean.
- Throws:
DaoException
PortalException
-
-