Class AbstractArangoQuery

java.lang.Object
com.arangodb.springframework.repository.query.AbstractArangoQuery
All Implemented Interfaces:
RepositoryQuery
Direct Known Subclasses:
DerivedArangoQuery, StringBasedArangoQuery

public abstract class AbstractArangoQuery extends Object implements RepositoryQuery
Author:
Audrius Malele, Mark McCormick, Mark Vollmary, Christian Lechner
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public Object execute(Object[] parameters)
      Specified by:
      execute in interface RepositoryQuery
    • getQueryMethod

      public ArangoQueryMethod getQueryMethod()
      Specified by:
      getQueryMethod in interface RepositoryQuery
    • createQuery

      protected abstract String createQuery(ArangoParameterAccessor accessor, Map<String,Object> bindVars, com.arangodb.model.AqlQueryOptions options)
      Implementations should create an AQL query with the given ArangoParameterAccessor and set necessary binding parameters and query options.
      Parameters:
      accessor - provides access to the actual arguments
      bindVars - the binding parameter map
      options - contains the merged AqlQueryOptions
      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: