org.dbmaintain.script.parser.parsingstate.impl
Class MySqlPlSqlBlockMatcher

java.lang.Object
  extended by org.dbmaintain.script.parser.parsingstate.impl.MySqlPlSqlBlockMatcher
All Implemented Interfaces:
PlSqlBlockMatcher

public class MySqlPlSqlBlockMatcher
extends Object
implements PlSqlBlockMatcher

Author:
Ken Dombeck, Tim Ducheyne, Filip Neven

Constructor Summary
MySqlPlSqlBlockMatcher()
           
 
Method Summary
 boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
          Returns whether the given string is the start of a pl-sql block definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlPlSqlBlockMatcher

public MySqlPlSqlBlockMatcher()
Method Detail

isStartOfPlSqlBlock

public boolean isStartOfPlSqlBlock(StringBuilder statementWithoutCommentsOrWhitespace)
Description copied from interface: PlSqlBlockMatcher
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.

Specified by:
isStartOfPlSqlBlock in interface PlSqlBlockMatcher
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.