Interface DynamoDBEntityInformation<T,ID>
-
- All Superinterfaces:
DynamoDBHashKeyExtractingEntityMetadata<T>,org.springframework.data.repository.core.EntityInformation<T,ID>,org.springframework.data.repository.core.EntityMetadata<T>
- All Known Subinterfaces:
DynamoDBIdIsHashAndRangeKeyEntityInformation<T,ID>
- All Known Implementing Classes:
DynamoDBIdIsHashAndRangeKeyEntityInformationImpl,DynamoDBIdIsHashKeyEntityInformationImpl
public interface DynamoDBEntityInformation<T,ID> extends org.springframework.data.repository.core.EntityInformation<T,ID>, DynamoDBHashKeyExtractingEntityMetadata<T>
Encapsulates minimal information needed to load DynamoDB entities. As a minimum, provides access to hash-key related metadata. Implementing classes can elect to be either range-key aware or not. If a subclass is not range-key aware it should return null from getRangeKey(ID id) method, and return false from isRangeKeyAware and isCompositeHashAndRangeKeyProperty methods- Author:
- Michael Lavelle, Sebastian Just
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.ObjectgetHashKey(ID id)java.util.Optional<java.lang.Integer>getLimit()java.util.Optional<java.lang.String>getProjection()default java.lang.ObjectgetRangeKey(ID id)booleanisCompositeHashAndRangeKeyProperty(java.lang.String propertyName)default booleanisRangeKeyAware()-
Methods inherited from interface org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBHashKeyExtractingEntityMetadata
getDynamoDBTableName, getGlobalSecondaryIndexNamesByPropertyName, getHashKeyPropertyName, getMarshallerForProperty, getOverriddenAttributeName, getTypeConverterForProperty, isGlobalIndexHashKeyProperty, isGlobalIndexRangeKeyProperty, isHashKeyProperty
-
-
-
-
Method Detail
-
isRangeKeyAware
default boolean isRangeKeyAware()
-
isCompositeHashAndRangeKeyProperty
boolean isCompositeHashAndRangeKeyProperty(java.lang.String propertyName)
-
getHashKey
java.lang.Object getHashKey(ID id)
-
getRangeKey
default java.lang.Object getRangeKey(ID id)
-
getProjection
java.util.Optional<java.lang.String> getProjection()
-
getLimit
java.util.Optional<java.lang.Integer> getLimit()
-
-