Class MetaRecordImpl

Default implementation of a org.kaiwitte.workbench.data.MetaRecord.

Synopsis

 public class MetaRecordImplimplements MetaRecord {
  public MetaRecordImpl(org.kaiwitte.workbench.data.Record[] records);
  public MetaRecordImpl(MetaScheme metaScheme,
                        java.lang.Object[] values);

  public Object getValue(int column);
  public String getColumnName(int column);
  public Sequence getRecords();
  public String toString();
}

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Inheritance Path. java.lang.Object-> org.kaiwitte.workbench.data.MetaRecordImpl

MetaRecordImpl(MetaScheme, Object[])

Synopsis: public MetaRecordImpl(org.kaiwitte.workbench.data.MetaScheme meta\
Scheme,

                                java.lang.Object[] values);

Parameters

values

the values for this record

Creates a new instance.

MetaRecordImpl(Record[])

Synopsis: public MetaRecordImpl(org.kaiwitte.workbench.data.Record[] record\
s);

Parameters

records

the records to be wrapped

Creates a new instance.

getColumnName(int)

Synopsis: public String getColumnName(int column);

Specified by: Method getColumnName in interface MetaRecord

Parameters

column

the column id

return

the name of the column

Description copied from interface: getColumnName

Returns the name of the column.

getRecords()

Synopsis: public Sequence getRecords();

Specified by: Method getRecords in interface MetaRecord

Parameters

return

the records that back this instance

Description copied from interface: getRecords

Returns all records. The first one in the array is the primary one (e. g. of type repair request).

getValue(int)

Synopsis: public Object getValue(int column);

Specified by: Method getValue in interface MetaRecord

Parameters

column

the column

return

the value at the specified column

Exceptions

IndexOutOfBoundsException

iff the column value is > the associated org.kaiwitte.workbench.data.MetaScheme's length - 1 or < 0,

Description copied from interface: getValue

Returns the value at the specified column.