Class InsertOptions
java.lang.Object
org.springframework.data.cassandra.core.cql.QueryOptions
org.springframework.data.cassandra.core.cql.WriteOptions
org.springframework.data.cassandra.core.InsertOptions
Extension to
WriteOptions
for use with INSERT
operations.- Since:
- 2.0
- Author:
- Mark Paluch, Lukasz Antoniak, 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 newInsertOptions.InsertOptionsBuilder
.static InsertOptions
empty()
Create defaultInsertOptions
.boolean
int
hashCode()
boolean
boolean
mutate()
Create a newInsertOptions.InsertOptionsBuilder
to mutate properties of thisInsertOptions
.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 newInsertOptions.InsertOptionsBuilder
.- Returns:
- a new
InsertOptions.InsertOptionsBuilder
.
-
empty
Create defaultInsertOptions
.- Returns:
- default
InsertOptions
. - Since:
- 2.0
-
mutate
Create a newInsertOptions.InsertOptionsBuilder
to mutate properties of thisInsertOptions
.- Overrides:
mutate
in classWriteOptions
- Returns:
- a new
InsertOptions.InsertOptionsBuilder
initialized with thisInsertOptions
.
-
isIfNotExists
public boolean isIfNotExists()- Returns:
- true to apply
IF NOT EXISTS
toINSERT
operations.
-
isInsertNulls
public boolean isInsertNulls()- Returns:
- true to insert null values from an entity.
- Since:
- 2.1
-
equals
- Overrides:
equals
in classWriteOptions
-
hashCode
public int hashCode()- Overrides:
hashCode
in classWriteOptions
-