public class CheckSchemaOperation extends Object
run() method. The
 addVariableReplacement(String, String) method return the instance to enable method chaining.| Modifier and Type | Field and Description | 
|---|---|
| static String | SCHEMA_OBJECT_PREFIX_VARIABLE | 
| static String | TABLE_SPACE_VARIABLE | 
| Constructor and Description | 
|---|
| CheckSchemaOperation(ConnectionHelper connectionhelper,
                    InputStream ddlStream,
                    String tableName) | 
| Modifier and Type | Method and Description | 
|---|---|
| CheckSchemaOperation | addVariableReplacement(String var,
                      String replacement)Adds a variable replacement mapping. | 
| void | run()Checks if the required schema objects exist and creates them if they don't exist yet. | 
public static final String SCHEMA_OBJECT_PREFIX_VARIABLE
public static final String TABLE_SPACE_VARIABLE
public CheckSchemaOperation(ConnectionHelper connectionhelper, InputStream ddlStream, String tableName)
connectionhelper - the connection helperddlStream - the stream of the DDL to use to create the schema if necessary (closed by the
            run() method)tableName - the name of the table to use for the schema-existence-checkpublic CheckSchemaOperation addVariableReplacement(String var, String replacement)
var - the variablereplacement - the replacement valuepublic void run()
         throws SQLException,
                IOException
SQLException - if an error occursIOException - if an error occursCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.