org.kaiwitte.workbench.data
Interface DataManager


public interface DataManager

Provides an interface to access the underlying database.


Method Summary
 void delete(long recordNumber)
          Deletes the Record with the specified ID.
 Record[] find(Condition condition)
          Returns all records that match the Condition.
 void insert(Record record)
          Inserts a new Record.
 void update(Record record)
          Updates the provided Record with its changed fields.
 

Method Detail

find

Record[] find(Condition condition)
              throws java.io.IOException
Returns all records that match the Condition.

Parameters:
condition - the matching Condition
Returns:
all matching records
Throws:
java.io.IOException - iff an I/O error occurs

update

void update(Record record)
            throws java.io.IOException
Updates the provided Record with its changed fields. The record is identified by its ID.

Parameters:
record - the record with the new values
Throws:
java.io.IOException - iff an I/O error occurs

insert

void insert(Record record)
            throws java.io.IOException
Inserts a new Record.

Parameters:
record - the new record
Throws:
java.io.IOException - iff an I/O error occurs

delete

void delete(long recordNumber)
            throws java.io.IOException
Deletes the Record with the specified ID.

Parameters:
recordNumber - the ID of the record
Throws:
java.io.IOException - iff an I/O error occurs