Package pl.poznan.put.cs.idss.jrs.core.db

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.

Skip navigation links