public class BlockDefinition
extends java.lang.Object
public
since this is just a simple container.Modifier and Type | Field and Description |
---|---|
Block |
block
The block to be executed.
|
java.util.List<Commitable> |
commitables
Stores the list of commitable objects to be notified at successful
completion of this block.
|
boolean |
committed
Defines if this block was already committed.
|
boolean |
endkeyRetry
Marks the current retry as one caused by an
ENDKEY . |
boolean |
external
Defines if this block is derived from an external procedure.
|
java.util.List<Finalizable> |
finalizables
Stores the list of finalizable objects to be notified when the flow
of control exist from this block in any manner.
|
boolean |
full
Caches whether or not this block started a transaction.
|
boolean |
hadPause
Defines if this iteration has encountered a pause.
|
int |
ilpCount
Counts the number of sequential retries converted to NEXT or LEAVE.
|
boolean |
init
Has this block initialized at least once.
|
int |
interactions
Counter for the number of interactive stmts in the current block.
|
boolean |
isUndoLevel
Defines if this blocks is or was the target of UNDO.
|
boolean |
iterated
Has this block iterated at least once.
|
java.lang.String |
label
Label to identify this block.
|
int |
level
Level of transaction support for this block.
|
boolean |
loop
Defines if this block is a loop or not.
|
boolean |
loopProtection
Defines if this iteration requires infinite loop protection.
|
boolean |
next
Determines if infinite loop protection converts retry into next or
leave.
|
OutputParameterAssigner |
outputParmAssigner
Stores the output parameter assigner
|
boolean |
pendingBreak
Defines if this iteration has a pending break which was generated by
infinite loop protection during a retry.
|
int |
props
Bitmap specifying the block properties active for this block.
|
boolean |
retry
Defines if this iteration requires a retry.
|
boolean |
rolledBack
Defines if this block was undone.
|
boolean |
rollup
Aggregate interactions counter when a client block exits.
|
private static java.lang.String |
spec
Sprintf format specification for string representation.
|
boolean |
suppressError
Defines if this block's caller requires errors to be suppressed.
|
boolean |
topLevel
Defines if this block is a top-level block (a method) or not.
|
int |
txNestingLevel
The depth of this transaction block, when
level is
TransactionManager.TRANSACTION or TransactionManager.SUB_TRANSACTION . |
BlockType |
type
This block's type.
|
java.util.List<UndoablePair> |
undoables
Stores the list of undoable objects.
|
boolean |
wasRetried
Defines if this iteration is a retry (versus the first pass).
|
Constructor and Description |
---|
BlockDefinition(java.lang.String label,
int level,
int props,
boolean full,
boolean external,
boolean topLevel,
boolean loop,
boolean next,
BlockType type,
Block block)
Construct an instance to represent a new block.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Render this block's data as a human readable string.
|
private static final java.lang.String spec
public java.lang.String label
public boolean full
public int level
public int txNestingLevel
level
is
TransactionManager.TRANSACTION
or TransactionManager.SUB_TRANSACTION
.public int props
public boolean external
public boolean topLevel
public boolean loop
public boolean iterated
public BlockType type
public Block block
public boolean loopProtection
public boolean hadPause
public boolean endkeyRetry
ENDKEY
.public int ilpCount
public int interactions
public boolean rollup
public boolean init
public boolean pendingBreak
public boolean retry
public boolean wasRetried
public boolean next
public boolean rolledBack
public boolean committed
public boolean isUndoLevel
public boolean suppressError
public java.util.List<UndoablePair> undoables
public java.util.List<Commitable> commitables
public java.util.List<Finalizable> finalizables
public OutputParameterAssigner outputParmAssigner
public BlockDefinition(java.lang.String label, int level, int props, boolean full, boolean external, boolean topLevel, boolean loop, boolean next, BlockType type, Block block)
label
- This scope's label.level
- The type of transaction processing this scope can participate
in. This must be set to one of the following
TransactionManager
constants:
NO_TRANSACTION, SUB_TRANSACTION or TRANSACTION
.props
- A bitfield storing block properties which will be a
combination of TransactionManager
constants:
PROP_NONE, PROP_ERROR, PROP_ENDKEY, PROP_STOP
and PROP_QUIT
.full
- If true
this scope starts a full transaction
(this is the scope at which database commits will occur).external
- true
if this block is associated with the
external procedure (in Progress terms). This controls the
cleanup of certain resources such as temp-tables, frames
and streams.topLevel
- true
if this block is a method.loop
- true
if this block is a loop.next
- true
if this infinite loop protection should
convert a retry into a next (continue), otherwise the retry
will be converted into a leave (break).type
- This block's type.block
- The block to be executed.