Class AbstractStatementParser.ParsedStatement (6.25.1)

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 the ClientSideStatementType of this statement. This method may only be called on statements of type StatementType#CLIENT_SIDE.

Returns
TypeDescription
StatementResult.ClientSideStatementType

getSqlWithoutComments()

public String getSqlWithoutComments()

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

Returns
TypeDescription
String

getType()

public AbstractStatementParser.StatementType getType()

Returns the type of statement that was recognized by the parser.

Returns
TypeDescription
AbstractStatementParser.StatementType

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isDdl()

public boolean isDdl()

Returns true if the statement is a DDL statement.

Returns
TypeDescription
boolean

isQuery()

public boolean isQuery()

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

Returns
TypeDescription
boolean

isUpdate()

public boolean isUpdate()

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

Returns
TypeDescription
boolean