类 SchemaExportTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.tools.ant.taskdefs.MatchingTask
-
- org.hibernate.tool.hbm2ddl.SchemaExportTask
-
- 所有已实现的接口:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class SchemaExportTask extends org.apache.tools.ant.taskdefs.MatchingTaskAn Ant task for SchemaExport.<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="class.path"/> <schemaexport properties="${build.classes.dir}/hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="${build.dir}/schema-export.sql"> <fileset dir="${build.classes.dir}"> <include name="*.hbm.xml"/> </fileset> </schemaexport>- 作者:
- Rong C Ou
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSchemaExportTask.ExportType
-
构造器概要
构造器 构造器 说明 SchemaExportTask()
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidaddFileset(org.apache.tools.ant.types.FileSet set)voidexecute()Execute the taskvoidsetConfig(File configurationFile)Set a.cfg.xml file, which will be loaded as a resource, from the classpathvoidsetCreate(boolean create)Enable "create" mode.voidsetDelimiter(String delimiter)Set the end of statement delimiter for the generated scriptvoidsetDrop(boolean drop)Enable "drop" mode.voidsetHaltonerror(boolean haltOnError)voidsetImplicitNamingStrategy(String implicitNamingStrategy)voidsetNamingStrategy(String namingStrategy)voidsetOutput(File outputFile)Set the script output filevoidsetPhysicalNamingStrategy(String physicalNamingStrategy)voidsetProperties(File propertiesFile)Set a properties filevoidsetQuiet(boolean quiet)Enable "quiet" mode.voidsetText(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
-
-
-
-
方法详细资料
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet set)
-
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, which will be loaded as a resource, from the classpath- 参数:
configurationFile- the path to the resource
-
setQuiet
public void setQuiet(boolean quiet)
Enable "quiet" mode. The schema will not be written to standard out.- 参数:
quiet- true to enable quiet mode
-
setText
public void setText(boolean text)
Enable "text-only" mode. The schema will not be exported to the database.- 参数:
text- true to enable text-only mode
-
setDrop
public void setDrop(boolean drop)
Enable "drop" mode. Database objects will be dropped but not recreated.- 参数:
drop- true to enable drop mode
-
setCreate
public void setCreate(boolean create)
Enable "create" mode. Database objects will be created but not first dropped.- 参数:
create- true to enable create mode
-
setDelimiter
public void setDelimiter(String delimiter)
Set the end of statement delimiter for the generated script- 参数:
delimiter- the delimiter
-
setOutput
public void setOutput(File outputFile)
Set the script output file- 参数:
outputFile- the file name
-
setNamingStrategy
@Deprecated public void setNamingStrategy(String namingStrategy)
-
setImplicitNamingStrategy
public void setImplicitNamingStrategy(String implicitNamingStrategy)
-
setPhysicalNamingStrategy
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
-
setHaltonerror
public void setHaltonerror(boolean haltOnError)
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionExecute the task- 覆盖:
execute在类中org.apache.tools.ant.Task- 抛出:
org.apache.tools.ant.BuildException
-
-