public interface CallbackProcedure
SET-CALLBACK-PROCEDURE
/
setCallbackProcedure(java.lang.String, java.lang.String)
.
This interface is used as a returned type by the handle.unwrapProcedure()
API, which,
depending on the handle's state and type, it either returns an ExternalProgramWrapper
instance, or a dynamic proxy using handle.invalidAttrAccessProxy()
.
Modifier and Type | Method and Description |
---|---|
logical |
applyCallback(java.lang.String eventName)
Applies a callback procedure, which allows execution of a defined event without duplicating
the event procedure definition.
|
default logical |
applyCallback(Text eventName)
Applies a callback procedure, which allows execution of a defined event without duplicating
the event procedure definition.
|
handle |
getCallbackProcContext(java.lang.String eventName)
Retrieves the handle of the procedure that contains the internal procedure associated
with the ABL callback for the specified event
|
default handle |
getCallbackProcContext(Text eventName)
Retrieves the handle of the procedure that contains the internal procedure associated
with the ABL callback for the specified event
|
character |
getCallbackProcName(java.lang.String eventName)
Retrieves the name of the internal procedure associated with the ABL callback for the
specified event.
|
default character |
getCallbackProcName(Text eventName)
Retrieves the name of the internal procedure associated with the ABL callback for the
specified event.
|
default logical |
setCallback(java.lang.String callbackName,
java.lang.String routineName)
Configures a callback.
|
default logical |
setCallback(java.lang.String callbackName,
java.lang.String routineName,
handle context)
Configures a callback.
|
logical |
setCallback(java.lang.String callbackName,
java.lang.String routineName,
object<?> context)
Configures a callback.
|
default logical |
setCallback(java.lang.String callbackName,
Text routineName,
handle context)
Configures a callback.
|
default logical |
setCallback(Text callbackName,
Text routineName)
Configures a callback.
|
default logical |
setCallback(Text callbackName,
Text routineName,
handle context)
Configures a callback.
|
default logical |
setCallback(Text callbackName,
Text routineName,
object<?> context)
Configures a callback.
|
default logical |
setCallbackProcedure(character event,
character proc)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(character event,
character proc,
handle context)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(character event,
java.lang.String proc)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(character event,
java.lang.String proc,
handle context)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(java.lang.String event,
character proc)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(java.lang.String event,
character proc,
handle context)
Associates an internal procedure with an ABL callback event.
|
default logical |
setCallbackProcedure(java.lang.String event,
java.lang.String proc)
Associates an internal procedure with an ABL callback event.
|
logical |
setCallbackProcedure(java.lang.String event,
java.lang.String proc,
handle context)
Associates an internal procedure with an ABL callback event.
|
default logical setCallbackProcedure(java.lang.String event, java.lang.String proc)
This method returns false if the event name is not valid.
event
- The event name, must evaluate to one of the events supported by implementing object.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.true
if the event was registered.default logical setCallbackProcedure(character event, java.lang.String proc)
This method returns false if the event name is not valid.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.true
if the event was registered.default logical setCallbackProcedure(java.lang.String event, character proc)
This method returns false if the event name is not valid.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.true
if the event was registered.default logical setCallbackProcedure(character event, character proc)
This method returns false if the event name is not valid.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.true
if the event was registered.logical setCallbackProcedure(java.lang.String event, java.lang.String proc, handle context)
This method returns false if the event name is not valid or if the procedure's context is not a valid handle.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.context
- The procedure handle where the internal procedure will be searched and executed.true
if the event was registered.default logical setCallbackProcedure(character event, java.lang.String proc, handle context)
This method returns false if the event name is not valid or if the procedure's context is not a valid handle.
event
- The event name, must evaluate to one of the events supported by implementing object.proc
- The internal procedure to be executed for this event. To remove a callback
mapping, set the this parameter to the empty string.context
- The procedure handle where the internal procedure will be searched and executed.true
if the event was registered.default logical setCallbackProcedure(java.lang.String event, character proc, handle context)
This method returns false if the event name is not valid or if the procedure's context is not a valid handle.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using
the current THIS-PROCEDURE reference. To remove a callback mapping, set the this
parameter to the empty string.context
- The procedure handle where the internal procedure will be searched and executed.true
if the event was registered.default logical setCallbackProcedure(character event, character proc, handle context)
This method returns false if the event name is not valid or if the procedure's context is not a valid handle.
event
- The event name.proc
- The internal procedure to be executed for this event, which will be executed using the current
THIS-PROCEDURE reference. To remove a callback mapping, set the this parameter to the empty
string.context
- The procedure handle where the internal procedure will be searched and executed.true
if the event was registered.default logical applyCallback(Text eventName)
eventName
- The event whose callback will be called.true
if operation is successful.logical applyCallback(java.lang.String eventName)
eventName
- The event whose callback will be called.true
if operation is successful.default character getCallbackProcName(Text eventName)
eventName
- The name of the event.character getCallbackProcName(java.lang.String eventName)
eventName
- The name of the event.default handle getCallbackProcContext(Text eventName)
eventName
- The name of the event.handle getCallbackProcContext(java.lang.String eventName)
eventName
- The name of the event.default logical setCallback(java.lang.String callbackName, java.lang.String routineName)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.true
if operation is successful and false
if the parameters are
invalid.default logical setCallback(Text callbackName, Text routineName)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.true
if operation is successful and false
if the parameters are
invalid.logical setCallback(java.lang.String callbackName, java.lang.String routineName, object<?> context)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.context
- The context in which the callback will be executed.true
if operation is successful and false
if the parameters are
invalid.default logical setCallback(Text callbackName, Text routineName, object<?> context)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.context
- The context in which the callback will be executed.true
if operation is successful and false
if the parameters are
invalid.default logical setCallback(java.lang.String callbackName, java.lang.String routineName, handle context)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.context
- The context in which the callback will be executed.true
if operation is successful and false
if the parameters are
invalid.default logical setCallback(Text callbackName, Text routineName, handle context)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.context
- The context in which the callback will be executed.true
if operation is successful and false
if the parameters are
invalid.default logical setCallback(java.lang.String callbackName, Text routineName, handle context)
callbackName
- The name of a callback.routineName
- The name of a method or an internal procedure to be associated.context
- The context in which the callback will be executed.true
if operation is successful and false
if the parameters are
invalid.