Package io.ebean.migration.runner
Class ScriptTransform
- java.lang.Object
-
- io.ebean.migration.runner.ScriptTransform
-
public class ScriptTransform extends Object
Transforms a SQL script given a map of key/value substitutions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScriptTransformbuild(String runPlaceholders, Map<String,String> runPlaceholderMap)Build and return a ScriptTransform that replaces placeholder values in DDL scripts.static Stringreplace(String key, String value, String script)Transform just ${table} with the table name.Stringtransform(String source)Transform the script replacing placeholders in the form${key}withvalue.
-
-
-
Method Detail
-
replace
public static String replace(String key, String value, String script)
Transform just ${table} with the table name.
-
build
public static ScriptTransform build(String runPlaceholders, Map<String,String> runPlaceholderMap)
Build and return a ScriptTransform that replaces placeholder values in DDL scripts.
-
-