com.devexperts.qd.ng
Class RecordMapping

java.lang.Object
  extended by com.devexperts.qd.ng.RecordMapping

public abstract class RecordMapping
extends java.lang.Object

Base class for record mappings. Record mapping maps record field indices onto specific getters and setters. Actual implementation of this class store the indices of the corresponding data record fields and provide a set of methods like T getXXX(RecordCursor cursor) and void setXXX(RecordCursor cursor, T value) for them.


Field Summary
protected  DataRecord record
           
 
Constructor Summary
protected RecordMapping(DataRecord record)
           
 
Method Summary
protected  int getInt(RecordCursor cursor, int int_field_index)
           
protected  java.lang.Object getObj(RecordCursor cursor, int obj_field_index)
           
 DataRecord getRecord()
          Returns data record that this record mapping works for.
protected  void setInt(RecordCursor cursor, int int_field_index, int value)
           
protected  void setObj(RecordCursor cursor, int obj_field_index, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

record

protected final DataRecord record
Constructor Detail

RecordMapping

protected RecordMapping(DataRecord record)
Method Detail

getRecord

public final DataRecord getRecord()
Returns data record that this record mapping works for. The result of invoking getMapping() method on the resulting data record is equal to this mapping.


getInt

protected final int getInt(RecordCursor cursor,
                           int int_field_index)

getObj

protected final java.lang.Object getObj(RecordCursor cursor,
                                        int obj_field_index)

setInt

protected final void setInt(RecordCursor cursor,
                            int int_field_index,
                            int value)

setObj

protected final void setObj(RecordCursor cursor,
                            int obj_field_index,
                            java.lang.Object value)