org.unitils.dbmaintainer.script.impl
Class OracleScriptParser.OracleStatementBuilder

java.lang.Object
  extended by org.unitils.dbmaintainer.script.StatementBuilder
      extended by org.unitils.dbmaintainer.script.impl.OracleScriptParser.OracleStatementBuilder
Enclosing class:
OracleScriptParser

public static class OracleScriptParser.OracleStatementBuilder
extends StatementBuilder

A statement builder with special handling for Oracle


Constructor Summary
OracleScriptParser.OracleStatementBuilder()
           
 
Method Summary
 String createStatement()
          Overridden to remove carriage returns from statements.
 char[] getTrailingSeparatorCharsToRemove()
          Overridden to add a forward slash (/) as a separator.
 
Methods inherited from class org.unitils.dbmaintainer.script.StatementBuilder
append, clear, getLength, isExecutable, setExecutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleScriptParser.OracleStatementBuilder

public OracleScriptParser.OracleStatementBuilder()
Method Detail

getTrailingSeparatorCharsToRemove

public char[] getTrailingSeparatorCharsToRemove()
Overridden to add a forward slash (/) as a separator.

Overrides:
getTrailingSeparatorCharsToRemove in class StatementBuilder
Returns:
The trailing chars, not null

createStatement

public String createStatement()
Overridden to remove carriage returns from statements. Oracle does not handle these characters correctly.

Overrides:
createStatement in class StatementBuilder
Returns:
The resulting statement, null if no statement is left


Copyright © 2011. All Rights Reserved.