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