|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.helpers.perftest.support.jpa.JPAUtil
public class JPAUtil
A set of utility methods to work with JPA annotated classes.
| Method Summary | |
|---|---|
static Field |
getField(Class<?> clazz,
String name)
|
static Annotations |
getJPAAnnotations(Class<?> clazz)
Returns all the JPA annotations declared on the class. |
static Annotations |
getJPAAnnotations(Field field)
Returns all the JPA annotations declared on the field. |
static Map<Field,Annotations> |
getJPAFields(Class<?> clazz)
Returns all the JPA annotated fields on given class along with their annotations. |
static Set<Field> |
getJPAFields(Class<?> clazz,
Class<? extends Annotation> desiredAnnotation)
Returns all the fields of given class that have the desired annotation defined. |
static boolean |
isEntity(Class<?> clazz)
Returns true if the class is annotated with Entity annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isEntity(Class<?> clazz)
Entity annotation.
clazz -
public static Annotations getJPAAnnotations(Class<?> clazz)
clazz -
public static Annotations getJPAAnnotations(Field field)
field -
public static Map<Field,Annotations> getJPAFields(Class<?> clazz)
clazz -
public static Set<Field> getJPAFields(Class<?> clazz,
Class<? extends Annotation> desiredAnnotation)
clazz - desiredAnnotation -
public static Field getField(Class<?> clazz,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||