org.unitils.dbmaintainer.script.impl
Class OracleScriptParser

java.lang.Object
  extended by org.unitils.dbmaintainer.script.impl.DefaultScriptParser
      extended by org.unitils.dbmaintainer.script.impl.OracleScriptParser
All Implemented Interfaces:
ScriptParser

public class OracleScriptParser
extends DefaultScriptParser

A parser that can handle Oracle specific things like PL/SQL and a forward slash (/) as separator.

Author:
Tim Ducheyne, Filip Neven

Nested Class Summary
static class OracleScriptParser.OracleStatementBuilder
          A statement builder with special handling for Oracle
 
Field Summary
 
Fields inherited from class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
currentChar, currentParsingState, initialParsingState, PROPKEY_BACKSLASH_ESCAPING_ENABLED, scriptReader
 
Constructor Summary
OracleScriptParser()
           
 
Method Summary
protected  NormalParsingState createNormalParsingState()
          Factory method for the normal parsing state.
protected  StatementBuilder createStatementBuilder()
          Factory method for the statement builder.
 
Methods inherited from class org.unitils.dbmaintainer.script.impl.DefaultScriptParser
createInBlockCommentParsingState, createInDoubleQuotesParsingState, createInitialParsingState, createInLineCommentParsingState, createInSingleQuotesParsingState, getNextStatement, getNextStatementImpl, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleScriptParser

public OracleScriptParser()
Method Detail

createNormalParsingState

protected NormalParsingState createNormalParsingState()
Description copied from class: DefaultScriptParser
Factory method for the normal parsing state.

Overrides:
createNormalParsingState in class DefaultScriptParser
Returns:
an OracleNormalParsingState that parses PL/SQL blocks correctly.

createStatementBuilder

protected StatementBuilder createStatementBuilder()
Factory method for the statement builder. Overridden to use the OracleStatementBuilder.

Overrides:
createStatementBuilder in class DefaultScriptParser
Returns:
The statement builder, not null


Copyright © 2011. All Rights Reserved.