com.netflix.astyanax.query
Class AbstractPreparedCqlQuery<K,C>

java.lang.Object
  extended by com.netflix.astyanax.query.AbstractPreparedCqlQuery<K,C>
All Implemented Interfaces:
com.netflix.astyanax.Execution<CqlResult<K,C>>, PreparedCqlQuery<K,C>

public abstract class AbstractPreparedCqlQuery<K,C>
extends java.lang.Object
implements PreparedCqlQuery<K,C>


Constructor Summary
AbstractPreparedCqlQuery()
           
 
Method Summary
protected  java.util.List<java.nio.ByteBuffer> getValues()
           
 PreparedCqlQuery<K,C> withBooleanValue(java.lang.Boolean value)
          Set the next parameter value to this Boolean
<V> PreparedCqlQuery<K,C>
withByteBufferValue(V value, Serializer<V> serializer)
          Specify a value of custom type for which a convenience method does not exist
 PreparedCqlQuery<K,C> withDoubleValue(java.lang.Double value)
          Set the next parameter value to this Double
 PreparedCqlQuery<K,C> withFloatValue(java.lang.Float value)
          Set the next parameter value to this Float
 PreparedCqlQuery<K,C> withIntegerValue(java.lang.Integer value)
          Set the next parameter value to this Integer
 PreparedCqlQuery<K,C> withLongValue(java.lang.Long value)
          Set the next parameter value to this Long
 PreparedCqlQuery<K,C> withShortValue(java.lang.Short value)
          Set the next parameter value to this Short
 PreparedCqlQuery<K,C> withStringValue(java.lang.String value)
          Set the next parameter value to this String
 PreparedCqlQuery<K,C> withUUIDValue(java.util.UUID value)
          Set the next parameter value to this Short
 PreparedCqlQuery<K,C> withValue(java.nio.ByteBuffer value)
          Set the next parameter value to this ByteBuffer
 PreparedCqlQuery<K,C> withValues(java.util.List<java.nio.ByteBuffer> values)
          Add a list of ByteBuffer values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.netflix.astyanax.Execution
execute, executeAsync
 

Constructor Detail

AbstractPreparedCqlQuery

public AbstractPreparedCqlQuery()
Method Detail

getValues

protected java.util.List<java.nio.ByteBuffer> getValues()

withByteBufferValue

public <V> PreparedCqlQuery<K,C> withByteBufferValue(V value,
                                                     Serializer<V> serializer)
Description copied from interface: PreparedCqlQuery
Specify a value of custom type for which a convenience method does not exist

Specified by:
withByteBufferValue in interface PreparedCqlQuery<K,C>

withValue

public PreparedCqlQuery<K,C> withValue(java.nio.ByteBuffer value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this ByteBuffer

Specified by:
withValue in interface PreparedCqlQuery<K,C>

withValues

public PreparedCqlQuery<K,C> withValues(java.util.List<java.nio.ByteBuffer> values)
Description copied from interface: PreparedCqlQuery
Add a list of ByteBuffer values

Specified by:
withValues in interface PreparedCqlQuery<K,C>

withStringValue

public PreparedCqlQuery<K,C> withStringValue(java.lang.String value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this String

Specified by:
withStringValue in interface PreparedCqlQuery<K,C>

withIntegerValue

public PreparedCqlQuery<K,C> withIntegerValue(java.lang.Integer value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Integer

Specified by:
withIntegerValue in interface PreparedCqlQuery<K,C>

withBooleanValue

public PreparedCqlQuery<K,C> withBooleanValue(java.lang.Boolean value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Boolean

Specified by:
withBooleanValue in interface PreparedCqlQuery<K,C>

withDoubleValue

public PreparedCqlQuery<K,C> withDoubleValue(java.lang.Double value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Double

Specified by:
withDoubleValue in interface PreparedCqlQuery<K,C>

withLongValue

public PreparedCqlQuery<K,C> withLongValue(java.lang.Long value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Long

Specified by:
withLongValue in interface PreparedCqlQuery<K,C>

withFloatValue

public PreparedCqlQuery<K,C> withFloatValue(java.lang.Float value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Float

Specified by:
withFloatValue in interface PreparedCqlQuery<K,C>

withShortValue

public PreparedCqlQuery<K,C> withShortValue(java.lang.Short value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Short

Specified by:
withShortValue in interface PreparedCqlQuery<K,C>

withUUIDValue

public PreparedCqlQuery<K,C> withUUIDValue(java.util.UUID value)
Description copied from interface: PreparedCqlQuery
Set the next parameter value to this Short

Specified by:
withUUIDValue in interface PreparedCqlQuery<K,C>