|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.tool.hbm2ddl.SchemaExport
public class SchemaExport
Commandline tool to export table schema to the database. This class may also be called from inside an application.
Constructor Summary | |
---|---|
SchemaExport(Configuration cfg)
Create a schema exporter for the given Configuration |
|
SchemaExport(Configuration cfg,
Connection connection)
|
|
SchemaExport(Configuration cfg,
Properties properties)
Deprecated. properties may be specified via the Configuration object |
|
SchemaExport(Configuration cfg,
Settings settings)
Create a schema exporter for the given Configuration and given settings |
Method Summary | |
---|---|
void |
create(boolean script,
boolean export)
Run the schema creation script. |
void |
drop(boolean script,
boolean export)
Run the drop schema script. |
void |
execute(boolean script,
boolean export,
boolean justDrop,
boolean justCreate)
|
List |
getExceptions()
Returns a List of all Exceptions which occured during the export. |
static void |
main(String[] args)
|
SchemaExport |
setDelimiter(String delimiter)
Set the end of statement delimiter |
SchemaExport |
setFormat(boolean format)
|
SchemaExport |
setHaltOnError(boolean haltOnError)
|
SchemaExport |
setImportFile(String filename)
|
SchemaExport |
setOutputFile(String filename)
Set an output filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaExport(Configuration cfg) throws HibernateException
HibernateException
public SchemaExport(Configuration cfg, Settings settings) throws HibernateException
HibernateException
public SchemaExport(Configuration cfg, Properties properties) throws HibernateException
HibernateException
public SchemaExport(Configuration cfg, Connection connection)
Method Detail |
---|
public SchemaExport setOutputFile(String filename)
public SchemaExport setImportFile(String filename)
public SchemaExport setDelimiter(String delimiter)
public void create(boolean script, boolean export)
script
- print the DDL to the consoleexport
- export the script to the databasepublic void drop(boolean script, boolean export)
script
- print the DDL to the consoleexport
- export the script to the databasepublic void execute(boolean script, boolean export, boolean justDrop, boolean justCreate)
public static void main(String[] args)
public List getExceptions()
public SchemaExport setFormat(boolean format)
public SchemaExport setHaltOnError(boolean haltOnError)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |