Author: tomdz Date: Sun Nov 5 19:03:11 2006 New Revision: 471621 URL: http://svn.apache.org/viewvc?view=rev&rev=471621 Log: Documentation enhancements/fixes Modified: db/ddlutils/trunk/build.properties db/ddlutils/trunk/build.xml db/ddlutils/trunk/lib/build-only/ (props changed) db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/api-usage.xml db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/schema.xml db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/site.xml db/ddlutils/trunk/src/doc/src/documentation/skinconf.xml db/ddlutils/trunk/src/java/database.dtd db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/SqlDynaException.java db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/package.html db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/package.html Modified: db/ddlutils/trunk/build.properties URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/build.properties?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/build.properties (original) +++ db/ddlutils/trunk/build.properties Sun Nov 5 19:03:11 2006 @@ -25,6 +25,7 @@ build.java.dir=${build.dir}/classes build.test.dir=${build.dir}/test build.javadoc.dir=${build.dir}/javadoc +build.schemadoc.dir=${build.dir}/schemadoc build.doc.dir=${build.dir}/doc build.check.dir=${build.dir}/check @@ -32,7 +33,7 @@ doc.dir=doc project-name=DdlUtils -version=1.0-dev +version=1.0-RC1 dist-filename-prefix=${project-name}-${version} checkstyle.version.pattern=\\$Revision.*\\$ @@ -49,4 +50,5 @@ javadoc.footer=Copyright © 2005 Apache Software Foundation. All Rights Reserved. forrest.javadoc.destdir=${build.doc.dir}/src/documentation/content/api +forrest.schemadoc.destdir=${build.doc.dir}/src/documentation/content/schema forrest.output.dir=${build.doc.dir}/build/site Modified: db/ddlutils/trunk/build.xml URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/build.xml?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/build.xml (original) +++ db/ddlutils/trunk/build.xml Sun Nov 5 19:03:11 2006 @@ -87,8 +87,7 @@ + description="Builds the complete documentation"> @@ -100,7 +99,7 @@ + failonerror="false"/> @@ -115,10 +114,16 @@ - + + + + + + + + + + + + + + + + + + + + @@ -156,6 +174,42 @@ + + + + + + + + + + + + + + + + + + + Running linklint on ${build.doc.dir}. The output can be found in linklint.log. + + + + + + + + + + + Propchange: db/ddlutils/trunk/lib/build-only/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun Nov 5 19:03:11 2006 @@ -1,2 +1,3 @@ - checkstyle*.jar +DTDDoc.jar +dtdparser*.jar Modified: db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/api-usage.xml URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/api-usage.xml?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/api-usage.xml (original) +++ db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/api-usage.xml Sun Nov 5 19:03:11 2006 @@ -127,7 +127,7 @@ if (alterDb) { - platform.alterTables(targetModel, true, alterDb, false); + platform.alterTables(targetModel, false); } else { @@ -187,31 +187,101 @@ to stdout:

+

+ There are two things to note in this sample code: +

+

+ First, we specified so-called query hints in the call to the query. Query hints + are an array of tables whose columns are used by the query statement. The reason why they + should be used is that not all databases provide sufficient information in the JDBC result set + object to determine the table to which a column belongs to. Since this info is need by + DdlUtils to properly extract the value and convert it to the corresponding Java type, it is + safer to specify these hints. What DdlUtils does in this case, is to search for a column + of that name within the specified tables and use the mapping for this column. This of course + can fail if you use aliases in the query statement (and the JDBC driver handles them in + a strange way), or if more than one table has a column of this name. But in most cases you'll + get the expected results. +

+

+ The other thing to note is that DdlUtils does not parse the query statement. This means that + if you use delimited identifier mode (i.e. identifiers can contain whitespaces, non-alphanumeric + characters etc., but they also need to be enclosed in double quotes), then you'll have to + specify the query statement accordingly - DdlUtils won't do that for you. If you'd like to be + on the safe side, then you could write the above statement like this: +

+ Modified: db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/schema.xml URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/schema.xml?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/schema.xml (original) +++ db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/schema.xml Sun Nov 5 19:03:11 2006 @@ -22,7 +22,7 @@
The schema used by DdlUtils -

The DTD.

+

Documenation of the

Coming soon
Modified: db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/site.xml URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/site.xml?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/site.xml (original) +++ db/ddlutils/trunk/src/doc/src/documentation/content/xdocs/site.xml Sun Nov 5 19:03:11 2006 @@ -48,7 +48,7 @@ - + @@ -62,10 +62,11 @@ - - + + + @@ -102,13 +103,13 @@ - - - - + + + + - - + + @@ -136,15 +137,15 @@ - + - + - + @@ -159,9 +160,9 @@ - - - + + + Modified: db/ddlutils/trunk/src/doc/src/documentation/skinconf.xml URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/doc/src/documentation/skinconf.xml?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/doc/src/documentation/skinconf.xml (original) +++ db/ddlutils/trunk/src/doc/src/documentation/skinconf.xml Sun Nov 5 19:03:11 2006 @@ -463,7 +463,7 @@ Ant - http://jakarta.apache.org/ant/ + http://ant.apache.org/ images/ant.gif 80 30 Modified: db/ddlutils/trunk/src/java/database.dtd URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/database.dtd?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== Binary files - no diff available. Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/SqlDynaException.java URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/SqlDynaException.java?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/SqlDynaException.java (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/SqlDynaException.java Sun Nov 5 19:03:11 2006 @@ -1,7 +1,5 @@ package org.apache.ddlutils.dynabean; -import org.apache.ddlutils.DdlUtilsException; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -20,6 +18,8 @@ * specific language governing permissions and limitations * under the License. */ + +import org.apache.ddlutils.DdlUtilsException; /** * This exception is thrown when something dealing with sql dyna beans or classes failed. Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/package.html URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/package.html?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/package.html (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/dynabean/package.html Sun Nov 5 19:03:11 2006 @@ -23,7 +23,7 @@

- Provides the special DdlUtils implementations of {@link org.apache.commons.beanutils.DynaBeanClass} + Provides the special DdlUtils implementations of {@link org.apache.commons.beanutils.DynaClass} and {@link org.apache.commons.beanutils.DynaBean} that directly map to tables in the database model. These are used by DdlUtils when reading data from or writing data to the database. If you want to create these beans manually, use the Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/package.html URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/package.html?view=diff&rev=471621&r1=471620&r2=471621 ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/package.html (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/package.html Sun Nov 5 19:03:11 2006 @@ -24,7 +24,7 @@

This package contains the platform implementation for the - Oracle database. + Oracle database.