| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private ConnectionHelper | |
| private String[] | |
| private static final String | |
| private String | |
| private Dialect | |
| private String[] | |
| private final List | |
| private Formatter | |
| private boolean | |
| private String | |
| private static final Logger | |
| private String | |
| private SQLStatementLogger |
| Access | Constructor and Description |
|---|---|
| public | SchemaExport(Configuration
The configuration from which to build a schema export. cfg)Create a schema exporter for the given Configuration |
| public | SchemaExport(Configuration
The configuration from which to build a schema export. cfg, Settings The 'parsed' settings. settings)Create a schema exporter for the given Configuration and given settings |
| public | SchemaExport(Configuration
The configuration from which to build a schema export. cfg, Properties The properties from which to configure connectivity etc. properties)
Deprecated
properties may be specified via the Configuration object
Create a schema exporter for the given Configuration, with the given
database connection properties.
|
| public | SchemaExport(Configuration
The configuration to use. cfg, Connection The JDBC connection to use. connection)Create a schema exporter for the given Configuration, using the supplied connection for connectivity. |
| Modifier and Type | Method and Description |
|---|---|
| public void | create(boolean
print the DDL to the console script, boolean export the script to the database export)Run the schema creation script. |
| private void | |
| public void | drop(boolean
print the DDL to the console script, boolean export the script to the database export)Run the drop schema script. |
| private void | |
| public void | |
| private void | |
| public List | Returns: A List containig the Exceptions occured during the exportReturns a List of all Exceptions which occured during the export. |
| private void | |
| public static void | |
| public SchemaExport | |
| public SchemaExport | |
| public SchemaExport | Returns: thisTrue if export should stop after error. haltOnError)Should we stop once an error occurs? |
| public SchemaExport | Returns: thisThe import file name. filename)
Deprecated
use
An import file, containing raw SQL statements to be executed.
org.
|
| public SchemaExport | Returns: thisThe name of the file to which to write the export script. filename)For generating a export script file, this is the file which will be written. |
| connectionHelper | back to summary |
|---|---|
| private ConnectionHelper connectionHelper | |
| createSQL | back to summary |
|---|---|
| private String[] createSQL | |
| DEFAULT_IMPORT_FILE | back to summary |
|---|---|
| private static final String DEFAULT_IMPORT_FILE | |
| delimiter | back to summary |
|---|---|
| private String delimiter | |
| dialect | back to summary |
|---|---|
| private Dialect dialect | |
| dropSQL | back to summary |
|---|---|
| private String[] dropSQL | |
| exceptions | back to summary |
|---|---|
| private final List<E> exceptions | |
| formatter | back to summary |
|---|---|
| private Formatter formatter | |
| haltOnError | back to summary |
|---|---|
| private boolean haltOnError | |
| importFiles | back to summary |
|---|---|
| private String importFiles | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| outputFile | back to summary |
|---|---|
| private String outputFile | |
| sqlStatementLogger | back to summary |
|---|---|
| private SQLStatementLogger sqlStatementLogger | |
| SchemaExport | back to summary |
|---|---|
| public SchemaExport(Configuration cfg) throws HibernateException Create a schema exporter for the given Configuration
| |
| SchemaExport | back to summary |
|---|---|
| public SchemaExport(Configuration cfg, Settings settings) throws HibernateException Create a schema exporter for the given Configuration and given settings
| |
| SchemaExport | back to summary |
|---|---|
| public SchemaExport(Configuration cfg, Properties properties) throws HibernateException
Deprecated properties may be specified via the Configuration object Create a schema exporter for the given Configuration, with the given database connection properties.
| |
| SchemaExport | back to summary |
|---|---|
| public SchemaExport(Configuration cfg, Connection connection) throws HibernateException Create a schema exporter for the given Configuration, using the supplied connection for connectivity.
| |
| create | back to summary |
|---|---|
| public void create(boolean script, boolean export) Run the schema creation script.
| |
| create | back to summary |
|---|---|
| private void create(boolean script, boolean export, Writer fileOutput, Statement statement) throws IOException | |
| drop | back to summary |
|---|---|
| public void drop(boolean script, boolean export) Run the drop schema script.
| |
| drop | back to summary |
|---|---|
| private void drop(boolean script, boolean export, Writer fileOutput, Statement statement) throws IOException | |
| execute | back to summary |
|---|---|
| public void execute(boolean script, boolean export, boolean justDrop, boolean justCreate) | |
| execute | back to summary |
|---|---|
| private void execute(boolean script, boolean export, Writer fileOutput, Statement statement, final String sql) throws IOException, SQLException | |
| getExceptions | back to summary |
|---|---|
| public List Returns a List of all Exceptions which occured during the export.
| |
| importScript | back to summary |
|---|---|
| private void importScript(SchemaExport. | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| setDelimiter | back to summary |
|---|---|
| public SchemaExport setDelimiter(String delimiter) Set the end of statement delimiter
| |
| setFormat | back to summary |
|---|---|
| public SchemaExport setFormat(boolean format) Should we format the sql strings?
| |
| setHaltOnError | back to summary |
|---|---|
| public SchemaExport setHaltOnError(boolean haltOnError) Should we stop once an error occurs?
| |
| setImportFile | back to summary |
|---|---|
| public SchemaExport setImportFile(String filename)
Deprecated An import file, containing raw SQL statements to be executed.
| |
| setOutputFile | back to summary |
|---|---|
| public SchemaExport setOutputFile(String filename) For generating a export script file, this is the file which will be written.
| |
| Access | Constructor and Description |
|---|---|
| public |
| name | back to summary |
|---|---|
| private final String name | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| NamedReader | back to summary |
|---|---|
| public NamedReader(String name, InputStream stream) | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getReader | back to summary |
|---|---|
| public Reader getReader() | |