org.jbpm.db
Class JbpmSchema

java.lang.Object
  extended by org.jbpm.db.JbpmSchema

public class JbpmSchema
extends Object

utilities for the jBPM database schema.


Constructor Summary
JbpmSchema(org.hibernate.cfg.Configuration configuration)
           
 
Method Summary
 void cleanSchema()
           
 void createSchema()
           
 void createTable(String tableName)
           
 void dropSchema()
           
 String[] getCleanSql()
           
 String[] getCreateSql()
           
 String[] getDropSql()
           
 List getExceptions()
           
 Set getExistingTables()
           
 Set getJbpmTables()
           
 Map getRowsPerTable()
           
 String[] getUpdateSql()
           
static void main(String[] args)
           
 void saveSqlScripts(String dir, String prefix)
           
 void setDelimiter(String delimiter)
           
 boolean tableExists(String tableName)
           
 void updateSchema()
           
 void updateTable(String tableName)
           
 void writeSql(Writer writer, String[] script)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmSchema

public JbpmSchema(org.hibernate.cfg.Configuration configuration)
Method Detail

setDelimiter

public void setDelimiter(String delimiter)

getExceptions

public List getExceptions()

getCreateSql

public String[] getCreateSql()

getDropSql

public String[] getDropSql()

getCleanSql

public String[] getCleanSql()

getUpdateSql

public String[] getUpdateSql()

dropSchema

public void dropSchema()

createSchema

public void createSchema()

cleanSchema

public void cleanSchema()

updateSchema

public void updateSchema()

saveSqlScripts

public void saveSqlScripts(String dir,
                           String prefix)

writeSql

public void writeSql(Writer writer,
                     String[] script)
              throws IOException
Throws:
IOException

getJbpmTables

public Set getJbpmTables()

getRowsPerTable

public Map getRowsPerTable()

getExistingTables

public Set getExistingTables()

tableExists

public boolean tableExists(String tableName)

updateTable

public void updateTable(String tableName)

createTable

public void createTable(String tableName)

main

public static void main(String[] args)


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