public final class RecordCursor.Owner extends Object
RecordCursor
contains an implicit reference to RecordCursor
.
It is used to configure the cursor via
setRecord(com.devexperts.qd.DataRecord)
, setSymbol(int, java.lang.String)
, and
setReadOnly(boolean)
methods and to reset it via reset
method. Users of the
RecordCursor
itself cannot change the data this cursor points to.Modifier and Type | Method and Description |
---|---|
RecordCursor |
cursor()
Returns owned
RecordCursor . |
void |
reset()
Resets cursor to its initial state.
|
void |
setArrays(int[] intFlds,
Object[] objFlds)
Changes pointer to data integer and object array.
|
void |
setAs(RecordCursor other)
Configures the
cursor to be exactly as the other cursor. |
void |
setAttachment(Object attachment)
Changes object attachment that is associated with the current cursor
when attachment is not part of the record mode.
|
void |
setEventFlags(int eventFlags)
Changes event flags that are associated with the current cursor
when event flags are not part of the record mode.
|
void |
setOffsets(int intOffset,
int objOffset)
Changes offsets in data integer and data object arrays.
|
void |
setReadOnly(boolean read_only)
Changes read only mode of the corresponding cursor.
|
void |
setRecord(DataRecord record)
Changes record and sets a default mode of
DATA . |
void |
setRecord(DataRecord record,
RecordMode mode)
Changes record and sets a specified mode.
|
void |
setSymbol(int cipher,
String symbol)
Changes cipher and symbol.
|
void |
setTimeMark(int timeMark)
Changes time mark that is associated with the current cursor
when time mark is not part of the record mode.
|
public RecordCursor cursor()
RecordCursor
.public void setReadOnly(boolean read_only)
read_only
- read only mode.public void setRecord(DataRecord record)
DATA
.record
- the record.public void setRecord(DataRecord record, RecordMode mode)
record
- the record.mode
- the mode.public void setSymbol(int cipher, String symbol)
cipher
- the cipher.symbol
- the symbol.public void setArrays(int[] intFlds, Object[] objFlds)
intFlds
- data integer array.objFlds
- data object array.public void setOffsets(int intOffset, int objOffset)
intOffset
- integer data offset.objOffset
- object data offset.public void setAs(RecordCursor other)
cursor
to be exactly as the other cursor.
The cursor will point to the same backing arrays as the other cursor.
All properties are copied, including
readOnly
, record
, mode
, etc.
As a result, eventFlags
,
timeMark
, or attachment
can be changed in the cursor
without actually copying any data even if the original cursor was readOnly
.other
- the other cursor.public void reset()
mode
, which retains its value.public void setEventFlags(int eventFlags)
mode
has its own event flags
.public void setTimeMark(int timeMark)
mode
has its own time mark
.TimeMarkUtil
public void setAttachment(Object attachment)
mode
has its own attachment
.Copyright © 2002–2025 Devexperts LLC. All rights reserved.