public final class Statement
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
Statement |
clone() |
java.util.Map<java.lang.String,java.lang.Object> |
getParams()
Parameter names and values that bind to placeholders in the DML string.
|
java.util.Map<java.lang.String,Type> |
getParamTypes()
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
|
java.lang.String |
getSql()
Required.
|
Statement |
set(java.lang.String fieldName,
java.lang.Object value) |
Statement |
setParams(java.util.Map<java.lang.String,java.lang.Object> params)
Parameter names and values that bind to placeholders in the DML string.
|
Statement |
setParamTypes(java.util.Map<java.lang.String,Type> paramTypes)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
|
Statement |
setSql(java.lang.String sql)
Required.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.Map<java.lang.String,Type> getParamTypes()
null
for nonepublic Statement setParamTypes(java.util.Map<java.lang.String,Type> paramTypes)
paramTypes
- paramTypes or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getParams()
null
for nonepublic Statement setParams(java.util.Map<java.lang.String,java.lang.Object> params)
params
- params or null
for nonepublic java.lang.String getSql()
null
for nonepublic Statement setSql(java.lang.String sql)
sql
- sql or null
for nonepublic Statement set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Statement clone()
clone
in class com.google.api.client.json.GenericJson