org.dbmaintain.script.parser.parsingstate
Interface PlSqlBlockMatcher

All Known Implementing Classes:
Db2PlSqlBlockMatcher, MySqlPlSqlBlockMatcher, NeverMatchingPlSqlBlockMatcher, OraclePlSqlBlockMatcher, PostgreSqlPlSqlBlockMatcher

public interface PlSqlBlockMatcher

Defines the contract for implementations that define whether a given start is the start of a pl-sql block (e.g. stored procedure) for a specific SQL dialect.

Author:
Filip Neven, Tim Ducheyne

Method Summary
 boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
          Returns whether the given string is the start of a pl-sql block definition.
 

Method Detail

isStartOfPlSqlBlock

boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
Returns whether the given string is the start of a pl-sql block definition. Only works if the given string doesn't contain redundant whitespace and if it's only the start of the statement, not containing any more data.

Parameters:
statementWithoutCommentsOrWhitespace - the start of an SQL statement
Returns:
true if the given start of an SQL statement indicates the begin of a pl-sql block definition


Copyright © 2011. All Rights Reserved.