Database Component Framework
The Allaire Database Component Framework (DCF) is a collection of Java classes
that provide a simple interface for reading and requesting database records into a Java applet
or application. The data collection mechanisms of the DCF allow customers to connect DCF-aware
components together with Cold Fusion and other Web technologies to create sophisticated Web
services without the hassle of low-level programming. In addition, the library is an open
standard for third-party software developers to build stand-alone, Cold Fusion-enabled Java
This reference is intended for software developers who want to use the Allaire Database Component Framework in their own applets. Familiarity with Java is assumed. If you aren't a Java programmer there are many places on the Web devoted to it. Sun's Java Tutorial is one of them.
Unzip files from the dcf.zip file into the directory described above, using the -d switch to restore the directory structure. Note that some older unzipping utilities will strip the names of the classes from ".class" to ".cla". If this happens the applets will not work. Make sure they unzip with the full ".class", or rename all the classes after they have unzipped.
CASE-SENSITIVITY - Java is case-sensitive. Thus,
is not the same as<PARAM NAME="Columns" VALUE="ID,Height,Weight">
In the event that an expected parameter or keyword (e.g. "Columns" or "Recordset") is not found, the AppletParamRecordset will attempt to look for simple case variations (e.g., "Columns", "COLUMNS", and "columns"), but exhaustive case checking (2^NameLength attempts) is not performed.<PARAM NAME="COLUMNS" VALUE="ID,Height,Weight">
URL ENCODING - Text should be URL encoded if it is going to be used in a list of columns or rows. The Cold Fusion function, URLEncodedFormat(), is designed for such use. If the data is not URL encoded, and it contains non-alphanumeric data, the DCF might not interpret the results correctly.
NULLS - Null and empty items should be sent as empty strings enclosed within single quotes. For
Record1,'',Record3instead of the unquoted version:
Resources at Allaire
No part or contents of these documents may be reproduced nor transmitted in any form nor by any means without the express written permission of the publisher.
Cold Fusion is a trademark of Allaire Corp. Java is a trademark of Sun Microsystems, Inc. Other trademarks belong to their respective owners.