类 SchemaUpdateTask

  • 所有已实现的接口:
    Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

    public class SchemaUpdateTask
    extends org.apache.tools.ant.taskdefs.MatchingTask
    An Ant task for SchemaUpdate.

     <taskdef name="schemaupdate"
         classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
         classpathref="class.path"/>
    
     <schemaupdate
         properties="${build.classes.dir}/hibernate.properties"
         quiet="no"
         <fileset dir="${build.classes.dir}">
             <include name="*.hbm.xml"/>
         </fileset>
     </schemaupdate>
     
    作者:
    Rong C Ou, Gavin King
    另请参阅:
    SchemaUpdate
    • 字段概要

      • 从类继承的字段 org.apache.tools.ant.taskdefs.MatchingTask

        fileset
      • 从类继承的字段 org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • 从类继承的字段 org.apache.tools.ant.ProjectComponent

        description, location, project
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addFileset​(org.apache.tools.ant.types.FileSet fileSet)  
      void execute()
      Execute the task
      String getDelimiter()  
      File getOutputFile()  
      boolean isHaltOnError()  
      void setConfig​(File configurationFile)
      Set a cfg.xml file
      void setDelimiter​(String delimiter)  
      void setHaltOnError​(boolean haltOnError)  
      void setImplicitNamingStrategy​(String implicitNamingStrategy)  
      void setNamingStrategy​(String namingStrategy)  
      void setOutputFile​(File outputFile)  
      void setPhysicalNamingStrategy​(String physicalNamingStrategy)  
      void setProperties​(File propertiesFile)
      Set a properties file
      void setQuiet​(boolean quiet)
      Enable "quiet" mode.
      void setText​(boolean text)
      Enable "text-only" mode.
      • 从类继承的方法 org.apache.tools.ant.taskdefs.MatchingTask

        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, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
      • 从类继承的方法 org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • 从类继承的方法 org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation
    • 构造器详细资料

      • SchemaUpdateTask

        public SchemaUpdateTask()
    • 方法详细资料

      • addFileset

        public void addFileset​(org.apache.tools.ant.types.FileSet fileSet)
      • setProperties

        public void setProperties​(File propertiesFile)
        Set a properties file
        参数:
        propertiesFile - the properties file name
      • setConfig

        public void setConfig​(File configurationFile)
        Set a cfg.xml file
        参数:
        configurationFile - the file name
      • setText

        public void setText​(boolean text)
        Enable "text-only" mode. The schema will not be updated in the database.
        参数:
        text - true to enable text-only mode
      • setQuiet

        public void setQuiet​(boolean quiet)
        Enable "quiet" mode. The schema will not be written to standard out.
        参数:
        quiet - true to enable quiet mode
      • setNamingStrategy

        public void setNamingStrategy​(String namingStrategy)
      • setImplicitNamingStrategy

        public void setImplicitNamingStrategy​(String implicitNamingStrategy)
      • setPhysicalNamingStrategy

        public void setPhysicalNamingStrategy​(String physicalNamingStrategy)
      • getOutputFile

        public File getOutputFile()
      • setOutputFile

        public void setOutputFile​(File outputFile)
      • isHaltOnError

        public boolean isHaltOnError()
      • setHaltOnError

        public void setHaltOnError​(boolean haltOnError)
      • getDelimiter

        public String getDelimiter()
      • setDelimiter

        public void setDelimiter​(String delimiter)
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute the task
        覆盖:
        execute 在类中 org.apache.tools.ant.Task
        抛出:
        org.apache.tools.ant.BuildException