|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.NoRowsResultSetImpl
org.apache.derby.impl.sql.execute.DMLWriteResultSet
abstract class DMLWriteResultSet
For INSERT/UPDATE/DELETE impls. Used to tag them.
Field Summary | |
---|---|
protected int[] |
baseRowReadMap
|
protected WriteCursorConstantAction |
constantAction
|
protected ExecRow |
deferredSparseRow
|
protected DynamicCompiledOpenConglomInfo |
heapDCOCI
|
protected DynamicCompiledOpenConglomInfo[] |
indexDCOCIs
|
private boolean |
needToObjectifyStream
|
int |
rowCount
|
protected int[] |
streamStorableHeapColIds
|
Fields inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl |
---|
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc |
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet |
---|
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST |
Constructor Summary | |
---|---|
DMLWriteResultSet(Activation activation)
Constructor |
|
DMLWriteResultSet(Activation activation,
ConstantAction constantAction)
|
Method Summary | |
---|---|
(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. |
int |
modifiedRowCount()
Returns zero. |
private void |
objectifyStreams(ExecRow row)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.sql.ResultSet |
---|
cleanUp, open |
Field Detail |
---|
protected WriteCursorConstantAction constantAction
protected int[] baseRowReadMap
protected int[] streamStorableHeapColIds
protected ExecRow deferredSparseRow
protected DynamicCompiledOpenConglomInfo heapDCOCI
protected DynamicCompiledOpenConglomInfo[] indexDCOCIs
private boolean needToObjectifyStream
public int rowCount
Constructor Detail |
---|
DMLWriteResultSet(Activation activation) throws StandardException
activation
- an activation
StandardException
- on errorDMLWriteResultSet(Activation activation, ConstantAction constantAction) throws StandardException
StandardException
Method Detail |
---|
public final int 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 12433
StandardException
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 query
FromBaseTable.updateTargetLockMode()
java.lang.String getIndexNameFromCID(long indexCID)
indexCID
- conglomerate ID of the index.
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |