org.hibernate.tool.hbm2ddl
Class SchemaUpdate
java.lang.Object
org.hibernate.tool.hbm2ddl.SchemaUpdate
public class SchemaUpdate
- extends java.lang.Object
A commandline tool to update a database schema. May also be called from
inside an application.
- Author:
- Christoph Sturm
Method Summary |
void |
execute(boolean script,
boolean doUpdate)
Execute the schema updates |
java.util.List |
getExceptions()
Returns a List of all Exceptions which occured during the export. |
static void |
main(java.lang.String[] args)
|
void |
setDelimiter(java.lang.String delimiter)
|
void |
setFormat(boolean format)
|
void |
setHaltOnError(boolean haltOnError)
|
void |
setOutputFile(java.lang.String outputFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaUpdate
public SchemaUpdate(Configuration cfg)
throws HibernateException
- Throws:
HibernateException
SchemaUpdate
public SchemaUpdate(Configuration cfg,
java.util.Properties connectionProperties)
throws HibernateException
- Throws:
HibernateException
SchemaUpdate
public SchemaUpdate(Configuration cfg,
Settings settings)
throws HibernateException
- Throws:
HibernateException
main
public static void main(java.lang.String[] args)
execute
public void execute(boolean script,
boolean doUpdate)
- Execute the schema updates
- Parameters:
script
- print all DDL to the console
getExceptions
public java.util.List getExceptions()
- Returns a List of all Exceptions which occured during the export.
- Returns:
- A List containig the Exceptions occured during the export
setHaltOnError
public void setHaltOnError(boolean haltOnError)
setFormat
public void setFormat(boolean format)
setOutputFile
public void setOutputFile(java.lang.String outputFile)
setDelimiter
public void setDelimiter(java.lang.String delimiter)
Copyright © 2008 Hibernate.org. All Rights Reserved.