com.datastax.driver.core
Class RegularStatement

java.lang.Object
  extended by com.datastax.driver.core.Statement
      extended by com.datastax.driver.core.RegularStatement
Direct Known Subclasses:
Batch, Batch.Options, Delete, Delete.Options, Delete.Where, Insert, Insert.Options, Select, Select.Where, SimpleStatement, Truncate, Update, Update.Assignments, Update.Conditions, Update.Options, Update.Where

public abstract class RegularStatement
extends Statement

A regular (non-prepared and non batched) CQL statement.

This class represents a query string along with query options (and optionally binary values, see getValues). It can be extended but SimpleStatement is provided as a simple implementation to build a RegularStatement directly from its query string.


Constructor Summary
RegularStatement()
           
 
Method Summary
abstract  String getQueryString()
          Returns the query string for this statement.
abstract  ByteBuffer[] getValues()
          The values to use for this statement.
 String toString()
           
 
Methods inherited from class com.datastax.driver.core.Statement
disableTracing, enableTracing, getConsistencyLevel, getFetchSize, getKeyspace, getRetryPolicy, getRoutingKey, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setFetchSize, setRetryPolicy, setSerialConsistencyLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegularStatement

public RegularStatement()
Method Detail

getQueryString

public abstract String getQueryString()
Returns the query string for this statement.

Returns:
a valid CQL query string.

getValues

public abstract ByteBuffer[] getValues()
The values to use for this statement.

Returns:
the values to use for this statement or null if there is no such values.
See Also:
SimpleStatement.SimpleStatement(String, Object...)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All rights reserved.