org.kaiwitte.workbench.data
Class MutableMetaRecordImpl

java.lang.Object
  extended by org.kaiwitte.workbench.data.MutableMetaRecordImpl
All Implemented Interfaces:
MetaRecord, MutableMetaRecord

public class MutableMetaRecordImpl
extends java.lang.Object
implements MutableMetaRecord

Default implementation of a MutableMetaRecord.


Constructor Summary
MutableMetaRecordImpl(MetaScheme metaScheme, java.lang.Object... values)
          Creates a new instance.
MutableMetaRecordImpl(Record[] records)
          Creates a new instance.
 
Method Summary
 java.lang.String getColumnName(int column)
          Returns the name of the column.
 Record[] getRecords()
          Returns all records.
 java.lang.Object getValue(int column)
          Returns the value at the specified column.
 void setID(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableMetaRecordImpl

public MutableMetaRecordImpl(Record[] records)
Creates a new instance.

Parameters:
records - the records to be wrapped

MutableMetaRecordImpl

public MutableMetaRecordImpl(MetaScheme metaScheme,
                             java.lang.Object... values)
Creates a new instance.

Parameters:
values - the values for this record
Method Detail

getValue

public java.lang.Object getValue(int column)
Description copied from interface: MetaRecord
Returns the value at the specified column.

Specified by:
getValue in interface MetaRecord
Parameters:
column - the column
Returns:
the value at the specified column

getRecords

public Record[] getRecords()
Description copied from interface: MetaRecord
Returns all records. The first one in the array is the primary one (e. g. of type repair request).

Specified by:
getRecords in interface MetaRecord
Returns:
the records that back this instance

setID

public void setID(int id)
Specified by:
setID in interface MutableMetaRecord

getColumnName

public java.lang.String getColumnName(int column)
Description copied from interface: MetaRecord
Returns the name of the column.

Specified by:
getColumnName in interface MetaRecord
Parameters:
column - the column id
Returns:
the name of the column