public class H2ScriptRunner extends ScriptRunner
ScriptRunner.ScriptTypedialect, LOG, placeholders, scripts, scriptType, usePlaceholders| Constructor and Description |
|---|
H2ScriptRunner(Dialect dialect)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyUdfScripts(java.sql.Connection conn)
Apply SQL scripts.
|
protected void |
createMissingUdfs(java.lang.String dbname,
java.lang.String url,
java.lang.String adm,
java.lang.String pwd)
Check for missing UDFs and create them.
|
addScriptPath, applyDDLScripts, applyPlaceholders, applySchema, applyScripts, createMissingUdfs, defaultUdfScripts, execute, main, makeScripts, parseCmdLine, supportsUdfScriptspublic H2ScriptRunner(Dialect dialect)
dialect - the target database dialectprotected void applyUdfScripts(java.sql.Connection conn)
throws java.sql.SQLException,
java.io.IOException
applyUdfScripts in class ScriptRunnerconn - Database connection.java.sql.SQLException - on SQL error.java.io.IOException - on script reading error.protected void createMissingUdfs(java.lang.String dbname,
java.lang.String url,
java.lang.String adm,
java.lang.String pwd)
throws java.sql.SQLException,
PersistenceException
createMissingUdfs in class ScriptRunnerdbname - Database name.url - Database JDBC URL.adm - Admin login.pwd - Admin password.java.sql.SQLException - on SQL error.PersistenceException - on script reading error.