Interface DataManager

Provides an interface to access the underlying database.

Synopsis

 public interface DataManager {
  public Record find(Condition condition)
    throws IOException;

  public void update(Record record)
    throws IOException;

  public void insert(Record record)
    throws IOException;

  public void delete(long recordNumber)
    throws IOException;

}

Inheritance Path. org.kaiwitte.workbench.data.DataManager

delete(long)

Synopsis: public void delete(long recordNumber) 
              throws java.io.IOException;

Parameters

recordNumber

the ID of the record

Exceptions

IOException

iff an I/O error occurs

Deletes the org.kaiwitte.workbench.data.Record with the specified ID.

find(Condition)

Synopsis: public Record[] find(org.kaiwitte.workbench.data.Condition condit\
ion)

              throws java.io.IOException;

Parameters

condition

the matching org.kaiwitte.workbench.data.Condition

return

all matching records

Exceptions

IOException

iff an I/O error occurs

Returns all records that match the org.kaiwitte.workbench.data.Condition.

insert(Record)

Synopsis: public void insert(org.kaiwitte.workbench.data.Record record) 
              throws java.io.IOException;

Parameters

record

the new record

Exceptions

IOException

iff an I/O error occurs

Inserts a new org.kaiwitte.workbench.data.Record.

update(Record)

Synopsis: public void update(org.kaiwitte.workbench.data.Record record) 
              throws java.io.IOException;

Parameters

record

the record with the new values

Exceptions

IOException

iff an I/O error occurs

Updates the provided org.kaiwitte.workbench.data.Record with its changed fields. The record is identified by its ID.