com.datastax.driver.core
Class RegularStatement
java.lang.Object
com.datastax.driver.core.Statement
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.
Methods inherited from class com.datastax.driver.core.Statement |
disableTracing, enableTracing, getConsistencyLevel, getFetchSize, getKeyspace, getRetryPolicy, getRoutingKey, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setFetchSize, setRetryPolicy, setSerialConsistencyLevel |
RegularStatement
public RegularStatement()
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.