Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
BoundStatement |
PreparedStatement.bind()
Creates a new BoundStatement object for this prepared statement.
|
BoundStatement |
DefaultPreparedStatement.bind() |
BoundStatement |
BoundStatement.bind(Object... values)
Bound values to the variables of this statement.
|
BoundStatement |
PreparedStatement.bind(Object... values)
Creates a new BoundStatement object and bind its variables to the provided values.
|
BoundStatement |
DefaultPreparedStatement.bind(Object... values) |
<V> BoundStatement |
BoundStatement.set(int i,
V v,
Class<V> targetClass)
Sets the
i th value to the provided value of the provided Java class. |
<V> BoundStatement |
BoundStatement.set(int i,
V v,
TypeCodec<V> codec)
Sets the
i th value to the provided value, converted using the given TypeCodec . |
<V> BoundStatement |
BoundStatement.set(int i,
V v,
TypeToken<V> targetType)
Sets the
i th value to the provided value of the provided Java type. |
<V> BoundStatement |
BoundStatement.set(String name,
V v,
Class<V> targetClass)
Sets the value for (all occurrences of) variable
name to the provided value of the
provided Java class. |
<V> BoundStatement |
BoundStatement.set(String name,
V v,
TypeCodec<V> codec)
Sets the value for (all occurrences of) variable
name to the provided value, converted
using the given TypeCodec . |
<V> BoundStatement |
BoundStatement.set(String name,
V v,
TypeToken<V> targetType)
Sets the value for (all occurrences of) variable
name to the provided value of the
provided Java type. |
BoundStatement |
BoundStatement.setBool(int i,
boolean v)
Sets the
i th value to the provided boolean. |
BoundStatement |
BoundStatement.setBool(String name,
boolean v)
Sets the value for (all occurrences of) variable
name to the provided boolean. |
BoundStatement |
BoundStatement.setByte(int i,
byte v)
Set the
i th value to the provided byte. |
BoundStatement |
BoundStatement.setByte(String name,
byte v)
Sets the value for (all occurrences of) variable
name to the provided byte. |
BoundStatement |
BoundStatement.setBytes(int i,
ByteBuffer v)
Sets the
i th value to the provided byte buffer. |
BoundStatement |
BoundStatement.setBytes(String name,
ByteBuffer v)
Sets the value for (all occurrences of) variable
name to the provided byte buffer. |
BoundStatement |
BoundStatement.setBytesUnsafe(int i,
ByteBuffer v)
Sets the
i th value to the provided byte buffer. |
BoundStatement |
BoundStatement.setBytesUnsafe(String name,
ByteBuffer v)
Sets the value for (all occurrences of) variable
name to the provided byte buffer. |
BoundStatement |
BoundStatement.setDate(int i,
LocalDate v)
Set the
i th value to the provided date (without time). |
BoundStatement |
BoundStatement.setDate(String name,
LocalDate v)
Sets the value for (all occurrences of) variable
name to the provided date (without
time). |
BoundStatement |
BoundStatement.setDecimal(int i,
BigDecimal v)
Sets the
i th value to the provided big decimal. |
BoundStatement |
BoundStatement.setDecimal(String name,
BigDecimal v)
Sets the value for (all occurrences of) variable
name to the provided big decimal. |
BoundStatement |
BoundStatement.setDouble(int i,
double v)
Sets the
i th value to the provided double. |
BoundStatement |
BoundStatement.setDouble(String name,
double v)
Sets the value for (all occurrences of) variable
name to the provided double. |
BoundStatement |
BoundStatement.setFloat(int i,
float v)
Sets the
i th value to the provided float. |
BoundStatement |
BoundStatement.setFloat(String name,
float v)
Sets the value for (all occurrences of) variable
name to the provided float. |
BoundStatement |
BoundStatement.setInet(int i,
InetAddress v)
Sets the
i th value to the provided inet address. |
BoundStatement |
BoundStatement.setInet(String name,
InetAddress v)
Sets the value for (all occurrences of) variable
name to the provided inet address. |
BoundStatement |
BoundStatement.setInt(int i,
int v)
Set the
i th value to the provided integer. |
BoundStatement |
BoundStatement.setInt(String name,
int v)
Sets the value for (all occurrences of) variable
name to the provided integer. |
<E> BoundStatement |
BoundStatement.setList(int i,
List<E> v,
Class<E> elementsClass)
Sets the
i th value to the provided list, which elements are of the provided Java class. |
<E> BoundStatement |
BoundStatement.setList(int i,
List<E> v,
TypeToken<E> elementsType)
Sets the
i th value to the provided list, which elements are of the provided Java type. |
<T> BoundStatement |
BoundStatement.setList(int i,
List<T> v)
Sets the
i th value to the provided list. |
<E> BoundStatement |
BoundStatement.setList(String name,
List<E> v,
Class<E> elementsClass)
Sets the value for (all occurrences of) variable
name to the provided list, which
elements are of the provided Java class. |
<E> BoundStatement |
BoundStatement.setList(String name,
List<E> v,
TypeToken<E> elementsType)
Sets the value for (all occurrences of) variable
name to the provided list, which
elements are of the provided Java type. |
<T> BoundStatement |
BoundStatement.setList(String name,
List<T> v)
Sets the value for (all occurrences of) variable
name to the provided list. |
BoundStatement |
BoundStatement.setLong(int i,
long v)
Sets the
i th value to the provided long. |
BoundStatement |
BoundStatement.setLong(String name,
long v)
Sets the value for (all occurrences of) variable
name to the provided long. |
<K,V> BoundStatement |
BoundStatement.setMap(int i,
Map<K,V> v)
Sets the
i th value to the provided map. |
<K,V> BoundStatement |
BoundStatement.setMap(int i,
Map<K,V> v,
Class<K> keysClass,
Class<V> valuesClass)
Sets the
i th value to the provided map, which keys and values are of the provided Java
classes. |
<K,V> BoundStatement |
BoundStatement.setMap(int i,
Map<K,V> v,
TypeToken<K> keysType,
TypeToken<V> valuesType)
Sets the
i th value to the provided map, which keys and values are of the provided Java
types. |
<K,V> BoundStatement |
BoundStatement.setMap(String name,
Map<K,V> v)
Sets the value for (all occurrences of) variable
name to the provided map. |
<K,V> BoundStatement |
BoundStatement.setMap(String name,
Map<K,V> v,
Class<K> keysClass,
Class<V> valuesClass)
Sets the value for (all occurrences of) variable
name to the provided map, which keys
and values are of the provided Java classes. |
<K,V> BoundStatement |
BoundStatement.setMap(String name,
Map<K,V> v,
TypeToken<K> keysType,
TypeToken<V> valuesType)
Sets the value for (all occurrences of) variable
name to the provided map, which keys
and values are of the provided Java types. |
BoundStatement |
BoundStatement.setPartitionKeyToken(Token v)
Sets the value for (all occurrences of) variable "
partition key token " to the provided
token (this is the name generated by Cassandra for markers corresponding to a token(...) call). |
BoundStatement |
BoundStatement.setRoutingKey(ByteBuffer... routingKeyComponents)
Sets the routing key for this bound statement, when the query partition key is composite and
the routing key must be built from multiple values.
|
BoundStatement |
BoundStatement.setRoutingKey(ByteBuffer routingKey)
Sets the routing key for this bound statement.
|
<E> BoundStatement |
BoundStatement.setSet(int i,
Set<E> v,
Class<E> elementsClass)
Sets the
i th value to the provided set, which elements are of the provided Java class. |
<E> BoundStatement |
BoundStatement.setSet(int i,
Set<E> v,
TypeToken<E> elementsType)
Sets the
i th value to the provided set, which elements are of the provided Java type. |
<T> BoundStatement |
BoundStatement.setSet(int i,
Set<T> v)
Sets the
i th value to the provided set. |
<E> BoundStatement |
BoundStatement.setSet(String name,
Set<E> v,
Class<E> elementsClass)
Sets the value for (all occurrences of) variable
name to the provided set, which
elements are of the provided Java class. |
<E> BoundStatement |
BoundStatement.setSet(String name,
Set<E> v,
TypeToken<E> elementsType)
Sets the value for (all occurrences of) variable
name to the provided set, which
elements are of the provided Java type. |
<T> BoundStatement |
BoundStatement.setSet(String name,
Set<T> v)
Sets the value for (all occurrences of) variable
name to the provided set. |
BoundStatement |
BoundStatement.setShort(int i,
short v)
Set the
i th value to the provided short. |
BoundStatement |
BoundStatement.setShort(String name,
short v)
Sets the value for (all occurrences of) variable
name to the provided short. |
BoundStatement |
BoundStatement.setString(int i,
String v)
Sets the
i th value to the provided string. |
BoundStatement |
BoundStatement.setString(String name,
String v)
Sets the value for (all occurrences of) variable
name to the provided string. |
BoundStatement |
BoundStatement.setTime(int i,
long v)
Set the
i th value to the provided time as a long in nanoseconds since midnight. |
BoundStatement |
BoundStatement.setTime(String name,
long v)
Sets the value for (all occurrences of) variable
name to the provided time as a long in
nanoseconds since midnight. |
BoundStatement |
BoundStatement.setTimestamp(int i,
Date v)
Set the
i th value to the provided date. |
BoundStatement |
BoundStatement.setTimestamp(String name,
Date v)
Sets the value for (all occurrences of) variable
name to the provided date. |
BoundStatement |
BoundStatement.setToken(int i,
Token v)
Sets the
i th value to the provided Token . |
BoundStatement |
BoundStatement.setToken(String name,
Token v)
Sets the value for (all occurrences of) variable
name to the provided token. |
BoundStatement |
BoundStatement.setToNull(int i)
Sets the
i th value to null . |
BoundStatement |
BoundStatement.setToNull(String name)
Sets the value for (all occurrences of) variable
name to null . |
BoundStatement |
BoundStatement.setTupleValue(int i,
TupleValue v)
Sets the
i th value to the provided tuple value. |
BoundStatement |
BoundStatement.setTupleValue(String name,
TupleValue v)
Sets the value for (all occurrences of) variable
name to the provided tuple value. |
BoundStatement |
BoundStatement.setUDTValue(int i,
UDTValue v)
Sets the
i th value to the provided UDT value. |
BoundStatement |
BoundStatement.setUDTValue(String name,
UDTValue v)
Sets the value for (all occurrences of) variable
name to the provided UDT value. |
BoundStatement |
BoundStatement.setUUID(int i,
UUID v)
Sets the
i th value to the provided UUID. |
BoundStatement |
BoundStatement.setUUID(String name,
UUID v)
Sets the value for (all occurrences of) variable
name to the provided UUID. |
BoundStatement |
BoundStatement.setVarint(int i,
BigInteger v)
Sets the
i th value to the provided big integer. |
BoundStatement |
BoundStatement.setVarint(String name,
BigInteger v)
Sets the value for (all occurrences of) variable
name to the provided big integer. |
Modifier and Type | Method and Description |
---|---|
protected int |
QueryLogger.appendParameters(BoundStatement statement,
StringBuilder buffer,
int remaining) |
Copyright © 2012–2024. All rights reserved.