java.lang.Object | |
↳ | org.hibernate.tool.hbm2ddl.SchemaExport |
Commandline tool to export table schema to the database. This class may also be called from inside an application.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a schema exporter for the given Configuration
| |||||||||||
Create a schema exporter for the given Configuration and given settings
| |||||||||||
This constructor is deprecated.
properties may be specified via the Configuration object
| |||||||||||
Create a schema exporter for the given Configuration, using the supplied connection for connectivity.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Run the schema creation script.
| |||||||||||
Run the drop schema script.
| |||||||||||
Returns a List of all Exceptions which occured during the export.
| |||||||||||
Set the end of statement delimiter
| |||||||||||
Should we format the sql strings?
| |||||||||||
Should we stop once an error occurs?
| |||||||||||
This method is deprecated.
use org.hibernate.cfg.Environment.HBM2DDL_IMPORT_FILE
| |||||||||||
For generating a export script file, this is the file which will be written.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create a schema exporter for the given Configuration
cfg | The configuration from which to build a schema export. |
---|
HibernateException | Indicates problem preparing for schema export. |
---|
Create a schema exporter for the given Configuration and given settings
cfg | The configuration from which to build a schema export. |
---|---|
settings | The 'parsed' settings. |
HibernateException | Indicates problem preparing for schema export. |
---|
This constructor is deprecated.
properties may be specified via the Configuration object
Create a schema exporter for the given Configuration, with the given database connection properties.
cfg | The configuration from which to build a schema export. |
---|---|
properties | The properties from which to configure connectivity etc. |
HibernateException | Indicates problem preparing for schema export. |
---|
Create a schema exporter for the given Configuration, using the supplied connection for connectivity.
cfg | The configuration to use. |
---|---|
connection | The JDBC connection to use. |
HibernateException | Indicates problem preparing for schema export. |
---|
Run the schema creation script.
script | print the DDL to the console |
---|---|
export | export the script to the database |
Run the drop schema script.
script | print the DDL to the console |
---|---|
export | export the script to the database |
Returns a List of all Exceptions which occured during the export.
Set the end of statement delimiter
delimiter | The delimiter |
---|
Should we format the sql strings?
format | Should we format SQL strings |
---|
Should we stop once an error occurs?
haltOnError | True if export should stop after error. |
---|
This method is deprecated.
use org.hibernate.cfg.Environment.HBM2DDL_IMPORT_FILE
An import file, containing raw SQL statements to be executed.
filename | The import file name. |
---|
For generating a export script file, this is the file which will be written.
filename | The name of the file to which to write the export script. |
---|