Class QueryOptionsUtil.CqlStatementOptionsAccessor<T>
java.lang.Object
org.springframework.data.cassandra.core.cql.QueryOptionsUtil.CqlStatementOptionsAccessor<T>
- Type Parameters:
T
-
- Enclosing class:
- QueryOptionsUtil
Wrapper for common options used with CQL statements that are represented in the CQL statement such as TTL and
timestamp.
- Since:
- 4.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection>
ofDelete
(com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection statement) Creates an accessor variant that applies options directly within the CQL statement forDelete
.static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection>
ofDelete
(Bindings bindings, com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection statement) Creates an accessor variant that captures options throughBindMarker
forDelete
.static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.insert.Insert>
ofInsert
(com.datastax.oss.driver.api.querybuilder.insert.Insert statement) Creates an accessor variant that applies options directly within the CQL statement forInsert
.static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.insert.Insert>
Creates an accessor variant that captures options throughBindMarker
forInsert
.static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.update.UpdateStart>
ofUpdate
(com.datastax.oss.driver.api.querybuilder.update.UpdateStart statement) Creates an accessor variant that applies options directly within the CQL statement forUpdate
.static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.update.UpdateStart>
Creates an accessor variant that captures options throughBindMarker
forUpdate
.
-
Constructor Details
-
CqlStatementOptionsAccessor
public CqlStatementOptionsAccessor()
-
-
Method Details
-
ofInsert
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.insert.Insert> ofInsert(Bindings bindings, com.datastax.oss.driver.api.querybuilder.insert.Insert statement) Creates an accessor variant that captures options throughBindMarker
forInsert
.- Parameters:
bindings
-statement
-- Returns:
-
ofInsert
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.insert.Insert> ofInsert(com.datastax.oss.driver.api.querybuilder.insert.Insert statement) Creates an accessor variant that applies options directly within the CQL statement forInsert
.- Parameters:
statement
-- Returns:
-
ofUpdate
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.update.UpdateStart> ofUpdate(Bindings bindings, com.datastax.oss.driver.api.querybuilder.update.UpdateStart statement) Creates an accessor variant that captures options throughBindMarker
forUpdate
.- Parameters:
bindings
-statement
-- Returns:
-
ofUpdate
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.update.UpdateStart> ofUpdate(com.datastax.oss.driver.api.querybuilder.update.UpdateStart statement) Creates an accessor variant that applies options directly within the CQL statement forUpdate
.- Parameters:
statement
-- Returns:
-
ofDelete
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection> ofDelete(Bindings bindings, com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection statement) Creates an accessor variant that captures options throughBindMarker
forDelete
.- Parameters:
bindings
-statement
-- Returns:
-
ofDelete
public static QueryOptionsUtil.CqlStatementOptionsAccessor<com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection> ofDelete(com.datastax.oss.driver.api.querybuilder.delete.DeleteSelection statement) Creates an accessor variant that applies options directly within the CQL statement forDelete
.- Parameters:
statement
-- Returns:
-