|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.task.Command
org.apache.ddlutils.task.DatabaseCommand
public abstract class DatabaseCommand
Base type for commands that have the database info embedded.
Field Summary |
---|
Fields inherited from class org.apache.ddlutils.task.Command |
---|
_log |
Constructor Summary | |
---|---|
DatabaseCommand()
|
Method Summary | |
---|---|
java.lang.String |
getCatalogPattern()
Returns the catalog pattern if any. |
protected java.lang.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. |
java.lang.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. |
Methods inherited from class org.apache.ddlutils.task.Command |
---|
execute, handleException, isFailOnError, setFailOnError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseCommand()
Method Detail |
---|
protected java.lang.String getDatabaseType()
protected org.apache.commons.dbcp.BasicDataSource getDataSource()
public java.lang.String getCatalogPattern()
public java.lang.String getSchemaPattern()
protected void setPlatformConfiguration(PlatformConfiguration platformConf)
platformConf
- The platform configurationprotected Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public boolean isRequiringModel()
Command.execute(DatabaseTaskBase, Database)
cannot be null
.
isRequiringModel
in class Command
true
if this command requires a model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |