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
Name Description
other Object
Returns
Type Description
boolean
Overrides

getSqlWithoutComments()

public String getSqlWithoutComments()

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

Returns
Type Description
String

getType()

public AbstractStatementParser.StatementType getType()

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

Returns
Type Description
AbstractStatementParser.StatementType

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

isDdl()

public boolean isDdl()

Returns true if the statement is a DDL statement.

Returns
Type Description
boolean

isQuery()

public boolean isQuery()

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

Returns
Type Description
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
Type Description
boolean