» Accessing HSQLDB from Eclipse
These tutorials are no longer maintained. Some of these tutorials continue to be maintained for the lecture Advanced Concepts in Software Engineering.

Preconditions

Creating a Database Connection for In-Process HSQLDB

  1. Open the "Data Source Explorer" view and create a new Database Connection.
  2. Choose HSQLDB from the list of Connection Profile Types and provide a name, e.g. Library.
  3. Next, add a New Driver Definition and specify hsqldb.jar in the JAR List tab.

  4. Enter the database name and specify the location of the database files, e.g. file:/tmp/jboss/standalone/data/hypersonic/localDB.

Creating a Database Connection for Dedicated HSQLDB

Steps 1-3 also apply when using a dedicated HSQLDB. In step 4 specify the database name and the address/location of HSQLDB, e.g. hsql://localhost/dedicatedDB.

Accessing HSQLDB

  1. In-Process HSQLDB only: Stop JBoss to shutdown HSQLDB.
  2. Right-click on connection and select "Connect".
  3. Right-click on connection and select "Open SQL Scrapbook".
  4. Perform queries on HSQLDB.
  5. In-Process HSQLDB only: Right-click on connection and select "Disconnect", before starting JBoss again.