Class AbstractStatementParser.ParsedStatement (6.23.4)

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

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