public class TriggerReturnValue
extends java.lang.Object
implements java.io.Externalizable
ScreenBuffer
and a boolean
consume
flag. These are made public to keep the interface simple. This class
provides a very simple container used to return data from the execution
of a trigger.
The consume flag is the implementation mechanism for the Progress
construct of using RETURN NO-APPLY
in a trigger.
Modifier and Type | Field and Description |
---|---|
ScreenBuffer[] |
buffer
The screen buffer that may have been edited or
null if no
screen buffer is available. |
boolean |
consume
true if the source event should be consumed. |
Constructor and Description |
---|
TriggerReturnValue()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public ScreenBuffer[] buffer
null
if no
screen buffer is available.public boolean consume
true
if the source event should be consumed.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- Input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.