Constructor and Description |
---|
StatementFactory(CassandraConverter converter)
Create
StatementFactory given CassandraConverter . |
StatementFactory(QueryMapper queryMapper,
UpdateMapper updateMapper)
|
StatementFactory(UpdateMapper updateMapper)
Create
StatementFactory given UpdateMapper . |
Modifier and Type | Method and Description |
---|---|
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
count(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a COUNT statement by mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
count(Query query,
CassandraPersistentEntity<?> entity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Create a COUNT statement by mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> |
delete(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a DELETE statement by mapping
Query to Delete . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> |
delete(Query query,
CassandraPersistentEntity<?> persistentEntity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Create a DELETE statement by mapping
Query to Delete . |
protected QueryMapper |
getQueryMapper()
Returns the
QueryMapper used to map Query to CQL-specific data types. |
protected UpdateMapper |
getUpdateMapper()
Returns the
UpdateMapper used to map Update to CQL-specific data types. |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.insert.RegularInsert> |
insert(Object objectToInsert,
WriteOptions options)
Creates a Query Object for an insert.
|
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
select(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a SELECT statement by mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
select(Query query,
CassandraPersistentEntity<?> persistentEntity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Create a SELECT statement by mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> |
update(Object objectToUpdate,
WriteOptions options)
|
StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> |
update(Query query,
Update update,
CassandraPersistentEntity<?> persistentEntity)
|
public StatementFactory(CassandraConverter converter)
StatementFactory
given CassandraConverter
.converter
- must not be null.public StatementFactory(UpdateMapper updateMapper)
StatementFactory
given UpdateMapper
.updateMapper
- must not be null.public StatementFactory(QueryMapper queryMapper, UpdateMapper updateMapper)
queryMapper
- must not be null.updateMapper
- must not be null.protected QueryMapper getQueryMapper()
QueryMapper
used to map Query
to CQL-specific data types.QueryMapper
used to map Query
to CQL-specific data types.QueryMapper
protected UpdateMapper getUpdateMapper()
UpdateMapper
used to map Update
to CQL-specific data types.UpdateMapper
used to map Update
to CQL-specific data types.UpdateMapper
public StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> count(Query query, CassandraPersistentEntity<?> persistentEntity)
Query
to Select
.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> count(Query query, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Query
to Select
.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> select(Query query, CassandraPersistentEntity<?> persistentEntity)
Query
to Select
.query
- must not be null.persistentEntity
- must not be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> select(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Query
to Select
.query
- must not be null.persistentEntity
- must not be null.tableName
- must not be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.insert.RegularInsert> insert(Object objectToInsert, WriteOptions options)
objectToInsert
- the object to save, must not be null.options
- optional WriteOptions
to apply to the Insert
statement, may be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> update(Query query, Update update, CassandraPersistentEntity<?> persistentEntity)
query
- must not be null.persistentEntity
- must not be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> update(Object objectToUpdate, WriteOptions options)
objectToUpdate
- must not be null.options
- must not be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> delete(Query query, CassandraPersistentEntity<?> persistentEntity)
Query
to Delete
.query
- must not be null.persistentEntity
- must not be null.public StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> delete(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Query
to Delete
.query
- must not be null.persistentEntity
- must not be null.tableName
- must not be null.2.1
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.