Class ReflectedField<T,E>
java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.ReflectedField<T,E>
- Type Parameters:
T- InputE- Value
Simple wrapper for a field to make it easily readable. If the fields is not accessible, it is made accessible with
the
AccessHelper.readFieldVariable(Field, Object).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,E> ReflectedField<T, E> createReflectedField(Class<T> domainClass, String fieldName) Reads the field of the given object.
-
Constructor Details
-
ReflectedField
-
-
Method Details
-
createReflectedField
public static <T,E> ReflectedField<T,E> createReflectedField(Class<T> domainClass, String fieldName) -
readValue
Reads the field of the given object. If the fields is not accessible, it is made accessible with theAccessHelper.readFieldVariable(Field, Object).- Parameters:
object- to read the field of- Returns:
- value of the field in the given object.
-