Class DeleteOptions
java.lang.Object
org.springframework.data.cassandra.core.cql.QueryOptions
org.springframework.data.cassandra.core.cql.WriteOptions
org.springframework.data.cassandra.core.DeleteOptions
Extension to
WriteOptions
for use with DELETE
operations.- Since:
- 2.2
- Author:
- Mark Paluch, Tomasz Lelek, Sam Lightfoot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.cassandra.core.cql.WriteOptions
WriteOptions.WriteOptionsBuilder
Nested classes/interfaces inherited from class org.springframework.data.cassandra.core.cql.QueryOptions
QueryOptions.QueryOptionsBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a newDeleteOptions.DeleteOptionsBuilder
.static DeleteOptions
empty()
Create defaultDeleteOptions
.boolean
int
hashCode()
boolean
mutate()
Create a newDeleteOptions.DeleteOptionsBuilder
to mutate properties of thisDeleteOptions
.Methods inherited from class org.springframework.data.cassandra.core.cql.WriteOptions
getTimestamp, getTtl
Methods inherited from class org.springframework.data.cassandra.core.cql.QueryOptions
getConsistencyLevel, getExecutionProfileResolver, getKeyspace, getPageSize, getReadTimeout, getRoutingKey, getRoutingKeyspace, getSerialConsistencyLevel, getTimeout, getTracing, isIdempotent
-
Method Details
-
builder
Create a newDeleteOptions.DeleteOptionsBuilder
.- Returns:
- a new
DeleteOptions.DeleteOptionsBuilder
.
-
empty
Create defaultDeleteOptions
.- Returns:
- default
DeleteOptions
.
-
mutate
Create a newDeleteOptions.DeleteOptionsBuilder
to mutate properties of thisDeleteOptions
.- Overrides:
mutate
in classWriteOptions
- Returns:
- a new
DeleteOptions.DeleteOptionsBuilder
initialized with thisDeleteOptions
.
-
isIfExists
public boolean isIfExists()- Returns:
- true to apply
IF EXISTS
toDELETE
operations.
-
getIfCondition
- Returns:
- the
IF condition
for conditional deletes.
-
equals
- Overrides:
equals
in classWriteOptions
-
hashCode
public int hashCode()- Overrides:
hashCode
in classWriteOptions
-