public interface PersistentProcedure extends CommonHandleChain, CommonProcedure, CommonFile, ADMData, UniqueID, Deletable, Remotable, AsyncRequestCountAttribute, InstantiatingProcedure
attribute or method | API |
---|---|
INTERNAL-ENTRIES | internalEntries() |
PERSISTENT | isPersistent() |
CURRENT-WINDOW | currentWindow() and
setCurrentWindow(com.goldencode.p2j.util.handle)
|
GET-SIGNATURE() | getSignature(character) and getSignature(String)
|
PROXY | isProxy() |
TRANSACTION | getTransaction() |
SET-CALLBACK-PROCEDURE | setCallbackProcedure(java.lang.String, java.lang.String) |
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 |
---|---|
handle |
currentWindow()
Get CURRENT-WINDOW attribute for this procedure handle.
|
character |
getPublishedEvents()
Get the named events published by this procedure.
|
character |
getSignature(character internalEntry)
Execute the
get-signature method of this procedure instance. |
character |
getSignature(java.lang.String internalEntry)
Execute the
get-signature method of this procedure instance. |
handle |
getTransaction()
Returns a handle to the current opened transaction.
|
character |
internalEntries()
Get the
internal-entries attribute of this procedure instance. |
logical |
isPersistent()
Get the
persistent attribute of this procedure instance. |
logical |
isProxy()
Indicates if the procedure is a proxy procedure.
|
logical |
setCallbackProcedure(character event,
character proc)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(character event,
character proc,
handle context)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(character event,
java.lang.String proc)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(character event,
java.lang.String proc,
handle context)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(java.lang.String event,
character proc)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(java.lang.String event,
character proc,
handle context)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(java.lang.String event,
java.lang.String proc)
Associate the internal procedure with the given web-services event.
|
logical |
setCallbackProcedure(java.lang.String event,
java.lang.String proc,
handle context)
Associate the internal procedure with the given web-services event.
|
void |
setCurrentWindow(handle h)
Set CURRENT-WINDOW attribute for this procedure handle.
|
void |
setCurrentWindow(WindowWidget win)
Set CURRENT-WINDOW attribute for this procedure handle.
|
getNextSibling, getPrevSibling, getPrivateData, setPrivateData, setPrivateData
getResourceType, readOnlyError
id, id, unknown, valid
addSuperProcedure, addSuperProcedure, addSuperProcedure, addSuperProcedure, isRemote, removeSuperProcedure, superProcedures
getFileName, initFileInfo, initFileInfo
getADMData, setADMData, setADMData
getUniqueID
getServerHandle
getAsyncRequestCount
instantiatingProcedure
character internalEntries()
internal-entries
attribute of this procedure instance.logical isPersistent()
persistent
attribute of this procedure instance.character getSignature(java.lang.String internalEntry)
get-signature
method of this procedure instance.internalEntry
- The legacy name of the internal-entry for which the signature
is needed.character getSignature(character internalEntry)
get-signature
method of this procedure instance.internalEntry
- The legacy name of the internal-entry for which the signature
is needed.handle currentWindow()
void setCurrentWindow(handle h)
h
- A handle for the window.void setCurrentWindow(WindowWidget win)
win
- Window reference.logical isProxy()
true
if the procedure is a proxy procedure ,
false
otherwise.handle getTransaction()
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 "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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(character 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 "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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, character proc)
This method returns false if the event name is not valid.
event
- The event name, must evaluate to one of the "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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(character event, character proc)
This method returns false if the event name is not valid.
event
- The event name, must evaluate to one of the "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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, must evaluate to one of the "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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.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 "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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.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, must evaluate to one of the "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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.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, must evaluate to one of the "REQUEST-HEADER" or the
"RESPONSE-HEADER" strings.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.character getPublishedEvents()