public class CategoryDaoHib extends GenericHibernateManualUpdateDao<Category,String> implements ICategoryDao
Modifier | Constructor and Description |
---|---|
protected |
CategoryDaoHib() |
Modifier and Type | Method and Description |
---|---|
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) |
add, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
protected CategoryDaoHib()
persistentClass
- protected String getIdentifier(Category bean)
getIdentifier
in class GenericHibernateManualUpdateDao<Category,String>
public void addOrUpdate(Category bean, ITransaction transaction) throws PortalException
addOrUpdate
in interface ICategoryDao
addOrUpdate
in class GenericHibernateManualUpdateDao<Category,String>
PortalException
public boolean delete(String id, ITransaction transaction) throws PortalException
GenericHibernateManualUpdateDao
delete
in interface ICategoryDao
delete
in class GenericHibernateManualUpdateDao<Category,String>
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.PortalException
public Category get(String id, ITransaction transaction) throws PortalObjectNotFoundException, PortalException
GenericHibernateManualUpdateDao
get
in interface ICategoryDao
get
in class GenericHibernateManualUpdateDao<Category,String>
id
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.PortalObjectNotFoundException
- if the corresponding bean does not exist in the persistence.PortalException
public List<String> getCategoryContentItemIds(Locale locale, Category category, Date startDateTime, ITransaction transaction) throws PortalException
getCategoryContentItemIds
in interface ICategoryDao
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.