public class EntityUtils
Entity utility methods.
public static EntityUtils INSTANCE
Entity utility methods.
@NotNull public java.lang.reflect.Field[] getFieldsWithAnnotation(@NotNull java.lang.Class<?> clazz, @NotNull java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Gets an array of Fields of the given clazz
, annotated with the given annotationClass
.
clazz
- Class where the fields are foundannotationClass
- : Annotation Class present on any fieldclazz
,
annotationClass
@NotNull public java.lang.Class<?> getFieldClass(@NotNull java.lang.reflect.Field field)
Gets the type of the given field
.
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getJoinAnnotationClass(@NotNull java.lang.reflect.Field field)
Gets the Join Annotation of the given field
.
If the field has no Join Annotation, the methods returns null
.
field
- Field objectnull
if no Join Annotation.field