Class DynamoDBPersistentEntityImpl<T>
- java.lang.Object
-
- org.springframework.data.mapping.model.BasicPersistentEntity<T,DynamoDBPersistentProperty>
-
- org.socialsignin.spring.data.dynamodb.mapping.DynamoDBPersistentEntityImpl<T>
-
- All Implemented Interfaces:
java.lang.Iterable<DynamoDBPersistentProperty>,DynamoDBPersistentEntity<T>,org.springframework.data.mapping.model.MutablePersistentEntity<T,DynamoDBPersistentProperty>,org.springframework.data.mapping.PersistentEntity<T,DynamoDBPersistentProperty>
public class DynamoDBPersistentEntityImpl<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,DynamoDBPersistentProperty> implements DynamoDBPersistentEntity<T>
DynamoDB specificDynamoDBPersistentEntityimplementation- Author:
- Michael Lavelle, Sebastian Just
-
-
Constructor Summary
Constructors Constructor Description DynamoDBPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information, java.util.Comparator<DynamoDBPersistentProperty> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DynamoDBPersistentPropertyreturnPropertyIfBetterIdPropertyCandidateOrNull(DynamoDBPersistentProperty property)Returns the given property if it is a better candidate for the id property than the current id property.-
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
-
-
-
Constructor Detail
-
DynamoDBPersistentEntityImpl
public DynamoDBPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information, java.util.Comparator<DynamoDBPersistentProperty> comparator)
-
-
Method Detail
-
returnPropertyIfBetterIdPropertyCandidateOrNull
protected DynamoDBPersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(DynamoDBPersistentProperty property)
Returns the given property if it is a better candidate for the id property than the current id property.- Overrides:
returnPropertyIfBetterIdPropertyCandidateOrNullin classorg.springframework.data.mapping.model.BasicPersistentEntity<T,DynamoDBPersistentProperty>- Parameters:
property- the new id property candidate, will never be null.- Returns:
- the given id property or null if the given property is not an id property.
-
-