Package | Description |
---|---|
com.datastax.oss.driver.api.querybuilder.update |
Modifier and Type | Method and Description |
---|---|
default UpdateWithAssignments |
OngoingAssignment.append(CqlIdentifier columnId,
Term suffix)
Appends to a collection column, as in
SET l=l+? . |
default UpdateWithAssignments |
OngoingAssignment.append(String columnName,
Term suffix)
Shortcut for
append(CqlIdentifier.fromCql(columnName),
suffix) . |
default UpdateWithAssignments |
OngoingAssignment.appendListElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a list column, as in
SET l=l+[?] . |
default UpdateWithAssignments |
OngoingAssignment.appendListElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.appendMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Appends a single entry to a map column, as in
SET m=m+{?:?} . |
default UpdateWithAssignments |
OngoingAssignment.appendMapEntry(String columnName,
Term key,
Term value)
|
default UpdateWithAssignments |
OngoingAssignment.appendSetElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a set column, as in
SET s=s+{?} . |
default UpdateWithAssignments |
OngoingAssignment.appendSetElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.decrement(CqlIdentifier columnId)
Decrements a counter by 1, as in
SET c-=1 . |
default UpdateWithAssignments |
OngoingAssignment.decrement(CqlIdentifier columnId,
Term amount)
Decrements a counter, as in
SET c-=? . |
default UpdateWithAssignments |
OngoingAssignment.decrement(String columnName)
Shortcut for
CqlIdentifier.fromCql(columnName) . |
default UpdateWithAssignments |
OngoingAssignment.decrement(String columnName,
Term amount)
Shortcut for
decrement(CqlIdentifier.fromCql(columnName), amount) |
default UpdateWithAssignments |
OngoingAssignment.increment(CqlIdentifier columnId)
Increments a counter by 1, as in
SET c+=1 . |
default UpdateWithAssignments |
OngoingAssignment.increment(CqlIdentifier columnId,
Term amount)
Increments a counter, as in
SET c+=? . |
default UpdateWithAssignments |
OngoingAssignment.increment(String columnName)
Shortcut for
CqlIdentifier.fromCql(columnName) . |
default UpdateWithAssignments |
OngoingAssignment.increment(String columnName,
Term amount)
Shortcut for
increment(CqlIdentifier.fromCql(columnName), amount) |
default UpdateWithAssignments |
OngoingAssignment.prepend(CqlIdentifier columnId,
Term prefix)
Prepends to a collection column, as in
SET l=[1,2,3]+l . |
default UpdateWithAssignments |
OngoingAssignment.prepend(String columnName,
Term prefix)
Shortcut for
prepend(CqlIdentifier.fromCql(columnName),
prefix) . |
default UpdateWithAssignments |
OngoingAssignment.prependListElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a list column, as in
SET l=[?]+l . |
default UpdateWithAssignments |
OngoingAssignment.prependListElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.prependMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Prepends a single entry to a map column, as in
SET m={?:?}+m . |
default UpdateWithAssignments |
OngoingAssignment.prependMapEntry(String columnName,
Term key,
Term value)
|
default UpdateWithAssignments |
OngoingAssignment.prependSetElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a set column, as in
SET s={?}+s . |
default UpdateWithAssignments |
OngoingAssignment.prependSetElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.remove(CqlIdentifier columnId,
Term collectionToRemove)
Removes elements from a collection, as in
SET l=l-[1,2,3] . |
default UpdateWithAssignments |
OngoingAssignment.remove(String columnName,
Term collectionToRemove)
|
default UpdateWithAssignments |
OngoingAssignment.removeListElement(CqlIdentifier columnId,
Term suffix)
Removes a single element to a list column, as in
SET l=l-[?] . |
default UpdateWithAssignments |
OngoingAssignment.removeListElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.removeMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Removes a single entry to a map column, as in
SET m=m-{?:?} . |
default UpdateWithAssignments |
OngoingAssignment.removeMapEntry(String columnName,
Term key,
Term value)
|
default UpdateWithAssignments |
OngoingAssignment.removeSetElement(CqlIdentifier columnId,
Term suffix)
Removes a single element to a set column, as in
SET s=s-{?} . |
default UpdateWithAssignments |
OngoingAssignment.removeSetElement(String columnName,
Term suffix)
|
default UpdateWithAssignments |
OngoingAssignment.set(Assignment... assignments)
Var-arg equivalent of
OngoingAssignment.set(Iterable) . |
UpdateWithAssignments |
OngoingAssignment.set(Assignment assignment)
Adds an assignment to this statement, as in
UPDATE foo SET v=1 . |
UpdateWithAssignments |
OngoingAssignment.set(Iterable<Assignment> additionalAssignments)
Adds multiple assignments at once.
|
default UpdateWithAssignments |
OngoingAssignment.setColumn(CqlIdentifier columnId,
Term value)
Assigns a value to a column, as in
SET c=1 . |
default UpdateWithAssignments |
OngoingAssignment.setColumn(String columnName,
Term value)
Shortcut for
setColumn(CqlIdentifier.fromCql(columnName), value) . |
default UpdateWithAssignments |
OngoingAssignment.setField(CqlIdentifier columnId,
CqlIdentifier fieldId,
Term value)
Assigns a value to a field of a UDT, as in
SET address.zip=? . |
default UpdateWithAssignments |
OngoingAssignment.setField(String columnName,
String fieldName,
Term value)
|
default UpdateWithAssignments |
OngoingAssignment.setListValue(CqlIdentifier columnId,
Term index,
Term value)
Assigns a value to an index in a list column, as in
SET list[?]=? . |
default UpdateWithAssignments |
OngoingAssignment.setListValue(String columnName,
Term index,
Term value)
|
default UpdateWithAssignments |
OngoingAssignment.setMapValue(CqlIdentifier columnId,
Term key,
Term value)
Assigns a value to an entry in a map column, as in
SET map[?]=? . |
default UpdateWithAssignments |
OngoingAssignment.setMapValue(String columnName,
Term key,
Term value)
|
Copyright © 2017–2022. All rights reserved.