public abstract class RegularStatement extends 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.
idempotent
Modifier | Constructor and Description |
---|---|
protected |
RegularStatement()
Creates a new RegularStatement.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getQueryString()
Returns the query string for this statement.
|
abstract ByteBuffer[] |
getValues()
The values to use for this statement.
|
String |
toString() |
disableTracing, enableTracing, getConsistencyLevel, getFetchSize, getKeyspace, getRetryPolicy, getRoutingKey, getSerialConsistencyLevel, isIdempotent, isTracing, setConsistencyLevel, setFetchSize, setIdempotent, setPagingState, setPagingStateUnsafe, setRetryPolicy, setSerialConsistencyLevel
public abstract String getQueryString()
public abstract ByteBuffer[] getValues()
Note: Values for a RegularStatement (i.e. if this method does not return
null
) are not supported with the native protocol version 1: you
will get an UnsupportedProtocolVersionException
when submitting
one if version 1 of the protocol is in use (i.e. if you've force version
1 through Cluster.Builder.withProtocolVersion(int)
or you use
Cassandra 1.2).
null
if there is
no such values.SimpleStatement.SimpleStatement(String, Object...)
Copyright © 2012–2015. All rights reserved.