org.kaiwitte.workbench.data
Interface MetaDataManager


public interface MetaDataManager

Provides an interface to access related DataManagers.


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

Method Detail

find

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

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

update

void update(MetaRecord record)
            throws java.io.IOException
Updates the provided MetaRecord with its changed fields. The record is identified by its ID. Connected records are updated if they already have an ID. Otherwise they are created.

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

insert

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

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

delete

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

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