com.atlassian.confluence.pages.persistence.dao.hibernate
Class HibernateDraftDao
java.lang.Object
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateDraftDao
- All Implemented Interfaces:
- DraftDao, org.springframework.beans.factory.InitializingBean
public class HibernateDraftDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements DraftDao
|
Field Summary |
static org.apache.log4j.Category |
log
|
| Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
| 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 |
log
public static final org.apache.log4j.Category log
HibernateDraftDao
public HibernateDraftDao()
saveOrUpdate
public void saveOrUpdate(Draft draft)
- Specified by:
saveOrUpdate in interface DraftDao
getDraft
public Draft getDraft(String pageId,
String owner,
String type)
- Specified by:
getDraft in interface DraftDao
remove
public void remove(Draft draft)
- Description copied from interface:
DraftDao
- remove a draft by matching its key (pageId, owner and type)
- Specified by:
remove in interface DraftDao
remove
public void remove(long id)
- Description copied from interface:
DraftDao
- remove a draft by its id.
- Specified by:
remove in interface DraftDao
findByOwner
public List findByOwner(String owner)
- Specified by:
findByOwner in interface DraftDao
updateSpaceKey
public void updateSpaceKey(String newSpaceKey,
String oldSpaceKey)
- Specified by:
updateSpaceKey in interface DraftDao