public interface OngoingValues
Modifier and Type | Method and Description |
---|---|
RegularInsert |
value(CqlIdentifier columnId,
Term value)
Sets a value for a column, as in {@code INSERT INTO ...
|
default RegularInsert |
value(String columnName,
Term value)
Shortcut for
value(CqlIdentifier.fromCql(columnName),
value) . |
default RegularInsert |
values(Map<String,Term> newAssignments)
Shortcut for
valuesByIds(Map) when the keys are plain strings. |
default RegularInsert |
valuesByIds(Map<CqlIdentifier,Term> newAssignments)
Sets values for multiple columns in one call, as in {@code INSERT INTO ...
|
@NonNull RegularInsert value(@NonNull CqlIdentifier columnId, @NonNull Term value)
INSERT INTO ... (c) VALUES (?)
.
If this is called twice for the same column, the previous entry is discarded and the new entry will be added at the end of the list.
@NonNull default RegularInsert value(@NonNull String columnName, @NonNull Term value)
value(CqlIdentifier.fromCql(columnName),
value)
.@NonNull default RegularInsert valuesByIds(@NonNull Map<CqlIdentifier,Term> newAssignments)
INSERT INTO ... (key1, key2) VALUES
(value1, value2)
.
If the map contains columns that had already been added to this statement, the previous entries are discarded and the new entries will be added at the end of the list.
Implementation note: this is a default method only for backward compatibility. The default
implementation calls value(CqlIdentifier, Term)
in a loop; it should be overridden if
a more efficient alternative exists.
@NonNull default RegularInsert values(@NonNull Map<String,Term> newAssignments)
valuesByIds(Map)
when the keys are plain strings.Copyright © 2017–2019. All rights reserved.