public abstract class TempRecord extends Record implements TempTableRecord
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_DATASOURCE_ROWID
The property/column name of data-source field.
|
static int |
_DATASOURCE_ROWID_INDEX
|
static java.lang.String |
_ERROR_FLAG
The property/column name of "__error-flag__" field.
|
static int |
_ERROR_FLAG_DATA_INDEX
|
static java.lang.String |
_ERROR_STRING
The property/column name of "__error-string__" field.
|
static int |
_ERROR_STRING_DATA_INDEX
|
static int |
_META_PROPERTIES_LENGTH
The number of meta properties, used when transferring meta properties via
TempTableRecord.toArray(). |
protected java.lang.Integer |
_multiplex
Multiplex ID.
|
static java.lang.String |
_ORIGIN_ROWID
The property/column name of "__origin-rowid__" field.
|
static int |
_ORIGIN_ROWID_DATA_INDEX
|
static java.lang.String |
_PEER_ROWID
The property/column name of "__after-rowid__" field.
|
static int |
_PEER_ROWID_DATA_INDEX
|
static int |
_PK_DATA_INDEX
The index in the
TempTableRecord.toArray() for the BaseRecord.id field; always last. |
static java.lang.String |
_ROW_STATE
The property/column name of "__row-state__" field.
|
static int |
_ROW_STATE_DATA_INDEX
|
activeOffset, data, id, PK_GETTER, readFields, references, state| Modifier | Constructor and Description |
|---|---|
protected |
TempRecord()
The default constructor is protected.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
_datasourceRowid()
Gets the current value of the
DATA_SOURCE_ROWID property for this record. |
void |
_datasourceRowid(java.lang.Long rowid)
Sets the current value of the
DATA_SOURCE_ROWID property for this record. |
java.lang.Integer |
_errorFlags()
Gets the current value of the
__error-flag__ for this record. |
void |
_errorFlags(java.lang.Integer flag)
Sets the current value of the
__error-flag__ for this record. |
java.lang.String |
_errorString()
Gets the current value of the
__error-string__ for this record. |
void |
_errorString(java.lang.String error)
Sets the current value of the
__error-string__ for this record. |
java.lang.Integer |
_multiplex()
Obtain the
_multiplex identifier of this record. |
void |
_multiplex(int newMultiplex)
Sets the
_multiplex identifier for this record. |
java.lang.Long |
_originRowid()
Gets the current value of the
ORIGIN-ROWID property for this record. |
void |
_originRowid(java.lang.Long rowid)
Sets the current value of the
ORIGIN-ROWID property for this record. |
java.lang.Long |
_peerRowid()
Gets the rowid (as
Long value) of the peer record. |
void |
_peerRowid(java.lang.Long rowid)
Sets the rowid (as
Long value) of the peer record. |
java.lang.Integer |
_rowState()
Gets the current value of the
ROW-STATE property for this record. |
void |
_rowState(java.lang.Integer state)
Sets the value of the
ROW-STATUS property for this record. |
void |
copy(BaseRecord from)
Makes this a copy of a source
BaseRecord object. |
TempRecord |
snapshot()
Creates a snapshot copy of the current record.
|
java.lang.String |
toString()
Return a string representation of this object, primarily for debug purposes.
|
protected void |
updateObjectRefCount(object<?> oldVal,
object<?> newVal)
Update the object reference count.
|
_getBlob, _getBlob, _getCharacter, _getCharacter, _getClob, _getClob, _getComhandle, _getComhandle, _getDate, _getDate, _getDatetime, _getDatetime, _getDatetimetz, _getDatetimetz, _getDecimal, _getDecimal, _getHandle, _getHandle, _getInt64, _getInt64, _getInteger, _getInteger, _getObject, _getObject, _getRaw, _getRaw, _getRecid, _getRecid, _getRecordMeta, _getRowid, _getRowid, _isLogical, _isLogical, _setBlob, _setBlob, _setBlob, _setCharacter, _setCharacter, _setCharacter, _setClob, _setClob, _setClob, _setComhandle, _setComhandle, _setComhandle, _setDate, _setDate, _setDate, _setDatetime, _setDatetime, _setDatetime, _setDatetimetz, _setDatetimetz, _setDatetimetz, _setDecimal, _setDecimal, _setDecimal, _setHandle, _setHandle, _setHandle, _setInt64, _setInt64, _setInt64, _setInteger, _setInteger, _setInteger, _setLogical, _setLogical, _setLogical, _setObject, _setObject, _setObject, _setRaw, _setRaw, _setRaw, _setRecid, _setRecid, _setRecid, _setRowid, _setRowid, _setRowid, decrementReferences, fromPOJO, getPropertyValues, incrementReferences, isMultiplyReferenced, populateFromPOJO, setPropertyValues, toDmoDate, toDmoDatetime, toDmoDatetimetz, toPOJO, toPojo, toPojo, toPojo, toString2_getReadFields, _recordMeta, checkIncomplete, checkState, copy, deepCopy, getActiveUpdateDiffs, getCodePage, getData, getData, getDatum, getDirtyIndices, getDirtyProps, getIndexState, getRecordLockIdentifier, getSize, initialize, initialize, isAnyIndexFullyDirty, isDirty, isIndexed, isInUse, isValid, needsValidation, primaryKey, primaryKey, restoreActiveState, setActiveBuffer, setAllData, setDatum, toString, undoActive, updateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoArrayprimaryKey, primaryKeypublic static final java.lang.String _ERROR_FLAG
public static final java.lang.String _ORIGIN_ROWID
public static final java.lang.String _DATASOURCE_ROWID
public static final java.lang.String _ERROR_STRING
public static final java.lang.String _PEER_ROWID
public static final java.lang.String _ROW_STATE
public static final int _ERROR_FLAG_DATA_INDEX
public static final int _ORIGIN_ROWID_DATA_INDEX
public static final int _DATASOURCE_ROWID_INDEX
public static final int _ERROR_STRING_DATA_INDEX
public static final int _PEER_ROWID_DATA_INDEX
public static final int _ROW_STATE_DATA_INDEX
public static final int _PK_DATA_INDEX
TempTableRecord.toArray() for the BaseRecord.id field; always last.public static final int _META_PROPERTIES_LENGTH
TempTableRecord.toArray().protected java.lang.Integer _multiplex
protected or else an IllegalAccessError is thrown
when Impl constructor is called.
TODO: this does not seem normal, the constructor does not access the field from super class,
it merely calls its super, see DmoClass.createConstructor :(.public final java.lang.Long _peerRowid()
Long value) of the peer record. Exclusively, for a BEFORE-TABLE
record this is the after-rowid and before-rowid for AFTER-TABLE record._peerRowid in interface TempTableRecordnull if there is none._PEER_ROWIDpublic final void _peerRowid(java.lang.Long rowid)
Long value) of the peer record. Exclusively, for a BEFORE-TABLE
record this is the after-rowid and before-rowid for AFTER-TABLE record._peerRowid in interface TempTableRecordrowid - The new long rowid value of the peer record or null._PEER_ROWIDpublic final java.lang.Integer _rowState()
ROW-STATE property for this record. Valid values
are defined as constants in Buffer interface. Additionally, null value is
returned if property is not available._rowState in interface TempTableRecordROW-STATUS property for this record as
explained above._ROW_STATEpublic final void _rowState(java.lang.Integer state)
ROW-STATUS property for this record. Valid values are defined
as constants in Buffer interface. Additionally null value is allowed if
property is not available._rowState in interface TempTableRecordstate - The new value of the ROW-STATE property for this record as explained above._ROW_STATEpublic final java.lang.Long _originRowid()
ORIGIN-ROWID property for this record. This property
of a record in a buffer of a CHANGE DATASET points to original record of the change.
Additionally, null value is returned if property is not available._originRowid in interface TempTableRecordORIGIN-ROWID property for this record as
explained above._ORIGIN_ROWIDpublic final void _originRowid(java.lang.Long rowid)
ORIGIN-ROWID property for this record. This property
of a record in a buffer of a CHANGE DATASET points to original record of the change.
Additionally, null value is returned if property is not available._originRowid in interface TempTableRecordrowid - The new value of the ORIGIN-ROWID property for this record as explained above._ORIGIN_ROWIDpublic final java.lang.Long _datasourceRowid()
DATA_SOURCE_ROWID property for this record. This property of a
record in a buffer of a CHANGE DATASET points to original record of the change. Additionally,
null value is returned if property is not available._datasourceRowid in interface TempTableRecordDATA_SOURCE_ROWID property for this record as explained above._DATASOURCE_ROWIDpublic final void _datasourceRowid(java.lang.Long rowid)
DATA_SOURCE_ROWID property for this record. This property of a
record in a buffer of a CHANGE DATASET points to original record of the change. Additionally,
null value is returned if property is not available._datasourceRowid in interface TempTableRecordrowid - The new value of the DATA_SOURCE_ROWID property for this record as explained above._DATASOURCE_ROWIDpublic final java.lang.Integer _errorFlags()
__error-flag__ for this record._errorFlags in interface TempTableRecord__error-flag__ for this record._ERROR_FLAGpublic final void _errorFlags(java.lang.Integer flag)
__error-flag__ for this record._errorFlags in interface TempTableRecordflag - The current value of the __error-flag__ for this record._ERROR_FLAGpublic final java.lang.String _errorString()
__error-string__ for this record._errorString in interface TempTableRecord__error-string__ for this record._ERROR_STRINGpublic final void _errorString(java.lang.String error)
__error-string__ for this record._errorString in interface TempTableRecorderror - The current value of the __error-string__ for this record._ERROR_STRINGpublic TempRecord snapshot()
TempRecord, the
returned object is also a TempRecord.public void copy(BaseRecord from)
BaseRecord object. For _temp databases, the
_multiplex identifier, internal data and the id of the
BaseRecord are copied.
TODO: check whether _rowState, _peerRowid, _originRowid,
_errorFlag and _errorString should also be copied.
copy in class BaseRecordfrom - The source to copy data from.public final java.lang.Integer _multiplex()
_multiplex identifier of this record._multiplex identifier of this record.public final void _multiplex(int newMultiplex)
_multiplex identifier for this record.newMultiplex - The new _multiplex identifier of this record.public java.lang.String toString()
toString in class BaseRecordprotected final void updateObjectRefCount(object<?> oldVal, object<?> newVal)
updateObjectRefCount in class RecordoldVal - The old value.newVal - The new value.