Top Description Constructors Methods
org.hibernate.boot.model.internal

public final Class HCANNHelper

extends Object
Class Inheritance
Annotations
@Internal
Imports
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement, .Member, java.util.ArrayList, .List, org.hibernate.Internal, org.hibernate.annotations.common.reflection.XAnnotatedElement, .XProperty, org.hibernate.annotations.common.reflection.java.JavaXMember

Manage the various fun-ness of dealing with HCANN...
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
public static <T extends Annotation> T
findAnnotation(XAnnotatedElement annotatedElement, Class<T> annotationType)

Return an annotation of the given type which annotates the given annotated program element, or which meta-annotates an annotation of the given annotated program element.

public static List<Annotation>
findContainingAnnotations(XAnnotatedElement annotatedElement, Class<? extends Annotation> annotationType)

Return an annotation of the given annotated program element which is annotated by the given type of meta-annotation.

public static Member
public static Member
public static boolean
hasAnnotation(AnnotatedElement element, Class<? extends Annotation> annotationToCheck)

public static boolean
hasAnnotation(AnnotatedElement element, Class<? extends Annotation> annotationToCheck, Class<? extends Annotation> annotationToCheck2)

public static boolean
hasAnnotation(XAnnotatedElement element, Class<? extends Annotation> annotationToCheck)

public static boolean
hasAnnotation(XAnnotatedElement element, Class<? extends Annotation> annotationToCheck, Class<? extends Annotation> annotationToCheck2)

public static boolean
hasAnnotation(XAnnotatedElement element, Class<? extends Annotation>... annotationsToCheck)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HCANNHelperback to summary
public HCANNHelper()

Method Detail

annotatedElementSignatureback to summary
public static String annotatedElementSignature(XProperty property)
Annotations
@Deprecated
annotatedElementSignatureback to summary
public static String annotatedElementSignature(final JavaXMember member)
findAnnotationback to summary
public static <T extends Annotation> T findAnnotation(XAnnotatedElement annotatedElement, Class<T> annotationType)

Return an annotation of the given type which annotates the given annotated program element, or which meta-annotates an annotation of the given annotated program element.

Implementation Note

Searches only one level deep

findContainingAnnotationsback to summary
public static List<Annotation> findContainingAnnotations(XAnnotatedElement annotatedElement, Class<? extends Annotation> annotationType)

Return an annotation of the given annotated program element which is annotated by the given type of meta-annotation.

Implementation Note

Searches only one level deep

getUnderlyingMemberback to summary
public static Member getUnderlyingMember(XProperty property)

Deprecated

Prefer using getUnderlyingMember(JavaXMember)

Annotations
@Deprecated
getUnderlyingMemberback to summary
public static Member getUnderlyingMember(final JavaXMember member)
hasAnnotationback to summary
public static boolean hasAnnotation(AnnotatedElement element, Class<? extends Annotation> annotationToCheck)
hasAnnotationback to summary
public static boolean hasAnnotation(AnnotatedElement element, Class<? extends Annotation> annotationToCheck, Class<? extends Annotation> annotationToCheck2)
hasAnnotationback to summary
public static boolean hasAnnotation(XAnnotatedElement element, Class<? extends Annotation> annotationToCheck)
hasAnnotationback to summary
public static boolean hasAnnotation(XAnnotatedElement element, Class<? extends Annotation> annotationToCheck, Class<? extends Annotation> annotationToCheck2)
hasAnnotationback to summary
public static boolean hasAnnotation(XAnnotatedElement element, Class<? extends Annotation>... annotationsToCheck)