Class AbstractDynamoDBQuery<T,ID>
- java.lang.Object
-
- org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery<T,ID>
-
- All Implemented Interfaces:
ExceptionHandler,org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
PartTreeDynamoDBQuery
public abstract class AbstractDynamoDBQuery<T,ID> extends java.lang.Object implements org.springframework.data.repository.query.RepositoryQuery, ExceptionHandler
- Author:
- Michael Lavelle, Sebastian Just
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamoDBOperationsdynamoDBOperations
-
Constructor Summary
Constructors Constructor Description AbstractDynamoDBQuery(DynamoDBOperations dynamoDBOperations, DynamoDBQueryMethod<T,ID> method)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Query<java.lang.Long>doCreateCountQuery(java.lang.Object[] values, boolean pageQuery)protected Query<java.lang.Long>doCreateCountQueryWithPermissions(java.lang.Object[] values, boolean pageQuery)protected abstract Query<T>doCreateQuery(java.lang.Object[] values)protected Query<T>doCreateQueryWithPermissions(java.lang.Object[] values)java.lang.Objectexecute(java.lang.Object[] parameters)protected org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery.QueryExecution<T,ID>getExecution()DynamoDBQueryMethod<T,ID>getQueryMethod()protected abstract java.lang.IntegergetResultsRestrictionIfApplicable()protected abstract booleanisCountQuery()protected abstract booleanisDeleteQuery()protected abstract booleanisExistsQuery()protected abstract booleanisSingleEntityResultsRestriction()-
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.ExceptionHandler
repackageToException
-
-
-
-
Field Detail
-
dynamoDBOperations
protected final DynamoDBOperations dynamoDBOperations
-
-
Constructor Detail
-
AbstractDynamoDBQuery
public AbstractDynamoDBQuery(DynamoDBOperations dynamoDBOperations, DynamoDBQueryMethod<T,ID> method)
-
-
Method Detail
-
getExecution
protected org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery.QueryExecution<T,ID> getExecution()
-
doCreateCountQuery
protected abstract Query<java.lang.Long> doCreateCountQuery(java.lang.Object[] values, boolean pageQuery)
-
isCountQuery
protected abstract boolean isCountQuery()
-
isExistsQuery
protected abstract boolean isExistsQuery()
-
isDeleteQuery
protected abstract boolean isDeleteQuery()
-
getResultsRestrictionIfApplicable
protected abstract java.lang.Integer getResultsRestrictionIfApplicable()
-
isSingleEntityResultsRestriction
protected abstract boolean isSingleEntityResultsRestriction()
-
doCreateQueryWithPermissions
protected Query<T> doCreateQueryWithPermissions(java.lang.Object[] values)
-
doCreateCountQueryWithPermissions
protected Query<java.lang.Long> doCreateCountQueryWithPermissions(java.lang.Object[] values, boolean pageQuery)
-
execute
public java.lang.Object execute(java.lang.Object[] parameters)
- Specified by:
executein interfaceorg.springframework.data.repository.query.RepositoryQuery
-
getQueryMethod
public DynamoDBQueryMethod<T,ID> getQueryMethod()
- Specified by:
getQueryMethodin interfaceorg.springframework.data.repository.query.RepositoryQuery
-
-