com.atlassian.confluence.plugin.persistence.hibernate
Class HibernatePluginDataDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.confluence.plugin.persistence.hibernate.HibernatePluginDataDao
All Implemented Interfaces:
PluginDataDao, org.springframework.beans.factory.InitializingBean

public class HibernatePluginDataDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements PluginDataDao

Hibernate implementation of a PluginDataDao, which stores plugin JARs in a database for distribution among clustered application nodes.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernatePluginDataDao()
           
 
Method Summary
 Iterator getAllPluginData()
           
 PluginData getPluginData(String key)
           
 boolean pluginDataExists(String key)
           
 void remove(String key)
           
 void saveOrUpdate(PluginData pluginData)
           
 
Methods inherited from class org.springframework.orm.hibernate.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
 

Constructor Detail

HibernatePluginDataDao

public HibernatePluginDataDao()
Method Detail

getPluginData

public PluginData getPluginData(String key)
                         throws org.springframework.orm.ObjectRetrievalFailureException
Specified by:
getPluginData in interface PluginDataDao
Throws:
org.springframework.orm.ObjectRetrievalFailureException

getAllPluginData

public Iterator getAllPluginData()
Specified by:
getAllPluginData in interface PluginDataDao

saveOrUpdate

public void saveOrUpdate(PluginData pluginData)
Specified by:
saveOrUpdate in interface PluginDataDao

remove

public void remove(String key)
            throws org.springframework.orm.ObjectRetrievalFailureException
Specified by:
remove in interface PluginDataDao
Throws:
org.springframework.orm.ObjectRetrievalFailureException

pluginDataExists

public boolean pluginDataExists(String key)
Specified by:
pluginDataExists in interface PluginDataDao


Copyright © 2003-2013 Atlassian. All Rights Reserved.