O'Reilly logo

Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ by Dan Scott, George Baklarz, Paul C. Zikopoulos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JDBC Application Development

Using Embedded JDBC Drivers

Every Apache Derby embedded application must load the JDBC driver before issuing any connects or SQL statements. Stored procedures and user-defined functions do not need to load the JDBC driver because it is assumed that they are running under the context of another program.

The class that loads the Apache Derby local JDBC driver is the org.apache.derby .jdbc.EmbeddedDriver class. There are a variety of ways to create an instance of the Apache Derby driver class, but do not use the class directly through the java.sql.Driver interface. The preferred method is to use the DriverManager class to create connections using the Class.forName() method: Class.forName("org.apache.derby.jdbc.EmbeddedDriver"). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required