Class SimpleGdb

  • All Implemented Interfaces:
    AttributeMapper, IDMapper, XrefIterator
    Direct Known Subclasses:
    SimpleGdbImplCommon

    public abstract class SimpleGdb
    extends IDMapperRdb
    SimpleGdb is the main implementation of the Gdb interface, for dealing with single SQL-based pgdb's. It's responsible for creating and querying a single pgdb relational database through the JDBC interface.

    It wraps SQL statements in methods, so the rest of the apps don't need to know the details of the Database schema.

    It delegates dealing with the differences between various RDBMS's (Derby, Hsqldb etc.) to a DBConnector instance. A correct DBConnector instance needs to be passed to the constructor of SimpleGdb.

    In the PathVisio GUI environment, use GdbManager to create and connect one or two centralized Gdb's. This will also automatically find the right DBConnector from the preferences.

    In a head-less or test environment, you can bypass GdbManager and use SimpleGdb directly to create or connect to one or more pgdb's of any type.