Interface ArangoDBDocumentManager

All Superinterfaces:
ArangoDBAccessor, AutoCloseable, org.eclipse.jnosql.communication.semistructured.DatabaseManager

public interface ArangoDBDocumentManager extends org.eclipse.jnosql.communication.semistructured.DatabaseManager, ArangoDBAccessor
The ArangoDB implementation of DatabaseManager. This implementation does not support TTL methods in the context of DatabaseManager.insert(org.eclipse.jnosql.communication.semistructured.CommunicationEntity).
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Stream<T>
    aql(String query, Class<T> type)
    Executes an ArangoDB query using the ArangoDB Query Language (AQL) with an empty parameter map.
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    aql(String query, Map<String,Object> params)
    Executes an ArangoDB query using the ArangoDB Query Language (AQL).
    <T> Stream<T>
    aql(String query, Map<String,Object> params, Class<T> type)
    Executes an ArangoDB query using the ArangoDB Query Language (AQL).

    Methods inherited from interface org.eclipse.jnosql.databases.arangodb.communication.ArangoDBAccessor

    getArangoDB

    Methods inherited from interface org.eclipse.jnosql.communication.semistructured.DatabaseManager

    close, count, count, delete, deleteAndCount, exists, insert, insert, insert, insert, name, prepare, prepare, query, query, select, selectCursor, singleResult, update, update, update
  • Method Details

    • aql

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> aql(String query, Map<String,Object> params)
      Executes an ArangoDB query using the ArangoDB Query Language (AQL).

      Example query: FOR u IN users FILTER u.status == @status RETURN u

      The conversion from the query result to CommunicationEntity will happen at the Eclipse JNoSQL side.

      Parameters:
      query - the AQL query
      params - the named parameters for the query
      Returns:
      a Stream of CommunicationEntity representing the query result
      Throws:
      NullPointerException - when either the query or params are null
    • aql

      <T> Stream<T> aql(String query, Map<String,Object> params, Class<T> type)
      Executes an ArangoDB query using the ArangoDB Query Language (AQL).

      Example query: FOR u IN users FILTER u.status == @status RETURN u

      The serialization of the query result will happen at the ArangoDB side using ArangoDatabase.query(String, Class). This serialization does not have any converter support.

      Type Parameters:
      T - the type
      Parameters:
      query - the AQL query
      params - the named parameters for the query
      type - the type of the result
      Returns:
      a Stream of the specified type representing the query result
      Throws:
      NullPointerException - when either the query or params are null
    • aql

      <T> Stream<T> aql(String query, Class<T> type)
      Executes an ArangoDB query using the ArangoDB Query Language (AQL) with an empty parameter map.

      Example query: FOR u IN users FILTER u.status == @status RETURN u

      The serialization of the query result will happen at the ArangoDB side using ArangoDatabase.query(String, Class). This serialization does not have any converter support.

      Type Parameters:
      T - the type
      Parameters:
      query - the AQL query
      type - the type of the result
      Returns:
      a Stream of the specified type representing the query result
      Throws:
      NullPointerException - when either the query or type are null