Interface MetaDataManager

Provides an interface to access related org.kaiwitte.workbench.data.DataManagers.

Synopsis

 public interface MetaDataManager {
  public Sequence find(Condition condition)
    throws IOException;

  public void connect()
    throws IOException;

  public boolean isConnected()
    throws IOException;

  public void update(MetaRecord record)
    throws IOException;

  public MetaRecord insert(MetaRecord record)
    throws IOException;

  public void delete(long recordNumber)
    throws IOException;

}

Inheritance Path. org.kaiwitte.workbench.data.MetaDataManager

connect()

Synopsis: public void connect() throws java.io.IOException;

Exceptions

IOException

iff an I/O error occurs

Establishes a connection.

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.MetaRecord with the specified ID.

find(Condition)

Synopsis: public Sequence find(org.kaiwitte.workbench.data.Condition condit\
ion)

              throws java.io.IOException;

Parameters

condition

the matching org.kaiwitte.workbench.data.Condition

return

all matching MetaRecords

Exceptions

IOException

iff an I/O error occurs

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

insert(MetaRecord)

Synopsis: public MetaRecord insert(org.kaiwitte.workbench.data.MetaRecord r\
ecord)

              throws java.io.IOException;

Parameters

record

the new MetaRecord

return

the MetaRecord from the parameter with the proper ID set

Exceptions

IOException

iff an I/O error occurs

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

isConnected()

Synopsis: public boolean isConnected() throws java.io.IOException;

Exceptions

IOException

iff an I/O error occurs

Returns true iff the connection appears to be open.

update(MetaRecord)

Synopsis: public void update(org.kaiwitte.workbench.data.MetaRecord 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.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.