com.arsdigita.persistence.pdl
Class SQLRegressionGenerator
java.lang.Object
com.arsdigita.persistence.pdl.SQLRegressionGenerator
- public class SQLRegressionGenerator
- extends Object
SQLRegressionGenerator
Usage:
cdweb
cd webapps/ccm/WEB-INF
java -classpath classes:lib/log4j.jar:lib/jakarta-oro-2.0.4.jar \
com.arsdigita.persistence.pdl.SQLRegressionGenerator \
-path pdl \
-check check-objects.sql
-fix fix-objects.sql
Then to check all objects:
psql -h dbhost dbname < check-objects.sql
Or to fix all (ie delete broken) objects:
psql -h dbhost dbname < fix-objects.sql
Method Summary |
static void |
main(String[] args)
Generates SQL regression tests to verify objects are complete |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLRegressionGenerator
public SQLRegressionGenerator()
main
public static final void main(String[] args)
throws PDLException
- Generates SQL regression tests to verify objects are complete
- Throws:
PDLException
- if we have too few input files or if we
detect an error while parsing an input file. The reason we use
an exception is for the build process within ant to fail on
error.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC