com.atlassian.confluence.content.persistence.hibernate
Class HibernateContentQueryModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>
      extended by com.atlassian.confluence.content.persistence.hibernate.HibernateContentQueryModuleDescriptor
All Implemented Interfaces:
PluginModuleFactory<HibernateContentQueryFactory>, ModuleDescriptor<HibernateContentQueryFactory>, Resourced, StateAware

public class HibernateContentQueryModuleDescriptor
extends AbstractModuleDescriptor<HibernateContentQueryFactory>
implements PluginModuleFactory<HibernateContentQueryFactory>

Module descriptor to allow plugins to provide custom queries for looking up pluggable content. The aim is to provide an abstraction between making a query and the raw Hibernate implementation of that query, without having to come up with Yet Another Query Language.


Field Summary
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton
 
Constructor Summary
HibernateContentQueryModuleDescriptor()
           
 
Method Summary
 HibernateContentQueryFactory createModule()
           
 void disabled()
           
 void enabled()
           
 HibernateContentQueryFactory getModule()
           
 String getQueryName()
           
 void init(Plugin plugin, Element element)
           
 String toString()
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HibernateContentQueryModuleDescriptor

public HibernateContentQueryModuleDescriptor()
Method Detail

init

public void init(@NotNull
                 Plugin plugin,
                 @NotNull
                 Element element)
          throws PluginParseException
Specified by:
init in interface ModuleDescriptor<HibernateContentQueryFactory>
Overrides:
init in class AbstractModuleDescriptor<HibernateContentQueryFactory>
Throws:
PluginParseException

enabled

public void enabled()
Specified by:
enabled in interface StateAware
Overrides:
enabled in class AbstractModuleDescriptor<HibernateContentQueryFactory>

disabled

public void disabled()
Specified by:
disabled in interface StateAware
Overrides:
disabled in class AbstractModuleDescriptor<HibernateContentQueryFactory>

getModule

public HibernateContentQueryFactory getModule()
Specified by:
getModule in interface ModuleDescriptor<HibernateContentQueryFactory>
Specified by:
getModule in class AbstractModuleDescriptor<HibernateContentQueryFactory>

createModule

public HibernateContentQueryFactory createModule()
Specified by:
createModule in interface PluginModuleFactory<HibernateContentQueryFactory>

getQueryName

public String getQueryName()

toString

public String toString()
Overrides:
toString in class AbstractModuleDescriptor<HibernateContentQueryFactory>


Confluence is developed by Atlassian.