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 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 newInsertOptions.InsertOptionsBuilder.static InsertOptionsempty()Create defaultInsertOptions.booleaninthashCode()booleanbooleanmutate()Create a newInsertOptions.InsertOptionsBuilderto mutate properties of thisInsertOptions.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 newInsertOptions.InsertOptionsBuilder.- Returns:
- a new
InsertOptions.InsertOptionsBuilder.
-
empty
Create defaultInsertOptions.- Returns:
- default
InsertOptions. - Since:
- 2.0
-
mutate
Create a newInsertOptions.InsertOptionsBuilderto mutate properties of thisInsertOptions.- Overrides:
mutatein classWriteOptions- Returns:
- a new
InsertOptions.InsertOptionsBuilderinitialized with thisInsertOptions.
-
isIfNotExists
public boolean isIfNotExists()- Returns:
- true to apply
IF NOT EXISTStoINSERToperations.
-
isInsertNulls
public boolean isInsertNulls()- Returns:
- true to insert null values from an entity.
- Since:
- 2.1
-
equals
- Overrides:
equalsin classWriteOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classWriteOptions
-