org.unitils.dbmaintainer.script
Interface ScriptParser

All Known Implementing Classes:
DefaultScriptParser, OracleScriptParser

public interface ScriptParser

An interface for a parser that can parse statements out of a script.

Author:
Tim Ducheyne, Filip Neven

Method Summary
 String getNextStatement()
          Gets the next statement out of the given script stream.
 void init(Properties configuration, Reader scriptReader)
          Initializes the parser with the given configuration settings.
 

Method Detail

init

void init(Properties configuration,
          Reader scriptReader)
Initializes the parser with the given configuration settings.

Parameters:
configuration - The config, not null
scriptReader - The script stream, not null

getNextStatement

String getNextStatement()
Gets the next statement out of the given script stream.

Returns:
the statements, null if no more statements


Copyright © 2011. All Rights Reserved.