Developer’s Guide

Table Of Contents
11-8 Developer’s Guide
About the FileMaker JDBC Driver
interfaces and extensions
The FileMaker JDBC Driver implements all of the following JDBC
interfaces:
CallableStatement
Connection
DatabaseMetaData
Driver
PreparedStatement
ResultSet
ResultSetMetaData
Statement
The following FileMaker Pro-specific extensions have been added:
This JDBC interface Includes this FileMaker Pro extension
java.sql.DatabaseMetaData com.fmi.jdbc.DatabaseMetaDataExt
java.sql.ResultSetMetaData com.fmi.jdbc.ResultSetMetaDataExt
The following classes have been added in support of the
FileMaker Pro extensions:
Class name Description
com.fmi.fmpdb.FMPError FileMaker Pro error codes
com.fmi.fmpdb.FMPLayoutField Information associated with a
field on a layout
com.fmi.fmpdb.FMPLayoutFieldEnumerator Class for enumerating the
fields on a layout
com.fmi.fmpdb.FMPLayoutMetaData Metadata for a given layout
com.fmi.jdbc.Array Class used to represent
repeating and related fields
The API documentation for these standard interfaces and the
FileMaker extensions is included in HTML format on the FileMaker
Developer CD:
Developer Extras>FileMaker, Inc>External FileMaker APIs>FileMaker
JDBC Driver>JDBC Documentation
Note Retrieving large text fields with the
Resultset.getBytes method
and sending large amounts of text back to FileMaker Pro using an
INSERT or UPDATE statement with MRJ 2.2 can cause sluggish
performance.
Example 1: Looking at the FileMaker Pro
Explorer application
This developer-tool-independent example is a Java application used
for displaying FileMaker Pro database information, similar to the
Windows Explorer and Mac OS Finder applications. You can use the
FileMaker Pro Explorer application along with the FileMaker JDBC
Driver to view any open database on any computer that’s shared via
the Web Companion, by specifying the JDBC URL that includes the
IP address of the computer where FileMaker Pro is running. You can
view the application’s source code in any text editor or Java editing
tool.
The application was created using the basic Java classes to display a
database tree, and FileMaker Pro-specific extensions have been
added to provide detailed information about the fields and layouts.
The user interface was created using the Swing 1.1.1 class library—
an add-on to the Java Development Kit (JDK) 1.3.
For information on the Swing class library, go to the Sun
Microsystems web site at www.javasoft.com.