|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.task.DatabaseCommand
Base type for commands that have the database info embedded.
| Field Summary | |
protected org.apache.commons.logging.Log |
_log
The log. |
| Constructor Summary | |
DatabaseCommand()
|
|
| Method Summary | |
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 |
isFailOnError()
Determines whether the command execution will be stopped upon an error. |
boolean |
isRequiringModel()
Specifies whether this command requires a model, i.e. whether the second argument in Command.execute(DatabaseTaskBase, Database) cannot be null. |
void |
setFailOnError(boolean failOnError)
Specifies whether the execution shall stop if an error has occurred during the task runs. |
protected void |
setPlatformConfiguration(PlatformConfiguration platformConf)
Sets the platform configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ddlutils.task.Command |
execute |
| Field Detail |
protected final org.apache.commons.logging.Log _log
| Constructor Detail |
public DatabaseCommand()
| Method Detail |
protected String getDatabaseType()
protected org.apache.commons.dbcp.BasicDataSource getDataSource()
public String getCatalogPattern()
public String getSchemaPattern()
protected void setPlatformConfiguration(PlatformConfiguration platformConf)
platformConf - The platform configurationpublic boolean isFailOnError()
true.
true if the execution stops in case of an errorpublic void setFailOnError(boolean failOnError)
failOnError - true if the execution shall stop in case of an error
protected Platform getPlatform()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic boolean isRequiringModel()
Command.execute(DatabaseTaskBase, Database) cannot be null.
isRequiringModel in interface Commandtrue if this command requires a model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||