Class AbstractArangoQuery
java.lang.Object
com.arangodb.springframework.repository.query.AbstractArangoQuery
- All Implemented Interfaces:
RepositoryQuery
- Direct Known Subclasses:
DerivedArangoQuery,StringBasedArangoQuery
- Author:
- Audrius Malele, Mark McCormick, Mark Vollmary, Christian Lechner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class<?>protected final ArangoMappingContextprotected final ArangoQueryMethodprotected final ArangoOperations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringcreateQuery(ArangoParameterAccessor accessor, Map<String, Object> bindVars, com.arangodb.model.AqlQueryOptions options) Implementations should create an AQL query with the givenArangoParameterAccessorand set necessary binding parameters and query options.protected abstract booleanprotected abstract booleanprotected com.arangodb.model.AqlQueryOptionsmergeQueryOptions(com.arangodb.model.AqlQueryOptions oldStatic, com.arangodb.model.AqlQueryOptions newDynamic) Merges AqlQueryOptions derived from @QueryOptions with dynamically passed AqlQueryOptions which takes priority
-
Field Details
-
method
-
operations
-
mappingContext
-
domainClass
-
-
Constructor Details
-
AbstractArangoQuery
-
-
Method Details
-
execute
- Specified by:
executein interfaceRepositoryQuery
-
getQueryMethod
- Specified by:
getQueryMethodin interfaceRepositoryQuery
-
createQuery
protected abstract String createQuery(ArangoParameterAccessor accessor, Map<String, Object> bindVars, com.arangodb.model.AqlQueryOptions options) Implementations should create an AQL query with the givenArangoParameterAccessorand set necessary binding parameters and query options.- Parameters:
accessor- provides access to the actual argumentsbindVars- the binding parameter mapoptions- contains the mergedAqlQueryOptions- Returns:
- the created AQL query
-
isCountQuery
protected abstract boolean isCountQuery() -
isExistsQuery
protected abstract boolean isExistsQuery() -
mergeQueryOptions
protected com.arangodb.model.AqlQueryOptions mergeQueryOptions(com.arangodb.model.AqlQueryOptions oldStatic, com.arangodb.model.AqlQueryOptions newDynamic) Merges AqlQueryOptions derived from @QueryOptions with dynamically passed AqlQueryOptions which takes priority- Parameters:
oldStatic-newDynamic-- Returns:
-