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 ClassesNested classes/interfaces inherited from class org.springframework.data.cassandra.core.cql.WriteOptions
WriteOptions.WriteOptionsBuilderNested classes/interfaces inherited from class org.springframework.data.cassandra.core.cql.QueryOptions
QueryOptions.QueryOptionsBuilder -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a newDeleteOptions.DeleteOptionsBuilder.static DeleteOptionsempty()Create defaultDeleteOptions.booleaninthashCode()booleanmutate()Create a newDeleteOptions.DeleteOptionsBuilderto mutate properties of thisDeleteOptions.Methods inherited from class org.springframework.data.cassandra.core.cql.WriteOptions
getTimestamp, getTtlMethods 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.DeleteOptionsBuilderto mutate properties of thisDeleteOptions.- Overrides:
mutatein classWriteOptions- Returns:
- a new
DeleteOptions.DeleteOptionsBuilderinitialized with thisDeleteOptions.
-
isIfExists
public boolean isIfExists()- Returns:
- true to apply
IF EXISTStoDELETEoperations.
-
getIfCondition
- Returns:
- the
IF conditionfor conditional deletes.
-
equals
- Overrides:
equalsin classWriteOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classWriteOptions
-