public abstract class ReflectionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsSearchAnnotations(org.hibernate.annotations.common.reflection.XClass mappedClass)
Checks whether the specified class contains any Search specific annotations.
|
static List<org.hibernate.annotations.common.reflection.XClass> |
createXClassHierarchy(org.hibernate.annotations.common.reflection.XClass clazz)
Creates the class hierarchy for a given
XClass . |
static String |
getAttributeName(org.hibernate.annotations.common.reflection.XMember member,
String name)
Get attribute name out of member unless overridden by
name . |
static Object |
getMemberValue(Object bean,
org.hibernate.annotations.common.reflection.XMember getter) |
static boolean |
isSearchAnnotation(Annotation annotation)
Checks if the annotation is a Search annotation by comparing the package of the annotation.
|
static void |
setAccessible(AccessibleObject member)
Always use this method to set accessibility regardless of the visibility.
|
static void |
setAccessible(org.hibernate.annotations.common.reflection.XMember member)
Always use this method to set accessibility regardless of the visibility.
|
public static String getAttributeName(org.hibernate.annotations.common.reflection.XMember member, String name)
name
.member
- XMember
from which to extract the name.name
- Override value which will be returned in case it is not empty.name
.public static void setAccessible(org.hibernate.annotations.common.reflection.XMember member)
public static void setAccessible(AccessibleObject member)
public static Object getMemberValue(Object bean, org.hibernate.annotations.common.reflection.XMember getter)
public static List<org.hibernate.annotations.common.reflection.XClass> createXClassHierarchy(org.hibernate.annotations.common.reflection.XClass clazz)
XClass
.clazz
- the class for which to create the hierarchyjava.lang.Object
public static boolean containsSearchAnnotations(org.hibernate.annotations.common.reflection.XClass mappedClass)
mappedClass
- the XClass
to check for Search annotationstrue
if the class contains at least one Search annotation, false
otherwisepublic static boolean isSearchAnnotation(Annotation annotation)
annotation
- the annotation to checktrue
if the annotation is a Search annotation, false
otherwiseCopyright © 2006–2016 Hibernate. All rights reserved.