Developer’s Guide

Table Of Contents
Chapter 9
Using Java and JDBC to deliver your data
If you’re a Java programmer, you can use the FileMaker JDBC
Driver with any Rapid Application Development (RAD) tool to
visually create your FileMaker Pro database-aware Java application
or applet.
The FileMaker JDBC Driver lets you directly access FileMaker Pro
data using a RAD tool as you’re building your code. Then, the Java
application or applet that uses the FileMaker JDBC Driver can
access FileMaker Pro data via the Web Companion.
About the JDBC examples
FileMaker Developer 5.5 provides three examples of Java
applications that use the FileMaker JDBC Driver to connect to a
database. One example is a development-tool-independent Java
application that was created using the basic Java classes and Sun
Microsystems’ Swing 1.1.1. The other two examples are Java front
ends created with JBuilder 3.0 Professional for Windows and Visual
Cafe 4.0 Expert Edition for Windows.
For step-by-step instructions, see:
1 “Example 1: Looking at the FileMaker Pro Explorer application
on page 9-8
1 “Example 2: Creating the JBuilder Inventory application” on
page 9-11
1 “Example 3: Creating the Visual Cafe Inventory application” on
page 9-14
The FileMaker Developer 5.5 CD also includes the proprietary
FileMaker Java classes and examples of Java applets that use them.
For information, see “Using the FileMaker Java classes” on
page 9-17.
For additional information and examples that use Java and JDBC for
general data interchange or for publishing FileMaker Pro data on the
Web, see the product support pages on the FileMaker, Inc. web site
at www.filemaker.com.
About JDBC
JDBC is a Java API for executing Structured Query Language (SQL)
statements, the standard language for accessing relational databases.
JDBC is a trademarked name and not an acronym—although it is
thought of as standing for Java Database Connectivity because it is
the ODBC (Open Database Connectivity) equivalent for Java. JDBC
is a low-level interface, which means that it is used to call SQL
commands directly. It is also designed to be used as a base for higher
level interfaces and tools.
Your Java applet or application can talk directly to the database by
using the JDBC driver to communicate with FileMaker Pro. Your
SQL statements are delivered to the database and the results of those
statements are sent back to you. The database can be located on
another machine (the server machine) connected to the network,
while your Java applet or application is located on your machine (the
client machine). This is referred to as a client/server configuration.