abstract class DMLWriteResultSet extends NoRowsResultSetImpl
Modifier and Type | Field and Description |
---|---|
protected int[] |
baseRowReadMap |
protected WriteCursorConstantAction |
constantAction |
protected ExecRow |
deferredSparseRow |
protected DynamicCompiledOpenConglomInfo |
heapDCOCI |
protected DynamicCompiledOpenConglomInfo[] |
indexDCOCIs |
private boolean |
needToObjectifyStream |
long |
rowCount |
protected int[] |
streamStorableHeapColIds |
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor and Description |
---|
DMLWriteResultSet(Activation activation)
Constructor
|
DMLWriteResultSet(Activation activation,
ConstantAction constantAction) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
decodeLockMode(int lockMode)
Decode the update lock mode.
|
(package private) java.lang.String |
getIndexNameFromCID(long indexCID)
get the index name given the conglomerate id of the index.
|
protected ExecRow |
getNextRowCore(NoPutResultSet source)
Get next row from the source result set.
|
protected ExecRow |
makeDeferredSparseRow(ExecRow deferredBaseRow,
FormatableBitSet baseRowReadList,
LanguageConnectionContext lcc)
For deferred update, get a deferred sparse row based on the
deferred non-sparse row.
|
long |
modifiedRowCount()
Returns zero.
|
private void |
objectifyStreams(ExecRow row) |
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateACheckConstraint, evaluateCheckConstraints, evaluateGenerationClauses, finish, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, setup
protected WriteCursorConstantAction constantAction
protected int[] baseRowReadMap
protected int[] streamStorableHeapColIds
protected ExecRow deferredSparseRow
protected DynamicCompiledOpenConglomInfo heapDCOCI
protected DynamicCompiledOpenConglomInfo[] indexDCOCIs
private boolean needToObjectifyStream
public long rowCount
DMLWriteResultSet(Activation activation) throws StandardException
activation
- an activationStandardException
- on errorDMLWriteResultSet(Activation activation, ConstantAction constantAction) throws StandardException
StandardException
public final long modifiedRowCount()
NoRowsResultSetImpl
modifiedRowCount
in interface ResultSet
modifiedRowCount
in class NoRowsResultSetImpl
protected ExecRow getNextRowCore(NoPutResultSet source) throws StandardException
source
- SourceResultSet
Also look at Track#2432/change 12433StandardException
private void objectifyStreams(ExecRow row) throws StandardException
StandardException
protected ExecRow makeDeferredSparseRow(ExecRow deferredBaseRow, FormatableBitSet baseRowReadList, LanguageConnectionContext lcc) throws StandardException
StandardException
- Thrown on errorint decodeLockMode(int lockMode)
The value for update lock mode is in the second most significant byte for ExecutionContext.SERIALIZABLE_ISOLATION_LEVEL isolation level. Otherwise (REPEATABLE READ, READ COMMITTED, and READ UNCOMMITTED) the lock mode is located in the least significant byte.
This is done to override the optimizer choice to provide maximum concurrency of record level locking except in SERIALIZABLE where table level locking is required in heap scans for correctness.
lockMode
- the compiled encoded lock mode for this queryFromBaseTable.updateTargetLockMode()
java.lang.String getIndexNameFromCID(long indexCID)
indexCID
- conglomerate ID of the index.Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.