public abstract class DatabaseCommand extends Command
| Constructor and Description |
|---|
DatabaseCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogPattern()
Returns the catalog pattern if any.
|
protected String |
getDatabaseType()
Returns the database type.
|
protected org.apache.commons.dbcp.BasicDataSource |
getDataSource()
Returns the data source to use for accessing the database.
|
protected Platform |
getPlatform()
Creates the platform for the configured database.
|
String |
getSchemaPattern()
Returns the schema pattern if any.
|
boolean |
isRequiringModel()
Specifies whether this command requires a model, i.e.
|
protected void |
setPlatformConfiguration(PlatformConfiguration platformConf)
Sets the platform configuration.
|
execute, handleException, isFailOnError, setFailOnErrorprotected String getDatabaseType()
protected org.apache.commons.dbcp.BasicDataSource getDataSource()
public String getCatalogPattern()
public String getSchemaPattern()
protected void setPlatformConfiguration(PlatformConfiguration platformConf)
platformConf - The platform configurationprotected Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic boolean isRequiringModel()
Command.execute(DatabaseTaskBase, Database) cannot be null.isRequiringModel in class Commandtrue if this command requires a modelCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.