net.sf.hloader.tasks
Class DescribeTablesTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.JDBCTask
              extended bynet.sf.hloader.tasks.DescribeTablesTask

public class DescribeTablesTask
extends org.apache.tools.ant.taskdefs.JDBCTask

An Ant task that drops all tables in a database. todo - display table columns and types as an option?

Version:
$Id: DescribeTablesTask.java,v 1.3 2004/01/28 23:32:36 bdargan Exp $
Author:
Brett Dargan

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
DescribeTablesTask()
           
 
Method Summary
 void execute()
          Executes this task.
 void setGenerateDomainObject(boolean generateDomainObject)
          Sets if DomainObjects should be generated (otherwise, a simple text description is generated
 void setTableName(java.lang.String tableName)
          Set the name of the table to generate a domain object for.
 
Methods inherited from class org.apache.tools.ant.taskdefs.JDBCTask
createClasspath, getClasspath, getConnection, getLoader, getLoaderMap, getPassword, getRdbms, getUrl, getUserId, getVersion, isAutocommit, isCaching, isValidRdbms, setAutocommit, setCaching, setClasspath, setClasspathRef, setDriver, setPassword, setRdbms, setUrl, setUserid, setVersion
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribeTablesTask

public DescribeTablesTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes this task.

Throws:
org.apache.tools.ant.BuildException

setGenerateDomainObject

public void setGenerateDomainObject(boolean generateDomainObject)
Sets if DomainObjects should be generated (otherwise, a simple text description is generated


setTableName

public void setTableName(java.lang.String tableName)
Set the name of the table to generate a domain object for. This attribute is ignored if generateDomainObject is not set to true.