com.atlassian.confluence.pages.persistence.dao.hibernate
Class HibernateDraftDao

java.lang.Object
  extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
      extended by 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
 
Constructor Summary
HibernateDraftDao()
           
 
Method Summary
 List findByOwner(String owner)
           
 Draft getDraft(String pageId, String owner, String type)
           
 void remove(Draft draft)
          remove a draft by matching its key (pageId, owner and type)
 void remove(long id)
          remove a draft by its id.
 void saveOrUpdate(Draft draft)
           
 void updateSpaceKey(String newSpaceKey, String oldSpaceKey)
           
 
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

log

public static final org.apache.log4j.Category log
Constructor Detail

HibernateDraftDao

public HibernateDraftDao()
Method Detail

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


Confluence is developed by Atlassian.