| org.jpox.SchemaToolTask
SchemaToolTask | public class SchemaToolTask extends Java (Code) | | SchemaTool Ant Task. Accepts the following parameters
- mode Mode of operation ("create", "delete", "validate", "dbinfo", "schemainfo").
- verbose Verbose output.
- props Name of a properties file for use in SchemaTool (PMF properties)
- ddlFile Name of a file to output the DDL into
- completeDdl Whether to output complete DDL (otherwise just the missing tables/constraints)
- persistenceUnit Name of a persistence-unit to manage the schema for
version: $Revision: 1.13 $ |
Field Summary | |
Vector | filesets Filesets of JDO files to be used in generating the schema. |
filesets | Vector filesets(Code) | | Filesets of JDO files to be used in generating the schema.
|
SchemaToolTask | public SchemaToolTask()(Code) | | Constructor.
|
addFileSet | public void addFileSet(FileSet fs)(Code) | | Add a fileset. @see ant manual
Parameters: fs - the FileSet |
execute | public void execute() throws BuildException(Code) | | Execute method, to execute the task.
throws: BuildException - if any error happens while running the task |
setApi | public void setApi(String api)(Code) | | Set the API Adapter
Parameters: api - API Adapter |
setCompleteDdl | public void setCompleteDdl(boolean complete)(Code) | | set complete DDL
Parameters: complete - Whether to give complete DDL |
setDdlFile | public void setDdlFile(String file)(Code) | | Set the file to output DDL to
Parameters: file - Name of DDL file |
setMode | public void setMode(String mode)(Code) | | Sets the mode of operation.
Parameters: mode - The mode of operation ("create", "delete", "validate", "dbinfo", "schemainfo") |
setPersistenceUnit | public void setPersistenceUnit(String unitName)(Code) | | Set the name of the persistence unit to manage
Parameters: unitName - Name of persistence-unit |
setProps | public void setProps(String propsFileName)(Code) | | Get properties for the PMF from a file
Parameters: propsFileName - Name of props file |
setVerbose | public void setVerbose(boolean verbose)(Code) | | set verbose
Parameters: verbose - Whether to give verbose output |
|
|