Class AbstractStatementParser.ParsedStatement (6.72.0)

public static class AbstractStatementParser.ParsedStatement

A statement that has been parsed

Inheritance

Object > AbstractStatementParser.ParsedStatement

Methods

equals(Object other)

public boolean equals(Object other)
Parameter
Name Description
other Object
Returns
Type Description
boolean
Overrides

getClientSideStatementType()

public StatementResult.ClientSideStatementType getClientSideStatementType()
Returns
Type Description
StatementResult.ClientSideStatementType

the ClientSideStatementType of this statement. This method may only be called on statements of type StatementType#CLIENT_SIDE.

getOptionsFromHints()

public Options.ReadQueryUpdateTransactionOption[] getOptionsFromHints()
Returns
Type Description
ReadQueryUpdateTransactionOption[]

getSqlWithoutComments()

public String getSqlWithoutComments()
Returns
Type Description
String

the SQL statement with all comments removed from the SQL string.

getType()

public AbstractStatementParser.StatementType getType()
Returns
Type Description
AbstractStatementParser.StatementType

the type of statement that was recognized by the parser.

hasReturningClause()

public boolean hasReturningClause()
Returns
Type Description
boolean

whether the statement has a returning clause or not.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

isDdl()

public boolean isDdl()
Returns
Type Description
boolean

true if the statement is a DDL statement.

isQuery()

public boolean isQuery()
Returns
Type Description
boolean

true if the statement is a query that will return a com.google.cloud.spanner.ResultSet.

isUpdate()

public boolean isUpdate()
Returns
Type Description
boolean

true if the statement is a DML statement or a client side statement that will return an update count.