org.alfresco.util.schemadump
Class Main

java.lang.Object
  extended by org.alfresco.util.schemadump.Main

public class Main
extends java.lang.Object

Simple command line utility to help with database schema comparisons and upgrades. Dumps a database schema via JDBC to a normalised XML form.


Constructor Summary
Main(javax.sql.DataSource dataSource, org.hibernate.dialect.Dialect dialect)
          Create a new instance of the tool within the context of an existing database connection
Main(java.lang.String contextPath)
          Creates a new instance of this tool by starting up a full context.
 
Method Summary
 void execute(java.io.File outputFile)
          Execute, writing the result to the given file.
static void main(java.lang.String[] args)
          The main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main(java.lang.String contextPath)
     throws java.lang.Exception
Creates a new instance of this tool by starting up a full context.

Throws:
java.lang.Exception

Main

public Main(javax.sql.DataSource dataSource,
            org.hibernate.dialect.Dialect dialect)
     throws java.lang.Exception
Create a new instance of the tool within the context of an existing database connection

Parameters:
connection - the database connection to use for metadata queries
dialect - the Hibernate dialect
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method.

Parameters:
args - the args: <context.xml> <output.xml>
Throws:
java.lang.Exception

execute

public void execute(java.io.File outputFile)
             throws java.lang.Exception
Execute, writing the result to the given file.

Parameters:
outputFile - the file to write to
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.