Class AbstractStatementParser.ParsedStatement
- java.lang.Object
-
- com.google.cloud.spanner.connection.AbstractStatementParser.ParsedStatement
-
- Enclosing class:
- AbstractStatementParser
@InternalApi public static class AbstractStatementParser.ParsedStatement extends Object
A statement that has been parsed
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
StatementResult.ClientSideStatementType
getClientSideStatementType()
Returns theStatementResult.ClientSideStatementType
of this statement.String
getSqlWithoutComments()
Returns the SQL statement with all comments removed from the SQL string.AbstractStatementParser.StatementType
getType()
Returns the type of statement that was recognized by the parser.int
hashCode()
boolean
hasReturningClause()
Returns whether the statement has a returning clause or not.boolean
isDdl()
Returns true if the statement is a DDL statement.boolean
isQuery()
Returns true if the statement is a query that will return aResultSet
.boolean
isUpdate()
Returns true if the statement is a DML statement or a client side statement that will return an update count.
-
-
-
Method Detail
-
getType
@InternalApi public AbstractStatementParser.StatementType getType()
Returns the type of statement that was recognized by the parser.
-
hasReturningClause
@InternalApi public boolean hasReturningClause()
Returns whether the statement has a returning clause or not. *
-
isQuery
@InternalApi public boolean isQuery()
Returns true if the statement is a query that will return aResultSet
.
-
isUpdate
@InternalApi public boolean isUpdate()
Returns true if the statement is a DML statement or a client side statement that will return an update count.
-
isDdl
@InternalApi public boolean isDdl()
Returns true if the statement is a DDL statement.
-
getClientSideStatementType
@InternalApi public StatementResult.ClientSideStatementType getClientSideStatementType()
Returns theStatementResult.ClientSideStatementType
of this statement. This method may only be called on statements of typeAbstractStatementParser.StatementType.CLIENT_SIDE
.
-
getSqlWithoutComments
@InternalApi public String getSqlWithoutComments()
Returns the SQL statement with all comments removed from the SQL string.
-
-