Class SpannerStatementParser
- java.lang.Object
-
- com.google.cloud.spanner.connection.AbstractStatementParser
-
- com.google.cloud.spanner.connection.SpannerStatementParser
-
@InternalApi public class SpannerStatementParser extends AbstractStatementParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.cloud.spanner.connection.AbstractStatementParser
AbstractStatementParser.ParametersInfo, AbstractStatementParser.ParsedStatement, AbstractStatementParser.StatementType
-
-
Constructor Summary
Constructors Constructor Description SpannerStatementParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkReturningClauseInternal(String rawSql)
Checks if the given SQL string contains a Returning clause.protected boolean
supportsExplain()
Indicates whether the parser supports theEXPLAIN
clause.-
Methods inherited from class com.google.cloud.spanner.connection.AbstractStatementParser
checkReturningClause, convertPositionalParametersToNamedParameters, getInstance, isDdlStatement, isQuery, isUpdateStatement, parse, removeCommentsAndTrim
-
-
-
-
Method Detail
-
supportsExplain
protected boolean supportsExplain()
Indicates whether the parser supports theEXPLAIN
clause. The Spanner parser does support it.- Specified by:
supportsExplain
in classAbstractStatementParser
-
checkReturningClauseInternal
@InternalApi protected boolean checkReturningClauseInternal(String rawSql)
Description copied from class:AbstractStatementParser
Checks if the given SQL string contains a Returning clause. This method is used only in case of a DML statement.- Specified by:
checkReturningClauseInternal
in classAbstractStatementParser
- Parameters:
rawSql
- The sql string without comments that has to be evaluated.- Returns:
- A boolean indicating whether the sql string has a Returning clause or not.
-
-