This package provides classes that can be used to access the data in a database. Two database engines are supported: HSqlDb and MySql, any SQL-based database server should work altough, perhaps with some minor modifications.
For each database there is a session class which contain methods that perform basic database-related actions, such as connecting to the database, committing or rolling back the changes. Theoretically only this class is to be changed when switching to another type of database server. Furthermore, there are classes derived from SerialInput
and SerialOutput
which allow the access to the data itself. A special feature of the db package are classes that perform random accsess to the database using SQL queries. These classes are called HSQLRandom and MySQLRandom respectively.
Class | Description |
---|---|
HSQLInput |
Objects of this class represent an input from the database.
|
HSQLOutput |
Objects of this class represent an output to the database.
|
HSQLRandom |
This class provides a method that returns a result of any read-only
SQL query.
|
HSQLSession |
This class suports basic database operation and stores database session
parameters.
|
MySQLInput |
Objects of this class represent an input from the database.
|
MySQLOutput |
Objects of this class represent an output to the database.
|
MySQLRandom |
This class provides a method that returns a result of any read-only
SQL query.
|
MySQLSession |
This class suports basic database operation and stores database session
parameters.
|