Class CreateDatabaseCommand
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.DatabaseCommand
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.CreateDatabaseCommand
The sub task for creating the target database. Note that this is only supported on some database
platforms. See the database support documentation for details on which platforms support this.
This sub task does not require schema files. Therefore the
This sub task does not require schema files. Therefore the
fileset
subelement and
the schemaFile
attribute of the enclosing task can be omitted.- Version:
- $Revision: 231306 $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredParameter
(Parameter param) Adds a parameter which is a name-value pair.void
execute
(DatabaseTaskBase task, Database model) Executes this command.boolean
Specifies whether this command requires a model, i.e.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.DatabaseCommand
getCatalogPattern, getDatabaseType, getDataSource, getPlatform, getSchemaPattern, setPlatformConfiguration
Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
handleException, isFailOnError, setFailOnError
-
Constructor Details
-
CreateDatabaseCommand
public CreateDatabaseCommand()
-
-
Method Details
-
addConfiguredParameter
Adds a parameter which is a name-value pair.- Parameters:
param
- The parameter
-
isRequiringModel
public boolean isRequiringModel()Specifies whether this command requires a model, i.e. whether the second argument inCommand.execute(DatabaseTaskBase, Database)
cannot benull
.- Overrides:
isRequiringModel
in classDatabaseCommand
- Returns:
true
if this command requires a model
-
execute
public void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException Executes this command.
-