public class Trigger extends Block implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected BlockManager.TransactionType |
level
Transaction level for this code block.
|
bodyMethod, enterMethod, finiMethod, initMethod, preMethod| Constructor and Description |
|---|
Trigger()
Default constructor, equivalent to an empty trigger (one with no code in the block).
|
Trigger(Body body)
Constructor.
|
Trigger(Body body,
Fini fini)
Constructor.
|
Trigger(Fini fini)
Constructor.
|
Trigger(Init init)
Constructor.
|
Trigger(Init init,
Body body)
Constructor.
|
Trigger(Init init,
Body body,
Fini fini)
Constructor.
|
Trigger(Init init,
Fini fini)
Constructor.
|
Trigger(Pre pre)
Constructor.
|
Trigger(Pre pre,
Body body)
Constructor.
|
Trigger(Pre pre,
Body body,
Fini fini)
Constructor.
|
Trigger(Pre pre,
Fini fini)
Constructor.
|
Trigger(Pre pre,
Init init)
Constructor.
|
Trigger(Pre pre,
Init init,
Body body)
Constructor.
|
Trigger(Pre pre,
Init init,
Body body,
Fini fini)
Constructor.
|
Trigger(Pre pre,
Init init,
Fini fini)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Primary driver method that executes the trigger's contained block
body, managing the execution using the proper transaction manager
scaffolding to yield Progress-compatible behavior.
|
Trigger |
setLevel(BlockManager.TransactionType level)
Sets the transaction level for the associated block of code.
|
protected BlockManager.TransactionType level
public Trigger()
public Trigger(Body body)
body - The code to be executed as the block's Block.body() method.public Trigger(Pre pre, Body body)
pre - The code to be executed as the block's Block.pre() method.body - The code to be executed as the block's Block.body() method.public Trigger(Init init, Body body)
init - The code to be executed as the block's Block.init() method.body - The code to be executed as the block's Block.body() method.public Trigger(Pre pre, Init init, Body body)
pre - The code to be executed as the block's Block.pre() method.init - The code to be executed as the block's Block.init() method.body - The code to be executed as the block's Block.body() method.public Trigger(Body body, Fini fini)
body - The code to be executed as the block's Block.body() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Pre pre, Body body, Fini fini)
pre - The code to be executed as the block's Block.pre() method.body - The code to be executed as the block's Block.body() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Init init, Body body, Fini fini)
init - The code to be executed as the block's Block.init() method.body - The code to be executed as the block's Block.body() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Pre pre, Init init, Body body, Fini fini)
pre - The code to be executed as the block's Block.pre() method.init - The code to be executed as the block's Block.init() method.body - The code to be executed as the block's Block.body() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Pre pre)
pre - The code to be executed as the block's Block.pre() method.public Trigger(Init init)
init - The code to be executed as the block's Block.init() method.public Trigger(Pre pre, Init init)
pre - The code to be executed as the block's Block.pre() method.init - The code to be executed as the block's Block.init() method.public Trigger(Fini fini)
fini - The code to be executed as the block's Block.fini() method.public Trigger(Pre pre, Fini fini)
pre - The code to be executed as the block's Block.pre() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Init init, Fini fini)
init - The code to be executed as the block's Block.init() method.fini - The code to be executed as the block's Block.fini() method.public Trigger(Pre pre, Init init, Fini fini)
pre - The code to be executed as the block's Block.pre() method.init - The code to be executed as the block's Block.init() method.fini - The code to be executed as the block's Block.fini() method.public Trigger setLevel(BlockManager.TransactionType level)
This MUST be called before invocation of the trigger init
or the trigger's body. Otherwise it will be ignored.
level - The transaction level.public void run()
run in interface java.lang.Runnable