Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » ant » [javadoc | source]
org.apache.openjpa.jdbc.ant
public class: MappingToolTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.MatchingTask
            org.apache.openjpa.lib.ant.AbstractTask
               org.apache.openjpa.jdbc.ant.MappingToolTask

All Implemented Interfaces:
    SelectorContainer, Cloneable

Executes the MappingTool on the specified files. This task can take the following arguments: Of these arguments, only action is required.
Nested Class Summary:
public static class  MappingToolTask.Action   
public static class  MappingToolTask.SchemaAction   
Field Summary
protected  MappingTool.Flags flags     
protected  String file     
protected  String schemaFile     
protected  String sqlFile     
protected  boolean tmpClassLoader     
Fields inherited from org.apache.openjpa.lib.ant.AbstractTask:
fileSets,  haltOnError,  classpath,  useParent,  isolate
Method from org.apache.openjpa.jdbc.ant.MappingToolTask Summary:
executeOn,   newConfiguration,   setAction,   setDropSequences,   setDropTables,   setFile,   setForeignKeys,   setIgnoreErrors,   setIndexes,   setMeta,   setOpenJPATables,   setPrimaryKeys,   setReadSchema,   setSQLFile,   setSchemaAction,   setSchemaFile,   setSequences,   setTmpClassLoader
Methods from org.apache.openjpa.lib.ant.AbstractTask:
addFileset,   assertFiles,   createClasspath,   createConfig,   execute,   executeOn,   getClassLoader,   getConfiguration,   newConfiguration,   setClasspath,   setHaltOnError,   setIsolate,   setUseParentClassloader
Methods from org.apache.tools.ant.taskdefs.MatchingTask:
XsetIgnore,   XsetItems,   add,   addAnd,   addContains,   addContainsRegexp,   addCustom,   addDate,   addDepend,   addDepth,   addDifferent,   addFilename,   addMajority,   addModified,   addNone,   addNot,   addOr,   addPresent,   addSelector,   addSize,   addType,   appendSelector,   createExclude,   createExcludesFile,   createInclude,   createIncludesFile,   createPatternSet,   getSelectors,   hasSelectors,   selectorCount,   selectorElements,   setCaseSensitive,   setDefaultexcludes,   setExcludes,   setExcludesfile,   setFollowSymlinks,   setIncludes,   setIncludesfile,   setProject
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   init,   log,   log,   log,   log,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.ant.MappingToolTask Detail:
 protected  void executeOn(String[] files) throws Exception 
 protected ConfigurationImpl newConfiguration() 
 public  void setAction(MappingToolTask.Action act) 
    Set the enumerated MappingTool action type.
 public  void setDropSequences(boolean dropSequences) 
    Set whether the MappingTool should drop sequences.
 public  void setDropTables(boolean dropTables) 
    Set whether the MappingTool should drop tables.
 public  void setFile(String file) 
    Set the output file we want the MappingTool to write to.
 public  void setForeignKeys(boolean fks) 
    Set whether to generate foreign key information.
 public  void setIgnoreErrors(boolean ignoreErrors) 
    Set whether we want the MappingTool to ignore SQL errors.
 public  void setIndexes(boolean idxs) 
    Set whether to generate index information.
 public  void setMeta(boolean meta) 
    Set whether this action applies to metadata as well as mappings.
 public  void setOpenJPATables(boolean openjpaTables) 
    Set whether to drop OpenJPA tables.
 public  void setPrimaryKeys(boolean pks) 
    Set whether to generate primary key information.
 public  void setReadSchema(boolean readSchema) 
    Set whether the MappingTool should read the full schema.
 public  void setSQLFile(String sqlFile) 
    Set the output file we want the MappingTool to write a SQL script to.
 public  void setSchemaAction(MappingToolTask.SchemaAction act) 
    Set the enumerated SchemaTool action type.
 public  void setSchemaFile(String schemaFile) 
    Set the output file for an XML representation of the planned schema.
 public  void setSequences(boolean sequences) 
    Set whether the MappingTool should manipulate sequences.
 public  void setTmpClassLoader(boolean tmpClassLoader) 

    Set whether a temporary ClassLoader should be used by the MappingTool. The default value is true