Save This Page
Home » glassfish-v2ur2-b04-src » javax.resource.spi.work » [javadoc | source]
javax.resource.spi.work
public class: ExecutionContext [javadoc | source]
java.lang.Object
   javax.resource.spi.work.ExecutionContext
This class models an execution context (transaction, security, etc) with which the Work instance must be executed. This class is provided as a convenience for easily creating ExecutionContext instances by extending this class and overriding only those methods of interest.

Some reasons why it is better for ExecutionContext to be a class rather than an interface:

Method from javax.resource.spi.work.ExecutionContext Summary:
getTransactionTimeout,   getXid,   setTransactionTimeout,   setXid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.resource.spi.work.ExecutionContext Detail:
 public long getTransactionTimeout() 
    Get the transaction timeout value for a imported transaction.
 public Xid getXid() 
 public  void setTransactionTimeout(long timeout) throws NotSupportedException 
    Set the transaction timeout value for a imported transaction.
 public  void setXid(Xid xid) 
    set a transaction context.