endurox-java
Functions
boolean expression handling routines

Functions

native BExprTree org.endurox.AtmiCtx.Bboolco (String expr)
 
native void org.endurox.AtmiCtx.Bboolpr (BExprTree cexpr, OutputStream ostream)
 
void org.endurox.AtmiCtx.Bboolsetcbf (String funcname, Bboolcbf callback)
 

Detailed Description

tpsetunsol(3) tpbroadcast(3) tpchkunsol(3) tpnotify(3) tpdequeue(3) tpdequeueex(3) tpenqueue tpenqueueex tpabort(3) tpbegin(3) tpcommit(3) tpopen(3) tpclose(3) tpsuspend(3) tpresume(3) Group of boolean expression routines

Function Documentation

◆ Bboolco()

native BExprTree org.endurox.AtmiCtx.Bboolco ( String  expr)

Compile boolean expression. For more information see Bboolco(3) manpage

Parameters
exprUBF boolean expression
Returns
Compiled boolean expression handler
Exceptions
UbfBALIGNERRExceptionCorrupted buffer or pointing to not aligned memory area.
UbfBNOTFLDExceptionBuffer not fielded, not correctly allocated or corrupted.
UbfBBADFLDExceptionInvalid field id passed.
UbfBNOTPRESExceptionField not present.
UbfFMALLOCExceptionMalloc failed.
UbfBSYNTAXExceptionSynax error in script.
UbfBBADNAMEExceptionBad field name specified.

◆ Bboolpr()

native void org.endurox.AtmiCtx.Bboolpr ( BExprTree  cexpr,
OutputStream  ostream 
)

Print compiled expression to output stream. For more information see Bboolpr(3) manpage

Parameters
cexprcompiled expression
ostreamoutput stream. write(byte[] bytes) is used for printing the output.

◆ Bboolsetcbf()

void org.endurox.AtmiCtx.Bboolsetcbf ( String  funcname,
Bboolcbf  callback 
)

Set callback function from the expression, so that this function can be referenced/called from the compiled script/evaluated UBF boolean expression script. This function is not thread safe. meaning that any other thread shall not execute Boolean expressions while the callback are being registered. The function registers the callbacks at the java side into hashmap. and registration is done at C side too. The mapping is done in a singleton as it might be used by different contexts. For more information see Bboolsetcbf(3) manpage.

Parameters
funcnamefunction name (C style function name)
callbackinterface to callback object
Exceptions
UbfBBADNAMEExceptionInvalid function name. See Bboolsetcbf(3) manpage.