com.datastax.driver.core.querybuilder
Class Delete.Selection

java.lang.Object
  extended by com.datastax.driver.core.querybuilder.Delete.Builder
      extended by 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.


Field Summary
 
Fields inherited from class com.datastax.driver.core.querybuilder.Delete.Builder
columnNames
 
Constructor Summary
Delete.Selection()
           
 
Method Summary
 Delete.Builder all()
          Deletes all columns (i.e.
 Delete.Selection column(String name)
          Deletes the provided column.
 Delete.Selection listElt(String columnName, int idx)
          Deletes the provided list element.
 Delete.Selection mapElt(String columnName, Object key)
          Deletes a map element given a key.
 
Methods inherited from class com.datastax.driver.core.querybuilder.Delete.Builder
from, from, from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delete.Selection

public Delete.Selection()
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 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.