Interface OrientDBDocumentManager

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

public interface OrientDBDocumentManager extends org.eclipse.jnosql.communication.semistructured.DatabaseManager
The orientdb implementation to DatabaseManager, this implementation does not support TTL.

DatabaseManager.insert(CommunicationEntity, java.time.Duration)

Also this implementation has support SQL query and also live query.

sql(String, Object...)

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    live(String query, OrientDBLiveCallback<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> callbacks, Object... params)
    Execute live query
    void
    live(org.eclipse.jnosql.communication.semistructured.SelectQuery query, OrientDBLiveCallback<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> callbacks)
    Execute live query
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    sql(String query, Object... params)
    Find using query
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    sql(String query, Map<String,Object> params)
    Find using query

    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

    • sql

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> sql(String query, Object... params)
      Find using query
      Parameters:
      query - the query
      params - the params
      Returns:
      the query result
      Throws:
      NullPointerException - when either query or params are null
    • sql

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> sql(String query, Map<String,Object> params)
      Find using query
      Parameters:
      query - the query
      params - the params
      Returns:
      the query result
      Throws:
      NullPointerException - when either query or params are null
    • live

      void live(org.eclipse.jnosql.communication.semistructured.SelectQuery query, OrientDBLiveCallback<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> callbacks)
      Execute live query
      Parameters:
      query - the query
      callbacks - Callbacks for create, update and delete operations
      Throws:
      NullPointerException - when both query and callBack are null
    • live

      void live(String query, OrientDBLiveCallback<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> callbacks, Object... params)
      Execute live query
      Parameters:
      query - the query
      callbacks - Callbacks for create, update and delete operations
      Throws:
      NullPointerException - when both query and callBack are null