Class AbstractStatementParser.ParsedStatement (6.51.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
NameDescription
otherObject
Returns
TypeDescription
boolean
Overrides

getClientSideStatementType()

public StatementResult.ClientSideStatementType getClientSideStatementType()
Returns
TypeDescription
StatementResult.ClientSideStatementType

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

getSqlWithoutComments()

public String getSqlWithoutComments()
Returns
TypeDescription
String

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

getType()

public AbstractStatementParser.StatementType getType()
Returns
TypeDescription
AbstractStatementParser.StatementType

the type of statement that was recognized by the parser.

hasReturningClause()

public boolean hasReturningClause()
Returns
TypeDescription
boolean

whether the statement has a returning clause or not.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isDdl()

public boolean isDdl()
Returns
TypeDescription
boolean

true if the statement is a DDL statement.

isQuery()

public boolean isQuery()
Returns
TypeDescription
boolean

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

isUpdate()

public boolean isUpdate()
Returns
TypeDescription
boolean

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