Package com.evolveum.midpoint.util.sql
Class ScriptRunner
java.lang.Object
com.evolveum.midpoint.util.sql.ScriptRunner
Tool to run database scripts.
 Original author is unknown at this moment.
- 
Constructor SummaryConstructorsConstructorDescriptionScriptRunner(Connection connection, boolean autoCommit, boolean stopOnError) Default constructor
- 
Method SummaryModifier and TypeMethodDescriptionvoidRuns an SQL script (read in using the Reader parameter)voidsetDelimiter(String delimiter, boolean fullLineDelimiter) voidsetErrorLogWriter(PrintWriter errorLogWriter) Setter for errorLogWriter propertyvoidsetLogWriter(PrintWriter logWriter) Setter for logWriter property
- 
Constructor Details- 
ScriptRunnerDefault constructor
 
- 
- 
Method Details- 
setDelimiter
- 
setLogWriterSetter for logWriter property- Parameters:
- logWriter- - the new value of the logWriter property
 
- 
setErrorLogWriterSetter for errorLogWriter property- Parameters:
- errorLogWriter- - the new value of the errorLogWriter property
 
- 
runScriptRuns an SQL script (read in using the Reader parameter)- Parameters:
- reader- - the source of the script
- Throws:
- IOException
- SQLException
 
 
-