| 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 |
delete(Query query,
CassandraPersistentEntity<?> entity)
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 |
update(Query query,
Update updateObj,
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.QueryMapperprotected UpdateMapper getUpdateMapper()
UpdateMapper used to map Update to CQL-specific data types.UpdateMapper used to map Update to CQL-specific data types.UpdateMapperpublic 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 update(Query query, Update updateObj, 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.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.