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
 java.util.Iterator getAllPluginData()
           
 java.util.Iterator<PluginDataWithoutBinary> getAllPluginDataWithoutBinary()
           
 PluginData getPluginData(java.lang.String key)
           
 boolean pluginDataExists(java.lang.String key)
           
 void remove(java.lang.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(java.lang.String key)
                         throws org.springframework.orm.ObjectRetrievalFailureException
Specified by:
getPluginData in interface PluginDataDao
Throws:
org.springframework.orm.ObjectRetrievalFailureException

getAllPluginData

public java.util.Iterator getAllPluginData()
Specified by:
getAllPluginData in interface PluginDataDao

getAllPluginDataWithoutBinary

public java.util.Iterator<PluginDataWithoutBinary> getAllPluginDataWithoutBinary()
Specified by:
getAllPluginDataWithoutBinary in interface PluginDataDao

saveOrUpdate

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

remove

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

pluginDataExists

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.