| java.lang.Object org.apache.ojb.broker.ant.Command
All known Subclasses: org.apache.ojb.broker.ant.WriteDtdToFileCommand, org.apache.ojb.broker.ant.WriteDataToDatabaseCommand, org.apache.ojb.broker.ant.WriteDataSqlToFileCommand,
Command | abstract public class Command (Code) | | Base class for commands that work with a database and repository model.
author: Thomas Dudziak version: $Revision: 1.1.2.2 $ |
Method Summary | |
abstract public void | execute(Task task, Database dbModel, DescriptorRepository objModel) Executes this command. | protected String | getDatabaseType() Returns the database type. | protected Platform | getPlatform() Creates the platform for the configured database. | public boolean | isFailOnError() Determines whether the command execution will be stopped upon an error. | public void | setFailOnError(boolean failOnError) Specifies whether the command execution will be stopped upon an error. | protected void | setPlatform(Platform platform) Sets the platform. |
execute | abstract public void execute(Task task, Database dbModel, DescriptorRepository objModel) throws BuildException(Code) | | Executes this command.
Parameters: task - The executing task Parameters: dbModel - The database model Parameters: objModel - The object model |
getDatabaseType | protected String getDatabaseType()(Code) | | Returns the database type.
The database type |
getPlatform | protected Platform getPlatform() throws BuildException(Code) | | Creates the platform for the configured database.
The platform |
isFailOnError | public boolean isFailOnError()(Code) | | Determines whether the command execution will be stopped upon an error.
Default value is true .
true if the execution stops in case of an error |
setFailOnError | public void setFailOnError(boolean failOnError)(Code) | | Specifies whether the command execution will be stopped upon an error.
Parameters: failOnError - true if the execution stops in case of an error |
setPlatform | protected void setPlatform(Platform platform)(Code) | | Sets the platform.
Parameters: platform - The platform |
|
|