public class WriteSchemaToDatabaseCommand extends DatabaseCommandWithCreationParameters
_addIdentityUsingAlterTable, _isolationLevel, _platformConf| Constructor and Description |
|---|
WriteSchemaToDatabaseCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
protected boolean |
isAlterDatabase()
Determines whether to alter the database if it already exists, or re-set it.
|
protected boolean |
isDoDrops()
Determines whether to drop tables and the associated constraints before re-creating them
(this implies
alterDatabase is false). |
void |
setAlterDatabase(boolean alterTheDb)
Specifies whether DdlUtils shall alter an existing database rather than clearing it and
creating it new.
|
void |
setDoDrops(boolean doDrops)
Specifies whether tables, external constraints, etc.
|
addConfiguredParameter, getFilteredParametersgetCatalogPattern, getDatabaseType, getDataSource, getIsolationLevel, getPlatform, getSchemaPattern, isAddIdentityUsingAlterTable, isRequiringModel, setAddIdentityUsingAlterTable, setIsolationLevel, setPlatformConfigurationhandleException, isFailOnError, setFailOnErrorprotected boolean isAlterDatabase()
true if to alter the databasepublic void setAlterDatabase(boolean alterTheDb)
alterTheDb - true if to alter the databaseprotected boolean isDoDrops()
alterDatabase is false).true if drops shall be performedpublic void setDoDrops(boolean doDrops)
alterDatabase is false.doDrops - true if drops shall be performedpublic void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.