ORACLEworker

External objects

Properties Methods 

Properties

$callbackinstThe instance to which the worker object sends messages,for example when its processing has completed or has been cancelled.If you do not assign an instance to $callbackinst the worker object sends messages to itself
$cancelifrunningIf kTrue, the worker object sends a cancel request to the delegate object upon object re-use/destruction
$errorcodeOmnis error code associated with the last action
$errortextError text associated with the last action
$nativeerrorcodeDBMS-specific native error code associated with the last SQL transaction
$nativeerrortextDBMS-specific native error text associated with the last SQL transaction
$stateReturns the current state of the worker object
$threadcountReturns the number of active background threads for all worker instances
$waitforcompleteIf kTrue, the worker object cannot be re-used until the current delegate object terminates. If kFalse,the delegate will be detached if the object is re-used before the delegate thread terminates

Methods

$cancelCancel statement on background thread. Returns kTrue on success, kFalse otherwise
$cancelled$cancelled() Method called when the request has been cancelled
$completed$completed(wResults) Method called when the request completes. wResults is a row containing the results of executing the request
$initInitialise statement worker object. Returns kTrue on success, kFalse otherwise
$progress$progress(wProgress) Method called during worker execution to report progress
$runRun statement worker on main thread. Returns kTrue on success, kFalse otherwise
$sessionrefReturns an object reference to the worker's internal session object
$startRun statement worker on background thread. Returns kTrue on success, kFalse otherwise