public class ModelDaoHib extends GenericHibernateManualUpdateDao<Model,String> implements IModelDao
Constructor and Description |
---|
ModelDaoHib() |
Modifier and Type | Method and Description |
---|---|
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) |
add, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
protected String getIdentifier(Model bean)
getIdentifier
in class GenericHibernateManualUpdateDao<Model,String>
public void addOrUpdate(Model model, ITransaction transaction) throws DaoException, PortalException
addOrUpdate
in interface IModelDao
addOrUpdate
in class GenericHibernateManualUpdateDao<Model,String>
DaoException
PortalException
public boolean delete(String modelId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
delete
in interface IModelDao
delete
in class GenericHibernateManualUpdateDao<Model,String>
modelId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.DaoException
PortalException
public Model get(String modelId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
get
in interface IModelDao
get
in class GenericHibernateManualUpdateDao<Model,String>
modelId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.DaoException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.