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.
-
Method Summary
Modifier and TypeMethodDescriptionlongcount(org.eclipse.jnosql.communication.semistructured.SelectQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level) Count based on a query using a consistency levelStream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>Executes CQLStream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>Executes CQL using the provided named values.voiddelete(org.eclipse.jnosql.communication.semistructured.DeleteQuery query, com.datastax.oss.driver.api.core.ConsistencyLevel level) Deletes an information usingConsistencyLevelStream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>execute(com.datastax.oss.driver.api.core.cql.SimpleStatement statement) Executes a statementnativeQueryPrepare(String query) Executes an query and uses asScyllaDBPreparedStatementIterable<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 ConsistencyLevelIterable<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 usingConsistencyLevelorg.eclipse.jnosql.communication.semistructured.CommunicationEntitysave(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, com.datastax.oss.driver.api.core.ConsistencyLevel level) Saves a ColumnEntity with a defined ConsistencyLevelorg.eclipse.jnosql.communication.semistructured.CommunicationEntitysave(org.eclipse.jnosql.communication.semistructured.CommunicationEntity entity, Duration ttl, com.datastax.oss.driver.api.core.ConsistencyLevel level) Saves an entity usingConsistencyLevelStream<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 levelMethods 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 entitylevel- theConsistencyLevel- 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 usingConsistencyLevel- Parameters:
entity- the entityttl- the ttllevel- 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 entitieslevel- theConsistencyLevel- 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 usingConsistencyLevel- Parameters:
entities- the entitiesttl- the ttllevel- 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 usingConsistencyLevel- Parameters:
query- the querylevel- 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 querylevel- 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 querylevel- 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 NullPointerExceptionExecutes 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 languagevalues- values required for the execution ofquery- 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
Executes an query and uses asScyllaDBPreparedStatement- Parameters:
query- the query- Returns:
- the ScyllaDBPrepareStatment instance
- Throws:
NullPointerException- when query is null
-