Class FieldAndGetterReflectionEntityInformation<T,ID>
- java.lang.Object
-
- org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
-
- org.socialsignin.spring.data.dynamodb.repository.support.FieldAndGetterReflectionEntityInformation<T,ID>
-
- All Implemented Interfaces:
org.springframework.data.repository.core.EntityInformation<T,ID>,org.springframework.data.repository.core.EntityMetadata<T>
- Direct Known Subclasses:
DynamoDBIdIsHashAndRangeKeyEntityInformationImpl,DynamoDBIdIsHashKeyEntityInformationImpl
public class FieldAndGetterReflectionEntityInformation<T,ID> extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>EntityInformationimplementation that inspects getters for an annotation and invokes this getter's value to retrieve the id.- Author:
- Michael Lavelle, Sebastian Just
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Methodmethod
-
Constructor Summary
Constructors Constructor Description FieldAndGetterReflectionEntityInformation(java.lang.Class<T> domainClass, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)Creates a newFieldAndGetterReflectionEntityInformationinspecting the given domain class for a getter carrying the given annotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDgetId(T entity)java.lang.Class<ID>getIdType()-
Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNew
-
-
-
-
Constructor Detail
-
FieldAndGetterReflectionEntityInformation
public FieldAndGetterReflectionEntityInformation(@NonNull java.lang.Class<T> domainClass, @NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation)Creates a newFieldAndGetterReflectionEntityInformationinspecting the given domain class for a getter carrying the given annotation.- Parameters:
domainClass- must not be null.annotation- must not be null.
-
-