public abstract class RecordMapping extends Object
T getXXX(RecordCursor cursor)
and
void setXXX(RecordCursor cursor, T value)
for them.Modifier | Constructor and Description |
---|---|
protected |
RecordMapping(DataRecord record)
Creates record mapping for a specified record.
|
Modifier and Type | Method and Description |
---|---|
protected int |
findIntField(String localName,
boolean required) |
protected double |
getAsDouble(RecordCursor cursor,
int fieldId) |
protected int |
getAsInt(RecordCursor cursor,
int fieldId) |
protected long |
getAsLong(RecordCursor cursor,
int fieldId) |
protected int |
getAsTinyDecimal(RecordCursor cursor,
int fieldId) |
protected long |
getAsWideDecimal(RecordCursor cursor,
int fieldId) |
Object |
getEventSymbolByQDSymbol(String qdSymbol) |
protected int |
getInt(RecordCursor cursor,
int int_field_index) |
String |
getNonDefaultPropertyName(String localName)
|
protected Object |
getObj(RecordCursor cursor,
int obj_field_index) |
String |
getQDSymbolByEventSymbol(Object symbol) |
DataRecord |
getRecord()
Returns data record that this record mapping works for.
|
protected void |
putNonDefaultPropertyName(String localName,
String propertyName)
Defines non-default property name in descendant classes constructors.
|
protected void |
setAsDouble(RecordCursor cursor,
int fieldId,
double value) |
protected void |
setAsInt(RecordCursor cursor,
int fieldId,
int value) |
protected void |
setAsLong(RecordCursor cursor,
int fieldId,
long value) |
protected void |
setAsTinyDecimal(RecordCursor cursor,
int fieldId,
int value) |
protected void |
setAsWideDecimal(RecordCursor cursor,
int fieldId,
long value) |
protected void |
setInt(RecordCursor cursor,
int int_field_index,
int value) |
protected void |
setObj(RecordCursor cursor,
int obj_field_index,
Object value) |
protected RecordMapping(DataRecord record)
protected void putNonDefaultPropertyName(String localName, String propertyName)
public String getNonDefaultPropertyName(String localName)
null
if default.public final DataRecord getRecord()
getMapping(mappingClass)
method on
the resulting data record is equal to this mapping.protected final int getInt(RecordCursor cursor, int int_field_index)
protected final Object getObj(RecordCursor cursor, int obj_field_index)
protected final void setInt(RecordCursor cursor, int int_field_index, int value)
protected final void setObj(RecordCursor cursor, int obj_field_index, Object value)
protected final int findIntField(String localName, boolean required)
protected final int getAsInt(RecordCursor cursor, int fieldId)
protected final long getAsLong(RecordCursor cursor, int fieldId)
protected final double getAsDouble(RecordCursor cursor, int fieldId)
protected final int getAsTinyDecimal(RecordCursor cursor, int fieldId)
protected final long getAsWideDecimal(RecordCursor cursor, int fieldId)
protected final void setAsInt(RecordCursor cursor, int fieldId, int value)
protected final void setAsLong(RecordCursor cursor, int fieldId, long value)
protected final void setAsDouble(RecordCursor cursor, int fieldId, double value)
protected final void setAsTinyDecimal(RecordCursor cursor, int fieldId, int value)
protected final void setAsWideDecimal(RecordCursor cursor, int fieldId, long value)
Copyright © 2002-2019 Devexperts LLC. All Rights Reserved.