org.apache.jetspeed.serializer
Class JetspeedDDLApplication

java.lang.Object
  extended by org.apache.jetspeed.serializer.JetspeedDDLApplication

public class JetspeedDDLApplication
extends java.lang.Object

Jetspeed Serializer DDL- Application invoke with mandatory either

-I directory or filename of schema files for input, if directory all xml files will be processed

and/or

-O schema file for output log of current database

and (if -I denotes a directory:)

-x if directory list provided for input schemas this pattern is excluded

-s name of the order file (if schema directory)

-m if directory list provided this is the merge file to use. If not set here or in the properties file, a hardcoded version is used

note that - if -I and -O are specified, the output file will contain the UPDATED database

invoke with (optional) parameters

-P propertyFileName, for settings

-R (flag) replace : overwrites default "UPDATE" and clears out the database before processing (ignored with -O option above)

-dn databaseName, for example MYSQL or ORACLE10

-dc driverClass, for example com.mysql.jdbc.Driver

-ds url, ruls according to the driver used, URL needs to point to the correct database

-du user, user with create/drop etc. rights on the database

-dp password

-l log4j-level, ERROR (default), WARN, INFO

Version:
$Id: $
Author:
Hajo Birthelmer

Field Summary
static java.lang.String JNDI_DS_NAME
           
 
Constructor Summary
JetspeedDDLApplication()
           
 
Method Summary
 java.util.List getRows(JetspeedDDLUtil ddlUtil, java.lang.String tableName)
           
 java.lang.String getSelectQueryForAllString(JetspeedDDLUtil ddlUtil, org.apache.ddlutils.model.Table table)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_DS_NAME

public static final java.lang.String JNDI_DS_NAME
See Also:
Constant Field Values
Constructor Detail

JetspeedDDLApplication

public JetspeedDDLApplication()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getRows

public java.util.List getRows(JetspeedDDLUtil ddlUtil,
                              java.lang.String tableName)

getSelectQueryForAllString

public java.lang.String getSelectQueryForAllString(JetspeedDDLUtil ddlUtil,
                                                   org.apache.ddlutils.model.Table table)


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.