|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.ant.Command
public abstract class Command
Base class for commands that work with a database and repository model.
Constructor Summary | |
---|---|
Command()
|
Method Summary | |
---|---|
abstract void |
execute(org.apache.tools.ant.Task task,
org.apache.ddlutils.model.Database dbModel,
DescriptorRepository objModel)
Executes this command. |
protected String |
getDatabaseType()
Returns the database type. |
protected org.apache.ddlutils.Platform |
getPlatform()
Creates the platform for the configured database. |
boolean |
isFailOnError()
Determines whether the command execution will be stopped upon an error. |
void |
setFailOnError(boolean failOnError)
Specifies whether the command execution will be stopped upon an error. |
protected void |
setPlatform(org.apache.ddlutils.Platform platform)
Sets the platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Command()
Method Detail |
---|
protected String getDatabaseType()
protected void setPlatform(org.apache.ddlutils.Platform platform)
platform
- The platformpublic 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 org.apache.ddlutils.Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public abstract void execute(org.apache.tools.ant.Task task, org.apache.ddlutils.model.Database dbModel, DescriptorRepository objModel) throws org.apache.tools.ant.BuildException
task
- The executing taskdbModel
- The database modelobjModel
- The object model
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |