Class Delete.Selection
- java.lang.Object
-
- com.datastax.driver.core.querybuilder.Delete.Builder
-
- com.datastax.driver.core.querybuilder.Delete.Selection
-
- Enclosing class:
- Delete
public static class Delete.Selection extends Delete.Builder
An column selection clause for an in-construction DELETE statement.
-
-
Constructor Summary
Constructors Constructor Description Selection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Delete.Builderall()Deletes all columns (i.e.Delete.Selectioncolumn(String columnName)Deletes the provided column.Delete.SelectionlistElt(String columnName, int idx)Deletes the provided list element.Delete.SelectionlistElt(String columnName, BindMarker idx)Deletes the provided list element, specified as a bind marker.Delete.SelectionmapElt(String columnName, Object key)Deletes a map element given a key.Delete.SelectionsetElt(String columnName, BindMarker element)Deletes the provided set element, specified as a bind marker.Delete.SelectionsetElt(String columnName, Object element)Deletes the provided set element.-
Methods inherited from class com.datastax.driver.core.querybuilder.Delete.Builder
from, from, from
-
-
-
-
Method Detail
-
all
public Delete.Builder all()
Deletes all columns (i.e. "DELETE FROM ...")- Returns:
- an in-build DELETE statement.
- Throws:
IllegalStateException- if some columns had already been selected for this builder.
-
column
public Delete.Selection column(String columnName)
Deletes the provided column.- Parameters:
columnName- the column to select for deletion.- Returns:
- this in-build DELETE Selection
-
listElt
public Delete.Selection listElt(String columnName, int idx)
Deletes the provided list element.- Parameters:
columnName- the name of the list column.idx- the index of the element to delete.- Returns:
- this in-build DELETE Selection
-
listElt
public Delete.Selection listElt(String columnName, BindMarker idx)
Deletes the provided list element, specified as a bind marker.- Parameters:
columnName- the name of the list column.idx- the index of the element to delete.- Returns:
- this in-build DELETE Selection
-
setElt
public Delete.Selection setElt(String columnName, Object element)
Deletes the provided set element.- Parameters:
columnName- the name of the set column.element- the element to delete.- Returns:
- this in-build DELETE Selection
-
setElt
public Delete.Selection setElt(String columnName, BindMarker element)
Deletes the provided set element, specified as a bind marker.- Parameters:
columnName- the name of the set column.element- the element to delete.- Returns:
- this in-build DELETE Selection
-
mapElt
public Delete.Selection mapElt(String columnName, Object key)
Deletes a map element given a key.- Parameters:
columnName- the name of the map column.key- the key for the element to delete.- Returns:
- this in-build DELETE Selection
-
-