|
||||||||||
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.
Constructor Summary | |
DatabaseCommand()
|
Method Summary | |
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. |
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(Task, Database) cannot be null . |
void |
setFailOnError(boolean failOnError)
Specifies whether the command execution will be stopped upon an error. |
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 |
Constructor Detail |
public DatabaseCommand()
Method Detail |
protected String getDatabaseType()
protected org.apache.commons.dbcp.BasicDataSource getDataSource()
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 stops in case of an errorprotected Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public boolean isRequiringModel()
Command.execute(Task, Database)
cannot be null
.
isRequiringModel
in interface Command
true
if this command requires a model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |