Interface ScyllaDBColumnManager

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

public interface ScyllaDBColumnManager extends org.eclipse.jnosql.communication.semistructured.DatabaseManager
The ScyllaDB implementation of DatabaseManager, that supports all methods and also supports CQL and ConsistencyLevel.

select(SelectQuery, ConsistencyLevel)

cql(String)

nativeQueryPrepare(String)

delete(DeleteQuery, ConsistencyLevel)

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    count(org.eclipse.jnosql.communication.semistructured.SelectQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Count based on a query using a consistency level
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    cql(String query)
    Executes CQL
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    cql(String query, Map<String,Object> values)
    Executes CQL using the provided named values.
    void
    delete(org.eclipse.jnosql.communication.semistructured.DeleteQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Deletes an information using ConsistencyLevel
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    execute(com.datastax.oss.driver.api.core.cql.SimpleStatement statement)
    Executes a statement
    Executes an query and uses as ScyllaDBPreparedStatement
    Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    save(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Saves a ColumnEntity with a defined ConsistencyLevel
    Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    save(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, Duration ttl, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Saves an entity using ConsistencyLevel
    org.eclipse.jnosql.communication.semistructured.CommunicationEntity
    save(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Saves a ColumnEntity with a defined ConsistencyLevel
    org.eclipse.jnosql.communication.semistructured.CommunicationEntity
    save(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, Duration ttl, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Saves an entity using ConsistencyLevel
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    select(org.eclipse.jnosql.communication.semistructured.SelectQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level)
    Finds using a consistency level

    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

    • save

      org.eclipse.jnosql.communication.semistructured.CommunicationEntity save(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Saves a ColumnEntity with a defined ConsistencyLevel
      Parameters:
      entity - the entity
      level - the ConsistencyLevel
      Returns:
      the entity saved
      Throws:
      NullPointerException - when both entity or level are null
    • save

      org.eclipse.jnosql.communication.semistructured.CommunicationEntity save(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, Duration ttl, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Saves an entity using ConsistencyLevel
      Parameters:
      entity - the entity
      ttl - the ttl
      level - the level
      Returns:
      the entity saved
      Throws:
      NullPointerException - when either entity or ttl or level are null
    • save

      Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> save(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Saves a ColumnEntity with a defined ConsistencyLevel
      Parameters:
      entities - the entities
      level - the ConsistencyLevel
      Returns:
      the entities saved
      Throws:
      NullPointerException - when both entity or level are null
    • save

      Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> save(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, Duration ttl, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Saves an entity using ConsistencyLevel
      Parameters:
      entities - the entities
      ttl - the ttl
      level - the level
      Returns:
      the entities saved
      Throws:
      NullPointerException - when either entity or ttl or level are null
    • delete

      void delete(org.eclipse.jnosql.communication.semistructured.DeleteQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Deletes an information using ConsistencyLevel
      Parameters:
      query - the query
      level - the level
      Throws:
      NullPointerException - when either query or level are null
    • select

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> select(org.eclipse.jnosql.communication.semistructured.SelectQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Finds using a consistency level
      Parameters:
      query - the query
      level - the consistency level
      Returns:
      the query using a consistency level
      Throws:
      NullPointerException - when either query or level are null
    • count

      long count(org.eclipse.jnosql.communication.semistructured.SelectQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level) throws NullPointerException
      Count based on a query using a consistency level
      Parameters:
      query - the query
      level - the consistency level
      Returns:
      the query using a consistency level
      Throws:
      NullPointerException - when either query or level are null
    • cql

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> cql(String query) throws NullPointerException
      Executes CQL
      Parameters:
      query - the ScyllaDB query language
      Returns:
      the result of this query
      Throws:
      NullPointerException - when query is null
    • cql

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> cql(String query, Map<String,Object> values) throws NullPointerException
      Executes CQL using the provided named values.

      E.g.: SELECT * FROM users WHERE id = :i", Map<String, Object>of("i", 1)

      Parameters:
      query - the Cassndra query language
      values - values required for the execution of query
      Returns:
      the result of this query
      Throws:
      NullPointerException - when either query or values are null
    • execute

      Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> execute(com.datastax.oss.driver.api.core.cql.SimpleStatement statement) throws NullPointerException
      Executes a statement
      Parameters:
      statement - the statement
      Returns:
      the result of this query
      Throws:
      NullPointerException - when statement is null
    • nativeQueryPrepare

      ScyllaDBPreparedStatement nativeQueryPrepare(String query) throws NullPointerException
      Executes an query and uses as ScyllaDBPreparedStatement
      Parameters:
      query - the query
      Returns:
      the ScyllaDBPrepareStatment instance
      Throws:
      NullPointerException - when query is null