org.apache.ddlutils.task
Interface Command

All Known Implementing Classes:
DatabaseCommand, WriteDtdToFileCommand, WriteSchemaToFileCommand

public interface Command

Base interface for commands that work with a model.

Version:
$Revision: 289996 $

Method Summary
 void execute(DatabaseTaskBase task, Database model)
          Executes this command.
 boolean isRequiringModel()
          Specifies whether this command requires a model, i.e.
 

Method Detail

isRequiringModel

public boolean isRequiringModel()
Specifies whether this command requires a model, i.e. whether the second argument in execute(DatabaseTaskBase, Database) cannot be null.

Returns:
true if this command requires a model

execute

public void execute(DatabaseTaskBase task,
                    Database model)
             throws org.apache.tools.ant.BuildException
Executes this command.

Parameters:
task - The executing task
model - The database model
Throws:
org.apache.tools.ant.BuildException


Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.