public class CheckSchemaOperation
extends java.lang.Object
run()
method. The
addVariableReplacement(String, String)
method return the instance to enable method chaining.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCHEMA_OBJECT_PREFIX_VARIABLE |
static java.lang.String |
TABLE_SPACE_VARIABLE |
Constructor and Description |
---|
CheckSchemaOperation(ConnectionHelper connectionhelper,
java.io.InputStream ddlStream,
java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
CheckSchemaOperation |
addVariableReplacement(java.lang.String var,
java.lang.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 java.lang.String SCHEMA_OBJECT_PREFIX_VARIABLE
public static final java.lang.String TABLE_SPACE_VARIABLE
public CheckSchemaOperation(ConnectionHelper connectionhelper, java.io.InputStream ddlStream, java.lang.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(java.lang.String var, java.lang.String replacement)
var
- the variablereplacement
- the replacement valuepublic void run() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
- if an error occursjava.io.IOException
- if an error occursCopyright © 2010 - 2023 Adobe. All Rights Reserved