public final class ExecuteSqlRequest
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 |
---|
ExecuteSqlRequest() |
Modifier and Type | Method and Description |
---|---|
ExecuteSqlRequest |
clone() |
byte[] |
decodePartitionToken()
If present, results will be restricted to the specified partition previously created using
PartitionQuery().
|
byte[] |
decodeResumeToken()
If this request is resuming a previously interrupted SQL statement execution, `resume_token`
should be copied from the last PartialResultSet yielded before the interruption.
|
ExecuteSqlRequest |
encodePartitionToken(byte[] partitionToken)
If present, results will be restricted to the specified partition previously created using
PartitionQuery().
|
ExecuteSqlRequest |
encodeResumeToken(byte[] resumeToken)
If this request is resuming a previously interrupted SQL statement execution, `resume_token`
should be copied from the last PartialResultSet yielded before the interruption.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParams()
Parameter names and values that bind to placeholders in the SQL 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 |
getPartitionToken()
If present, results will be restricted to the specified partition previously created using
PartitionQuery().
|
java.lang.String |
getQueryMode()
Used to control the amount of debugging information returned in ResultSetStats.
|
QueryOptions |
getQueryOptions()
Query optimizer configuration to use for the given query.
|
java.lang.String |
getResumeToken()
If this request is resuming a previously interrupted SQL statement execution, `resume_token`
should be copied from the last PartialResultSet yielded before the interruption.
|
java.lang.Long |
getSeqno()
A per-transaction sequence number used to identify this request.
|
java.lang.String |
getSql()
Required.
|
TransactionSelector |
getTransaction()
The transaction to use.
|
ExecuteSqlRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
ExecuteSqlRequest |
setParams(java.util.Map<java.lang.String,java.lang.Object> params)
Parameter names and values that bind to placeholders in the SQL string.
|
ExecuteSqlRequest |
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.
|
ExecuteSqlRequest |
setPartitionToken(java.lang.String partitionToken)
If present, results will be restricted to the specified partition previously created using
PartitionQuery().
|
ExecuteSqlRequest |
setQueryMode(java.lang.String queryMode)
Used to control the amount of debugging information returned in ResultSetStats.
|
ExecuteSqlRequest |
setQueryOptions(QueryOptions queryOptions)
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest |
setResumeToken(java.lang.String resumeToken)
If this request is resuming a previously interrupted SQL statement execution, `resume_token`
should be copied from the last PartialResultSet yielded before the interruption.
|
ExecuteSqlRequest |
setSeqno(java.lang.Long seqno)
A per-transaction sequence number used to identify this request.
|
ExecuteSqlRequest |
setSql(java.lang.String sql)
Required.
|
ExecuteSqlRequest |
setTransaction(TransactionSelector transaction)
The transaction to use.
|
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 ExecuteSqlRequest 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 ExecuteSqlRequest setParams(java.util.Map<java.lang.String,java.lang.Object> params)
params
- params or null
for nonepublic java.lang.String getPartitionToken()
null
for nonedecodePartitionToken()
public byte[] decodePartitionToken()
null
for nonegetPartitionToken()
public ExecuteSqlRequest setPartitionToken(java.lang.String partitionToken)
partitionToken
- partitionToken or null
for none#encodePartitionToken()
public ExecuteSqlRequest encodePartitionToken(byte[] partitionToken)
The value is encoded Base64 or {@code null} for none.
public java.lang.String getQueryMode()
null
for nonepublic ExecuteSqlRequest setQueryMode(java.lang.String queryMode)
queryMode
- queryMode or null
for nonepublic QueryOptions getQueryOptions()
null
for nonepublic ExecuteSqlRequest setQueryOptions(QueryOptions queryOptions)
queryOptions
- queryOptions or null
for nonepublic java.lang.String getResumeToken()
null
for nonedecodeResumeToken()
public byte[] decodeResumeToken()
null
for nonegetResumeToken()
public ExecuteSqlRequest setResumeToken(java.lang.String resumeToken)
resumeToken
- resumeToken or null
for none#encodeResumeToken()
public ExecuteSqlRequest encodeResumeToken(byte[] resumeToken)
The value is encoded Base64 or {@code null} for none.
public java.lang.Long getSeqno()
null
for nonepublic ExecuteSqlRequest setSeqno(java.lang.Long seqno)
seqno
- seqno or null
for nonepublic java.lang.String getSql()
null
for nonepublic ExecuteSqlRequest setSql(java.lang.String sql)
sql
- sql or null
for nonepublic TransactionSelector getTransaction()
null
for nonepublic ExecuteSqlRequest setTransaction(TransactionSelector transaction)
transaction
- transaction or null
for nonepublic ExecuteSqlRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ExecuteSqlRequest clone()
clone
in class com.google.api.client.json.GenericJson