public class PersistentAttributesHelper extends Object
ReflectHelper
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
getAnnotation(javassist.CtClass ctClass,
String attributeName,
Class<T> annotation) |
static <T extends Annotation> |
getAnnotation(javassist.CtField attribute,
Class<T> annotation) |
static String |
getMappedBy(javassist.CtField persistentField,
javassist.CtClass targetEntity,
EnhancementContext context) |
static javassist.CtClass |
getTargetEntityClass(javassist.CtClass managedCtClass,
javassist.CtField persistentField) |
static boolean |
hasAnnotation(javassist.CtClass ctClass,
String attributeName,
Class<? extends Annotation> annotation) |
static boolean |
hasAnnotation(javassist.CtField attribute,
Class<? extends Annotation> annotation) |
static boolean |
isAssignable(javassist.CtClass thisCtClass,
String targetClassName) |
static boolean |
isPossibleBiDirectionalAssociation(javassist.CtField persistentField) |
public static boolean hasAnnotation(javassist.CtField attribute, Class<? extends Annotation> annotation)
public static boolean hasAnnotation(javassist.CtClass ctClass, String attributeName, Class<? extends Annotation> annotation)
public static <T extends Annotation> T getAnnotation(javassist.CtField attribute, Class<T> annotation)
public static <T extends Annotation> T getAnnotation(javassist.CtClass ctClass, String attributeName, Class<T> annotation)
public static boolean isPossibleBiDirectionalAssociation(javassist.CtField persistentField)
public static String getMappedBy(javassist.CtField persistentField, javassist.CtClass targetEntity, EnhancementContext context)
public static javassist.CtClass getTargetEntityClass(javassist.CtClass managedCtClass, javassist.CtField persistentField) throws javassist.NotFoundException
javassist.NotFoundException
public static boolean isAssignable(javassist.CtClass thisCtClass, String targetClassName)
Copyright © 2016 JBoss by Red Hat. All rights reserved.