org.jbpm.db.compatibility
Class JbpmSchemaUpdate

java.lang.Object
  extended by org.jbpm.db.compatibility.JbpmSchemaUpdate

public class JbpmSchemaUpdate
extends java.lang.Object

This is a modified version of the hibernate tools schema update. The modification is to support saving of the update script to a file.

Author:
Christoph Sturm, Koen Aers

Constructor Summary
JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration)
           
JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration, java.util.Properties properties)
           
JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration, org.hibernate.cfg.Settings settings)
           
 
Method Summary
 void execute(boolean printScript, boolean doUpdate)
          Executes the schema update tool.
 void execute(boolean printScript, boolean doUpdate, java.io.File outputFile)
          Executes the schema update tool.
 java.util.List<java.lang.Exception> getExceptions()
          Returns a List of all Exceptions that occurred during the export.
static void main(java.lang.String[] args)
           
 void setDelimiter(java.lang.String delimiter)
           
 void setOutputFile(java.io.File outputFile)
          Set an output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmSchemaUpdate

public JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration)

JbpmSchemaUpdate

public JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration,
                        java.util.Properties properties)

JbpmSchemaUpdate

public JbpmSchemaUpdate(org.hibernate.cfg.Configuration configuration,
                        org.hibernate.cfg.Settings settings)
Method Detail

setOutputFile

public void setOutputFile(java.io.File outputFile)
Set an output file. The generated script will be written to this file.


setDelimiter

public void setDelimiter(java.lang.String delimiter)

main

public static void main(java.lang.String[] args)

execute

public void execute(boolean printScript,
                    boolean doUpdate,
                    java.io.File outputFile)
Executes the schema update tool.

Parameters:
printScript - print DDL statements to the console
doUpdate - post DDL statements to the database
outputFile - write DDL statements to this file, can be null

execute

public void execute(boolean printScript,
                    boolean doUpdate)
Executes the schema update tool.

Parameters:
printScript - print DDL statements to the console
doUpdate - post DDL statements to the database

getExceptions

public java.util.List<java.lang.Exception> getExceptions()
Returns a List of all Exceptions that occurred during the export.

Returns:
the exceptions that occurred during the export


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.