<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>
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private boolean | |
| private String | |
| private boolean | |
| private List | |
| private boolean | |
| private String | |
| private File | |
| private String | |
| private File | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public void | |
| private String[] | |
| public void | |
| public void | |
| public void | setDelimiter(String
the delimiter delimiter)Set the end of statement delimiter for the generated script |
| public void | |
| public void | |
| public void | |
| public void | setNamingStrategy(String namingStrategy)
Deprecated
Use
setImplicitNamingStrategy or setPhysicalNamingStrategy
instead
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| configurationFile | back to summary |
|---|---|
| private File configurationFile | |
| create | back to summary |
|---|---|
| private boolean create | |
| delimiter | back to summary |
|---|---|
| private String delimiter | |
| drop | back to summary |
|---|---|
| private boolean drop | |
| fileSets | back to summary |
|---|---|
| private List<FileSet> fileSets | |
| haltOnError | back to summary |
|---|---|
| private boolean haltOnError | |
| implicitNamingStrategy | back to summary |
|---|---|
| private String implicitNamingStrategy | |
| outputFile | back to summary |
|---|---|
| private File outputFile | |
| physicalNamingStrategy | back to summary |
|---|---|
| private String physicalNamingStrategy | |
| propertiesFile | back to summary |
|---|---|
| private File propertiesFile | |
| quiet | back to summary |
|---|---|
| private boolean quiet | |
| text | back to summary |
|---|---|
| private boolean text | |
| SchemaExportTask | back to summary |
|---|---|
| public SchemaExportTask() | |
| addFileset | back to summary |
|---|---|
public void addFileset(FileSet set)
| |
| doExecution | back to summary |
|---|---|
private void doExecution() throws Exception
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task
| |
| getFiles | back to summary |
|---|---|
| private String[] getFiles() | |
| setConfig | back to summary |
|---|---|
| public void setConfig(File configurationFile) Set a
| |
| setCreate | back to summary |
|---|---|
| public void setCreate(boolean create) Enable "create" mode. Database objects will be created but not first dropped.
| |
| setDelimiter | back to summary |
|---|---|
| public void setDelimiter(String delimiter) Set the end of statement delimiter for the generated script
| |
| setDrop | back to summary |
|---|---|
| public void setDrop(boolean drop) Enable "drop" mode. Database objects will be dropped but not recreated.
| |
| setHaltonerror | back to summary |
|---|---|
public void setHaltonerror(boolean haltOnError)
| |
| setImplicitNamingStrategy | back to summary |
|---|---|
public void setImplicitNamingStrategy(String implicitNamingStrategy)
| |
| setNamingStrategy | back to summary |
|---|---|
| public void setNamingStrategy(String namingStrategy)
Deprecated Use
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(File outputFile) Set the script output file
| |
| setPhysicalNamingStrategy | back to summary |
|---|---|
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(File propertiesFile) Set a properties file
| |
| setQuiet | back to summary |
|---|---|
| public void setQuiet(boolean quiet) Enable "quiet" mode. The schema will not be written to standard out.
| |
| setText | back to summary |
|---|---|
| public void setText(boolean text) Enable "text-only" mode. The schema will not be exported to the database.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Action | |
| public static final SchemaExportTask. | |
| public static final SchemaExportTask. | |
| public static final SchemaExportTask. | |
| public static final SchemaExportTask. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public Action | |
| public static SchemaExportTask. | |
| public static SchemaExportTask. | |
| public static SchemaExportTask. |
| action | back to summary |
|---|---|
| private final Action action | |
| BOTH | back to summary |
|---|---|
| public static final SchemaExportTask. | |
| CREATE | back to summary |
|---|---|
| public static final SchemaExportTask. | |
| DROP | back to summary |
|---|---|
| public static final SchemaExportTask. | |
| NONE | back to summary |
|---|---|
| public static final SchemaExportTask. | |
| ExportType | back to summary |
|---|---|
| private ExportType(Action action) | |
| doCreate | back to summary |
|---|---|
| public boolean doCreate() | |
| doDrop | back to summary |
|---|---|
| public boolean doDrop() | |
| getAction | back to summary |
|---|---|
| public Action getAction() | |
| interpret | back to summary |
|---|---|
| public static SchemaExportTask. | |
| valueOf | back to summary |
|---|---|
| public static SchemaExportTask. | |
| values | back to summary |
|---|---|
| public static SchemaExportTask. | |