org.modeshape.util
Class SchemaGen

java.lang.Object
  extended by org.modeshape.util.SchemaGen

public class SchemaGen
extends Object

Main class to generate DDL that can be used to build the schema for the JPA connector. The class is intended to be bundled into an executable jar file and invoked with the following syntax:

 java -jar <jar_name> -dialect <dialect name> -model <model_name> [-out <path to output directory>]
     Example: java -jar dna-jpa-ddl-gen-0.7-jar-with-dependencies.jar -dialect HSQL -model Basic -out /tmp
 


Field Summary
static String CREATE_FILE_NAME
           
static String DROP_FILE_NAME
           
static String USAGE
           
 
Constructor Summary
SchemaGen(String dialect, String model, File outputPath)
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_FILE_NAME

public static final String CREATE_FILE_NAME
See Also:
Constant Field Values

DROP_FILE_NAME

public static final String DROP_FILE_NAME
See Also:
Constant Field Values

USAGE

public static final String USAGE
See Also:
Constant Field Values
Constructor Detail

SchemaGen

public SchemaGen(String dialect,
                 String model,
                 File outputPath)
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.