public class

SchemaUpdate

extends Object
java.lang.Object
   ↳ org.hibernate.tool.hbm2ddl.SchemaUpdate

Class Overview

A commandline tool to update a database schema. May also be called from inside an application.

Summary

Public Constructors
SchemaUpdate(Configuration cfg)
SchemaUpdate(Configuration cfg, Properties connectionProperties)
SchemaUpdate(Configuration cfg, Settings settings)
Public Methods
void execute(boolean script, boolean doUpdate)
Execute the schema updates
List getExceptions()
Returns a List of all Exceptions which occured during the export.
static void main(String[] args)
void setDelimiter(String delimiter)
void setFormat(boolean format)
void setHaltOnError(boolean haltOnError)
void setOutputFile(String outputFile)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SchemaUpdate (Configuration cfg)

public SchemaUpdate (Configuration cfg, Properties connectionProperties)

public SchemaUpdate (Configuration cfg, Settings settings)

Public Methods

public void execute (boolean script, boolean doUpdate)

Execute the schema updates

Parameters
script print all DDL to the console

public List getExceptions ()

Returns a List of all Exceptions which occured during the export.

Returns
  • A List containig the Exceptions occured during the export

public static void main (String[] args)

public void setDelimiter (String delimiter)

public void setFormat (boolean format)

public void setHaltOnError (boolean haltOnError)

public void setOutputFile (String outputFile)