com.devexperts.qd.ng
Class RecordMapping
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
record
protected final DataRecord record
RecordMapping
protected RecordMapping(DataRecord record)
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)