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

java.lang.Object
  extended by com.datastax.driver.core.querybuilder.Delete.Builder
Direct Known Subclasses:
Delete.Selection
Enclosing class:
Delete

public static class Delete.Builder
extends Object

An in-construction DELETE statement.


Field Summary
protected  List<Object> columnNames
           
 
Constructor Summary
protected Delete.Builder()
           
 
Method Summary
 Delete from(String table)
          Adds the table to delete from.
 Delete from(String keyspace, String table)
          Adds the table to delete from.
 Delete from(TableMetadata table)
          Adds the table to delete from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

protected List<Object> columnNames
Constructor Detail

Delete.Builder

protected Delete.Builder()
Method Detail

from

public Delete from(String table)
Adds the table to delete from.

Parameters:
table - the name of the table to delete from.
Returns:
a newly built DELETE statement that deletes from table.

from

public Delete from(String keyspace,
                   String table)
Adds the table to delete from.

Parameters:
keyspace - the name of the keyspace to delete from.
table - the name of the table to delete from.
Returns:
a newly built DELETE statement that deletes from keyspace.table.

from

public Delete from(TableMetadata table)
Adds the table to delete from.

Parameters:
table - the table to delete from.
Returns:
a newly built DELETE statement that deletes from table.


Copyright © 2013. All Rights Reserved.