org.modeshape.util
Class SchemaGen
java.lang.Object
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 with scripts that are to be invoked with the following syntax:
ddl-gen.sh -dialect <dialect name> -model <model_name> [-out <path to output directory>] [-delimiter <delim>] [-newline]
Example: ddl-gen.sh -dialect HSQL -model Simple -out /tmp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static Logger logger
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
SchemaGen
public SchemaGen(String dialect,
String model,
File outputPath)
SchemaGen
public SchemaGen(String dialect,
String model,
File outputPath,
String delimiter)
setNewLineAfterStatement
public void setNewLineAfterStatement(boolean newLine)
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.