Class HibernatePluginDataDao
- java.lang.Object
-
- com.atlassian.confluence.plugin.persistence.hibernate.HibernatePluginDataDao
-
- All Implemented Interfaces:
PluginDataDao
public class HibernatePluginDataDao extends Object implements PluginDataDao
Hibernate implementation of a PluginDataDao, which stores plugin JARs in a database for distribution among clustered application nodes.
-
-
Constructor Summary
Constructors Constructor Description HibernatePluginDataDao(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<PluginData>
getAllPluginData()
Iterator<PluginDataWithoutBinary>
getAllPluginDataWithoutBinary()
Same as callingPluginDataDao.getAllPluginData()
, except that this does not load the plugin binary into memory.PluginData
getPluginData(String key)
PluginDataWithoutBinary
getPluginDataWithoutBinary(String key)
Same as callingPluginDataDao.getPluginData(String)
, except that this does not load the plugin binary into memory.boolean
pluginDataExists(String key)
void
remove(String key)
void
saveOrUpdate(PluginData pluginData)
-
-
-
Method Detail
-
getPluginData
public PluginData getPluginData(String key) throws org.springframework.orm.ObjectRetrievalFailureException
- Specified by:
getPluginData
in interfacePluginDataDao
- Throws:
org.springframework.orm.ObjectRetrievalFailureException
-
getPluginDataWithoutBinary
public PluginDataWithoutBinary getPluginDataWithoutBinary(String key)
Description copied from interface:PluginDataDao
Same as callingPluginDataDao.getPluginData(String)
, except that this does not load the plugin binary into memory.- Specified by:
getPluginDataWithoutBinary
in interfacePluginDataDao
-
getAllPluginData
public Iterator<PluginData> getAllPluginData()
- Specified by:
getAllPluginData
in interfacePluginDataDao
-
getAllPluginDataWithoutBinary
public Iterator<PluginDataWithoutBinary> getAllPluginDataWithoutBinary()
Description copied from interface:PluginDataDao
Same as callingPluginDataDao.getAllPluginData()
, except that this does not load the plugin binary into memory.- Specified by:
getAllPluginDataWithoutBinary
in interfacePluginDataDao
-
saveOrUpdate
public void saveOrUpdate(PluginData pluginData)
- Specified by:
saveOrUpdate
in interfacePluginDataDao
-
remove
public void remove(String key) throws org.springframework.orm.ObjectRetrievalFailureException
- Specified by:
remove
in interfacePluginDataDao
- Throws:
org.springframework.orm.ObjectRetrievalFailureException
-
pluginDataExists
public boolean pluginDataExists(String key)
- Specified by:
pluginDataExists
in interfacePluginDataDao
-
-