Package com.kenshoo.pl.entity.internal
Class EntityTypeReflectionUtil
- java.lang.Object
-
- com.kenshoo.pl.entity.internal.EntityTypeReflectionUtil
-
public abstract class EntityTypeReflectionUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EntityTypeReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends EntityType<E>,A extends java.lang.annotation.Annotation>
java.util.function.Predicate<EntityField<E,?>>annotatedWith(E entityType, java.lang.Class<A> annotationType)static <E extends EntityType<E>,A extends java.lang.annotation.Annotation>
java.util.function.Predicate<EntityField<E,?>>annotatedWith(E entityType, java.lang.Class<A> annotationType, java.util.function.Predicate<A> predicate)static <E extends EntityType<E>,A extends java.lang.annotation.Annotation>
AgetFieldAnnotation(EntityType<E> entityType, EntityField<E,?> entityField, java.lang.Class<A> annotationType)static <E extends EntityType<E>>
java.util.Map<EntityFieldPrototype<?>,EntityField<E,?>>getFieldMappingByPrototype(E entityType, java.util.Collection<EntityFieldPrototype<?>> entityFieldPrototypes)static <E extends EntityType<E>,T>
java.util.Set<EntityField<E,T>>getFieldsByPrototype(E entityType, EntityFieldPrototype<T> entityFieldPrototype)static <E extends EntityType<E>>
com.google.common.collect.BiMap<java.lang.String,EntityField<E,?>>getFieldToNameBiMap(EntityType<E> entityType)static <E extends EntityType<E>,FE extends PartialEntity>
java.util.Map<java.lang.reflect.Method,EntityField<E,?>>getMethodsMap(E entityType, java.lang.Class<FE> fetchedEntityIface)static <E extends EntityType<E>,A extends java.lang.annotation.Annotation>
booleanisAnnotatedWith(EntityType<E> entityType, java.lang.Class<A> annotationType, EntityField<E,?> field)
-
-
-
Method Detail
-
getFieldsByPrototype
public static <E extends EntityType<E>,T> java.util.Set<EntityField<E,T>> getFieldsByPrototype(E entityType, EntityFieldPrototype<T> entityFieldPrototype)
-
getFieldMappingByPrototype
public static <E extends EntityType<E>> java.util.Map<EntityFieldPrototype<?>,EntityField<E,?>> getFieldMappingByPrototype(E entityType, java.util.Collection<EntityFieldPrototype<?>> entityFieldPrototypes)
-
getMethodsMap
public static <E extends EntityType<E>,FE extends PartialEntity> java.util.Map<java.lang.reflect.Method,EntityField<E,?>> getMethodsMap(E entityType, java.lang.Class<FE> fetchedEntityIface)
-
getFieldToNameBiMap
public static <E extends EntityType<E>> com.google.common.collect.BiMap<java.lang.String,EntityField<E,?>> getFieldToNameBiMap(EntityType<E> entityType)
-
getFieldAnnotation
public static <E extends EntityType<E>,A extends java.lang.annotation.Annotation> A getFieldAnnotation(EntityType<E> entityType, EntityField<E,?> entityField, java.lang.Class<A> annotationType)
-
annotatedWith
public static <E extends EntityType<E>,A extends java.lang.annotation.Annotation> java.util.function.Predicate<EntityField<E,?>> annotatedWith(E entityType, java.lang.Class<A> annotationType)
-
annotatedWith
public static <E extends EntityType<E>,A extends java.lang.annotation.Annotation> java.util.function.Predicate<EntityField<E,?>> annotatedWith(E entityType, java.lang.Class<A> annotationType, java.util.function.Predicate<A> predicate)
-
isAnnotatedWith
public static <E extends EntityType<E>,A extends java.lang.annotation.Annotation> boolean isAnnotatedWith(EntityType<E> entityType, java.lang.Class<A> annotationType, EntityField<E,?> field)
-
-