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"). ...
Get Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.