|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate.support.HibernateDaoSupport net.sf.oness.common.model.dao.hibernate.HibernateDaoSupport net.sf.oness.common.model.dao.hibernate.HibernateDao
Dao that uses Hibernate for persistence
Field Summary | |
static java.lang.String |
WHERE_NOT_DELETED
|
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
Constructor Summary | |
HibernateDao(java.lang.Class theClass)
Create a HibernateDao for the class specified |
|
HibernateDao(java.lang.String className)
Create a HibernateDao for the class with name specified by className |
Method Summary | |
AuditableBusinessObject |
create(AuditableBusinessObject bo)
Create a new object, the id value will be ignored |
void |
delete(java.io.Serializable id)
Not implemented |
java.util.Collection |
filterNotDeleted(java.util.Collection collection)
Filter a persistent collection, getting not deleted values. |
PaginatedList |
find(AuditableBusinessObject bo,
int firstElement,
int maxElements)
Find objects with properties matching those of value. |
java.util.List |
findAll()
Return all persistent instances of the given class |
java.util.List |
findById(java.util.Collection ids)
Find a List of objects by their identifiers. |
AuditableBusinessObject |
findById(java.io.Serializable id)
Find an object by its identifier. |
AuditableBusinessObject |
findWithDetails(java.io.Serializable id)
Find an object and all related entities by its identifier. |
protected AuditableBusinessObject |
load(java.io.Serializable id)
Return the persistent instance with the given identifier, assuming that the instance exists. |
AuditableBusinessObject |
update(AuditableBusinessObject bo)
Update an object |
Methods inherited from class net.sf.oness.common.model.dao.hibernate.HibernateDaoSupport |
filter, findByProperty, findByPropertyContent, loadAndClone |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WHERE_NOT_DELETED
Constructor Detail |
public HibernateDao(java.lang.Class theClass)
net.sf.hibernate.HibernateException
public HibernateDao(java.lang.String className) throws java.lang.ClassNotFoundException
className
-
java.lang.ClassNotFoundException
net.sf.hibernate.HibernateException
Method Detail |
protected AuditableBusinessObject load(java.io.Serializable id)
id
- a valid identifier of an existing persistent instance of the
class
public AuditableBusinessObject findById(java.io.Serializable id)
AuditableDao
findById
in interface AuditableDao
id
- identifier
AuditableDao.findById(java.io.Serializable)
public java.util.List findById(java.util.Collection ids)
FinderDao
findById
in interface FinderDao
ids
- collection of identifiers
net.sf.oness.common.model.dao.AuditableDao#findById(java.util.Collection)
public AuditableBusinessObject findWithDetails(java.io.Serializable id)
AuditableDao
findWithDetails
in interface AuditableDao
id
- identifier
AuditableDao.findWithDetails(java.io.Serializable)
public AuditableBusinessObject create(AuditableBusinessObject bo)
AuditableDao
create
in interface AuditableDao
bo
-
net.sf.oness.common.model.dao.AuditableDao#create(net.sf.oness.common.model.bo.Auditable)
public AuditableBusinessObject update(AuditableBusinessObject bo)
AuditableDao
update
in interface AuditableDao
bo
- value to update
net.sf.oness.common.model.dao.AuditableDao#update(net.sf.oness.common.model.bo.Auditable)
public PaginatedList find(AuditableBusinessObject bo, int firstElement, int maxElements)
FinderDao
find
in interface FinderDao
bo
- parameters to filter onfirstElement
- the first result, numbered from 0maxElements
- the maximum number of results
net.sf.oness.common.model.dao.FinderDao#find(net.sf.oness.common.model.bo.Auditable,
int, int)
public void delete(java.io.Serializable id)
delete
in interface AuditingDao
id
- The id of the value to delete
java.lang.UnsupportedOperationException
net.sf.oness.common.model.dao.AuditableDao#delete(java.io.Serializable)
public java.util.List findAll()
findAll
in interface FinderDao
public java.util.Collection filterNotDeleted(java.util.Collection collection)
collection
- a persistent collection to filter
Session.filter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |