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 @@
+ 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: +
+The DTD.
+Documenation of the