org.datanucleus.store.rdbms
Class SchemaToolTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Java
              extended by org.datanucleus.store.rdbms.SchemaToolTask
All Implemented Interfaces:
java.lang.Cloneable

public class SchemaToolTask
extends org.apache.tools.ant.taskdefs.Java

SchemaTool Ant Task. Accepts the following parameters


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Java
redirector, redirectorElement
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
SchemaToolTask()
          Constructor.
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
          Add a fileset.
 void execute()
          Execute method, to execute the task.
protected  java.io.File[] getFiles()
           
 void setApi(java.lang.String api)
          Set the API Adapter
 void setCompleteDdl(boolean complete)
          Mutator for whether to output complete DDL.
 void setDdlFile(java.lang.String file)
          Set the file to output DDL to
 void setMode(java.lang.String mode)
          Sets the mode of operation.
 void setPersistenceUnit(java.lang.String unitName)
          Set the name of the persistence unit to manage
 void setProps(java.lang.String propsFileName)
          Get persistence properties from a file
 void setVerbose(boolean verbose)
          set verbose
 
Methods inherited from class org.apache.tools.ant.taskdefs.Java
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaToolTask

public SchemaToolTask()
Constructor.

Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute method, to execute the task.

Overrides:
execute in class org.apache.tools.ant.taskdefs.Java
Throws:
org.apache.tools.ant.BuildException - if any error happens while running the task

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)
Add a fileset. @see ant manual

Parameters:
fs - the FileSet

getFiles

protected java.io.File[] getFiles()

setVerbose

public void setVerbose(boolean verbose)
set verbose

Parameters:
verbose - Whether to give verbose output

setProps

public void setProps(java.lang.String propsFileName)
Get persistence properties from a file

Parameters:
propsFileName - Name of props file

setDdlFile

public void setDdlFile(java.lang.String file)
Set the file to output DDL to

Parameters:
file - Name of DDL file

setCompleteDdl

public void setCompleteDdl(boolean complete)
Mutator for whether to output complete DDL.

Parameters:
complete - Whether to give complete DDL

setPersistenceUnit

public void setPersistenceUnit(java.lang.String unitName)
Set the name of the persistence unit to manage

Parameters:
unitName - Name of persistence-unit

setApi

public void setApi(java.lang.String api)
Set the API Adapter

Parameters:
api - API Adapter

setMode

public void setMode(java.lang.String mode)
Sets the mode of operation.

Parameters:
mode - The mode of operation ("create", "delete", "validate", "dbinfo", "schemainfo")


Copyright © 2009. All Rights Reserved.