Constructor and Description |
---|
StatementFactory(QueryMapper queryMapper,
UpdateMapper updateMapper)
|
StatementFactory(UpdateMapper updateMapper)
Create
StatementFactory given UpdateMapper . |
Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.RegularStatement |
count(Query query,
CassandraPersistentEntity<?> entity)
Create a COUNT statement by mapping
Query to Select . |
com.datastax.driver.core.RegularStatement |
count(Query query,
CassandraPersistentEntity<?> entity,
CqlIdentifier tableName)
Create a COUNT statement by mapping
Query to Select . |
com.datastax.driver.core.RegularStatement |
delete(Query query,
CassandraPersistentEntity<?> entity)
Create a DELETE statement by mapping
Query to Delete . |
com.datastax.driver.core.RegularStatement |
delete(Query query,
CassandraPersistentEntity<?> entity,
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. |
com.datastax.driver.core.RegularStatement |
select(Query query,
CassandraPersistentEntity<?> entity)
Create a SELECT statement by mapping
Query to Select . |
com.datastax.driver.core.RegularStatement |
select(Query query,
CassandraPersistentEntity<?> entity,
CqlIdentifier tableName)
Create a SELECT statement by mapping
Query to Select . |
com.datastax.driver.core.RegularStatement |
update(Query query,
Update update,
CassandraPersistentEntity<?> entity)
|
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 com.datastax.driver.core.RegularStatement count(Query query, CassandraPersistentEntity<?> entity)
Query
to Select
.public com.datastax.driver.core.RegularStatement count(Query query, CassandraPersistentEntity<?> entity, CqlIdentifier tableName)
Query
to Select
.public com.datastax.driver.core.RegularStatement select(Query query, CassandraPersistentEntity<?> entity)
Query
to Select
.query
- must not be null.entity
- must not be null.RegularStatement
.public com.datastax.driver.core.RegularStatement select(Query query, CassandraPersistentEntity<?> entity, CqlIdentifier tableName)
Query
to Select
.query
- must not be null.entity
- must not be null.tableName
- must not be null.RegularStatement
.public com.datastax.driver.core.RegularStatement update(Query query, Update update, CassandraPersistentEntity<?> entity)
query
- must not be null.entity
- must not be null.RegularStatement
.public com.datastax.driver.core.RegularStatement delete(Query query, CassandraPersistentEntity<?> entity)
Query
to Delete
.query
- must not be null.entity
- must not be null.RegularStatement
.public com.datastax.driver.core.RegularStatement delete(Query query, CassandraPersistentEntity<?> entity, CqlIdentifier tableName)
Query
to Delete
.query
- must not be null.entity
- must not be null.tableName
- must not be null.RegularStatement
.2.1
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.