|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport com.atlassian.crowd.util.persistence.hibernate.HibernateDao
public abstract class HibernateDao
Generic persistence class for storing Hibernate persistence objects.
Field Summary | |
---|---|
protected BatchProcessor |
batchProcessor
|
Constructor Summary | |
---|---|
HibernateDao()
|
Method Summary | |
---|---|
abstract java.lang.Class |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for load(long) to
work correctly |
java.lang.Object |
load(long ID)
Loads a persistnce DAO object from the persistence store. |
void |
remove(java.lang.Object persistentObject)
Removes the DAO object from the persistence store. |
void |
save(java.lang.Object persistentObject)
Saves a new DAO object to the persistence store. |
void |
saveOrUpdate(java.lang.Object persistentObject)
Saves or updates DAO object to the persistence store. |
void |
setBatchProcessor(BatchProcessor batchProcessor)
|
void |
update(java.lang.Object persistentObject)
Updates an existing DAO object, if the object does not exist it will be added to the persistence store. |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BatchProcessor batchProcessor
Constructor Detail |
---|
public HibernateDao()
Method Detail |
---|
public void save(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
save
in interface ObjectDao
persistentObject
- The object to save.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public void saveOrUpdate(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
persistentObject
- The object to save or update.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public void update(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
update
in interface ObjectDao
persistentObject
- The object to update.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public void remove(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
remove
in interface ObjectDao
persistentObject
- The object to remove.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public java.lang.Object load(long ID) throws ObjectNotFoundException
load
in interface ObjectDao
ID
- The unique identifier of the object to load from the persistence store.
ObjectNotFoundException
- if the given object with ID
for the persistent class does not existpublic abstract java.lang.Class getPersistentClass()
load(long)
to
work correctly
getPersistentClass
in interface ObjectDao
public void setBatchProcessor(BatchProcessor batchProcessor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |