public class GraphPathBean extends OnContextRefreshedEventListener
Constructor and Description |
---|
GraphPathBean() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllClasses()
Get all the classes mapped by Hibernate.
|
Class<? extends IObject> |
getClassForSimpleName(String simpleName) |
Set<String> |
getDirectSubclassesOf(String className)
Get the direct subclasses of the given class, if any.
|
String |
getDirectSuperclassOf(String className)
Get the direct superclass of the given class, if any.
|
String |
getIdentifierProperty(String className)
Get the identifier property for the given class.
|
String |
getInterfaceImplemented(String className,
String propertyName)
Get the interface whose method is implemented by a specific class property, if any.
|
Set<Map.Entry<String,String>> |
getLinkedBy(String className)
Get the classes and properties that link to the given class.
|
Set<Map.Entry<String,String>> |
getLinkedTo(String className)
Get the classes and properties to which the given class links.
|
ome.services.graphs.GraphPathBean.PropertyKind |
getPropertyKind(String className,
String propertyName)
Get what kind of property a specific class property is.
|
org.hibernate.type.Type |
getPropertyType(String className,
String propertyName)
Get the Hibernate type of a specific class property.
|
Set<String> |
getSimpleProperties(String className)
Deprecated.
instead use
getSimpleProperties(String, boolean) setting isNested to false |
Set<String> |
getSimpleProperties(String className,
boolean isNested)
Get the
simpleproperties for the given class, not linking to other mapped classes. |
Set<String> |
getSubclassesOf(String className)
Get the subclasses of the given class, if any.
|
Collection<String> |
getSubclassesOfReflexive(String className)
Get the name of this class and of its mapped subclasses.
|
Set<String> |
getSuperclassesOf(String className)
Get the superclasses of the given class, if any.
|
Collection<String> |
getSuperclassesOfReflexive(String className)
Get the name of this class and of its mapped superclasses.
|
void |
handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
The application context after refresh should contain a usable Hibernate session factory.
|
boolean |
isPropertyAccessible(String className,
String propertyName)
Find if the given property can be accessed.
|
onApplicationEvent, setApplicationContext
public void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
handleContextRefreshedEvent
in class OnContextRefreshedEventListener
event
- the context refreshed event bearing the new application contextpublic Class<? extends IObject> getClassForSimpleName(String simpleName)
simpleName
- the simple name of a mapped IObject classnull
if one is not knownpublic Collection<String> getAllClasses()
public String getDirectSuperclassOf(String className)
className
- the name of a classnull
public Set<String> getSuperclassesOf(String className)
className
- the name of a classnull
public Collection<String> getSuperclassesOfReflexive(String className)
className
- the name of a classnull
public Set<String> getDirectSubclassesOf(String className)
className
- the name of a classnull
public Set<String> getSubclassesOf(String className)
className
- the name of a classnull
public Collection<String> getSubclassesOfReflexive(String className)
className
- the name of a classnull
public Set<Map.Entry<String,String>> getLinkedTo(String className)
className
- the name of a classnull
public Set<Map.Entry<String,String>> getLinkedBy(String className)
className
- the name of a classnull
public ome.services.graphs.GraphPathBean.PropertyKind getPropertyKind(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that classpublic org.hibernate.type.Type getPropertyType(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that classpublic String getInterfaceImplemented(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that classnull
public boolean isPropertyAccessible(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that classpublic String getIdentifierProperty(String className)
className
- the name of a classnull
if one is not known@Deprecated public Set<String> getSimpleProperties(String className)
getSimpleProperties(String, boolean)
setting isNested
to false
simplenon-nested properties for the given class, not linking to other mapped classes.
className
- the name of a classsimpleproperties of the given class; never
null
public Set<String> getSimpleProperties(String className, boolean isNested)
simpleproperties for the given class, not linking to other mapped classes.
className
- the name of a classisNested
- if nested properties should have all components given separately with dot-notationsimpleproperties of the given class; never
null
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.