com.datastax.driver.core.querybuilder
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Delete.Selection
public Delete.Selection()
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 name)
- Deletes the provided column.
- Parameters:
name
- the column name 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
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
Copyright © 2013. All Rights Reserved.