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>, com.atlassian.plugin.ModuleDescriptor<HibernateContentQueryFactory>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware

public class HibernateContentQueryModuleDescriptor
extends com.atlassian.plugin.descriptors.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
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton
 
Constructor Summary
HibernateContentQueryModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
           
 
Method Summary
 HibernateContentQueryFactory createModule()
           
 void disabled()
           
 void enabled()
           
 HibernateContentQueryFactory getModule()
           
 java.lang.String getQueryName()
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, 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(com.atlassian.plugin.module.ModuleFactory moduleFactory)
Method Detail

init

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

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware
Overrides:
enabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware
Overrides:
disabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>

getModule

public HibernateContentQueryFactory getModule()
Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor<HibernateContentQueryFactory>
Specified by:
getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>

createModule

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

getQueryName

public java.lang.String getQueryName()

toString

public java.lang.String toString()
Overrides:
toString in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<HibernateContentQueryFactory>


Copyright © 2003-2014 Atlassian. All Rights Reserved.