- Derby: A Database for All Seasons
- What Is Derby?
- How to Use Derby
- Setting Up Your CLASSPATH
- Testing Your Setup
- Running Your First Derby Program
- Derby Application Components
- Derby Application Startup
- Loading the Derby Driver
- Database and Connection Creation
- Statement Creation
- Table Creation
- Table Access
- Running the Code
Now that we have a brand new database, we can start to manipulate it. Before doing this, an object of the class Statement must be instantiated, as illustrated in Listing 8.
Listing 8 Making a statement
Statement s = conn.createStatement();
Notice that the Statement object in Listing 8 uses the Connection object. In a sense, the Statement object talks to the Connection. The Connection object, in turn, talks to the Derby database.