net.sf.farrago.fennel
Class FennelExecutionHandle

java.lang.Object
  extended by net.sf.farrago.fennel.FennelExecutionHandle

public class FennelExecutionHandle
extends Object

FennelExecutionHandle provides a handle for passing execution state from Farrago to Fennel. The object containing the execution state is allocated in Fennel and then accessed from Farrago via the handle.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/FennelExecutionHandle.java#5 $
Author:
Zelaine Fong

Field Summary
private  long execHandle
          The execution handle used in Farrago to access the Fennel object.
 
Constructor Summary
FennelExecutionHandle()
          Creates the execution state object and its corresponding handle.
 
Method Summary
 void cancelExecution()
          Cancels execution of the statement corresponding to this handle.
 void delete()
          Deallocates the Fennel object corresponding to the handle.
 long getHandle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

execHandle

private long execHandle
The execution handle used in Farrago to access the Fennel object. Set to 0 if the handle is invalid.

Constructor Detail

FennelExecutionHandle

public FennelExecutionHandle()
Creates the execution state object and its corresponding handle.

Method Detail

getHandle

public long getHandle()
Returns:
the Fennel execution handle

delete

public void delete()
Deallocates the Fennel object corresponding to the handle.


cancelExecution

public void cancelExecution()
Cancels execution of the statement corresponding to this handle.