Class DynamoDBEntityWithHashAndRangeKeyCriteria<T,ID>
- java.lang.Object
-
- org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCriteria<T,ID>
-
- org.socialsignin.spring.data.dynamodb.repository.query.DynamoDBEntityWithHashAndRangeKeyCriteria<T,ID>
-
- All Implemented Interfaces:
DynamoDBQueryCriteria<T,ID>,SortHandler
public class DynamoDBEntityWithHashAndRangeKeyCriteria<T,ID> extends AbstractDynamoDBQueryCriteria<T,ID>
- Author:
- Michael Lavelle, Sebastian Just
-
-
Field Summary
-
Fields inherited from class org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCriteria
attributeConditions, clazz, consistentReads, globalSecondaryIndexName, hashKeyAttributeValue, hashKeyPropertyValue, limit, projection, propertyConditions, sort
-
-
Constructor Summary
Constructors Constructor Description DynamoDBEntityWithHashAndRangeKeyCriteria(DynamoDBIdIsHashAndRangeKeyEntityInformation<T,ID> entityInformation, com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperTableModel<T> tableModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Query<java.lang.Long>buildFinderCountQuery(DynamoDBOperations dynamoDBOperations, boolean pageQuery)protected Query<T>buildFinderQuery(DynamoDBOperations dynamoDBOperations)com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBQueryExpression<T>buildQueryExpression()com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpressionbuildScanExpression()protected Query<java.lang.Long>buildSingleEntityCountQuery(DynamoDBOperations dynamoDBOperations)protected Query<T>buildSingleEntityLoadQuery(DynamoDBOperations dynamoDBOperations)protected java.lang.StringgetGlobalSecondaryIndexName()java.util.Set<java.lang.String>getIndexRangeKeyAttributeNames()protected java.lang.StringgetRangeKeyAttributeName()protected java.lang.ObjectgetRangeKeyAttributeValue()protected java.util.List<com.amazonaws.services.dynamodbv2.model.Condition>getRangeKeyConditions()protected java.lang.StringgetRangeKeyPropertyName()protected java.lang.ObjectgetRangeKeyPropertyValue()protected booleanhasIndexHashKeyEqualCondition()protected booleanhasIndexRangeKeyCondition()protected booleanisApplicableForGlobalSecondaryIndex()booleanisApplicableForLoad()booleanisApplicableForQuery()protected booleanisHashAndRangeKeySpecified()protected booleanisOnlyASingleAttributeConditionAndItIsOnEitherRangeOrIndexRangeKey()protected booleanisOnlyHashKeySpecified()protected booleanisRangeKeyProperty(java.lang.String propertyName)protected booleanisRangeKeySpecified()DynamoDBQueryCriteria<T,ID>withPropertyEquals(java.lang.String propertyName, java.lang.Object value, java.lang.Class<?> propertyType)DynamoDBQueryCriteria<T,ID>withRangeKeyEquals(java.lang.Object value)DynamoDBQueryCriteria<T,ID>withSingleValueCriteria(java.lang.String propertyName, com.amazonaws.services.dynamodbv2.model.ComparisonOperator comparisonOperator, java.lang.Object value, java.lang.Class<?> propertyType)-
Methods inherited from class org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCriteria
addAttributeValue, applySortIfSpecified, applySortIfSpecified, buildCountQuery, buildQuery, buildQueryRequest, comparisonOperatorsPermittedForQuery, createCollectionCondition, createNoValueCondition, createSingleValueCondition, getAttributeName, getHashKeyAttributeName, getHashKeyAttributeValue, getHashKeyConditions, getHashKeyPropertyName, getHashKeyPropertyValue, getPropertyAttributeValue, isHashKeyProperty, isHashKeySpecified, withCondition, withConsistentReads, withHashKeyEquals, withLimit, withNoValuedCriteria, withProjection, withPropertyBetween, withPropertyIn, withSort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.socialsignin.spring.data.dynamodb.utils.SortHandler
ensureNoSort, ensureNoSort, throwUnsupportedSortOperationException
-
-
-
-
Constructor Detail
-
DynamoDBEntityWithHashAndRangeKeyCriteria
public DynamoDBEntityWithHashAndRangeKeyCriteria(DynamoDBIdIsHashAndRangeKeyEntityInformation<T,ID> entityInformation, com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperTableModel<T> tableModel)
-
-
Method Detail
-
getRangeKeyAttributeName
protected java.lang.String getRangeKeyAttributeName()
-
getRangeKeyPropertyName
protected java.lang.String getRangeKeyPropertyName()
-
isRangeKeyProperty
protected boolean isRangeKeyProperty(java.lang.String propertyName)
-
getIndexRangeKeyAttributeNames
public java.util.Set<java.lang.String> getIndexRangeKeyAttributeNames()
-
getRangeKeyAttributeValue
protected java.lang.Object getRangeKeyAttributeValue()
-
getRangeKeyPropertyValue
protected java.lang.Object getRangeKeyPropertyValue()
-
isRangeKeySpecified
protected boolean isRangeKeySpecified()
-
buildSingleEntityLoadQuery
protected Query<T> buildSingleEntityLoadQuery(DynamoDBOperations dynamoDBOperations)
- Specified by:
buildSingleEntityLoadQueryin classAbstractDynamoDBQueryCriteria<T,ID>
-
buildSingleEntityCountQuery
protected Query<java.lang.Long> buildSingleEntityCountQuery(DynamoDBOperations dynamoDBOperations)
- Specified by:
buildSingleEntityCountQueryin classAbstractDynamoDBQueryCriteria<T,ID>
-
withSingleValueCriteria
public DynamoDBQueryCriteria<T,ID> withSingleValueCriteria(java.lang.String propertyName, com.amazonaws.services.dynamodbv2.model.ComparisonOperator comparisonOperator, java.lang.Object value, java.lang.Class<?> propertyType)
- Specified by:
withSingleValueCriteriain interfaceDynamoDBQueryCriteria<T,ID>- Overrides:
withSingleValueCriteriain classAbstractDynamoDBQueryCriteria<T,ID>
-
buildQueryExpression
public com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBQueryExpression<T> buildQueryExpression()
-
getRangeKeyConditions
protected java.util.List<com.amazonaws.services.dynamodbv2.model.Condition> getRangeKeyConditions()
-
buildFinderQuery
protected Query<T> buildFinderQuery(DynamoDBOperations dynamoDBOperations)
- Specified by:
buildFinderQueryin classAbstractDynamoDBQueryCriteria<T,ID>
-
buildFinderCountQuery
protected Query<java.lang.Long> buildFinderCountQuery(DynamoDBOperations dynamoDBOperations, boolean pageQuery)
- Specified by:
buildFinderCountQueryin classAbstractDynamoDBQueryCriteria<T,ID>
-
isApplicableForLoad
public boolean isApplicableForLoad()
- Specified by:
isApplicableForLoadin classAbstractDynamoDBQueryCriteria<T,ID>
-
isHashAndRangeKeySpecified
protected boolean isHashAndRangeKeySpecified()
-
isOnlyASingleAttributeConditionAndItIsOnEitherRangeOrIndexRangeKey
protected boolean isOnlyASingleAttributeConditionAndItIsOnEitherRangeOrIndexRangeKey()
-
hasIndexHashKeyEqualCondition
protected boolean hasIndexHashKeyEqualCondition()
- Overrides:
hasIndexHashKeyEqualConditionin classAbstractDynamoDBQueryCriteria<T,ID>
-
hasIndexRangeKeyCondition
protected boolean hasIndexRangeKeyCondition()
- Overrides:
hasIndexRangeKeyConditionin classAbstractDynamoDBQueryCriteria<T,ID>
-
isApplicableForGlobalSecondaryIndex
protected boolean isApplicableForGlobalSecondaryIndex()
- Overrides:
isApplicableForGlobalSecondaryIndexin classAbstractDynamoDBQueryCriteria<T,ID>
-
getGlobalSecondaryIndexName
protected java.lang.String getGlobalSecondaryIndexName()
- Overrides:
getGlobalSecondaryIndexNamein classAbstractDynamoDBQueryCriteria<T,ID>
-
isApplicableForQuery
public boolean isApplicableForQuery()
-
buildScanExpression
public com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression buildScanExpression()
-
withRangeKeyEquals
public DynamoDBQueryCriteria<T,ID> withRangeKeyEquals(java.lang.Object value)
-
withPropertyEquals
public DynamoDBQueryCriteria<T,ID> withPropertyEquals(java.lang.String propertyName, java.lang.Object value, java.lang.Class<?> propertyType)
-
isOnlyHashKeySpecified
protected boolean isOnlyHashKeySpecified()
- Specified by:
isOnlyHashKeySpecifiedin classAbstractDynamoDBQueryCriteria<T,ID>
-
-