| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalTransaction
The LocalTransaction defines a transaction demarcation interface for
  resource manager local transactions. Note that this interface is 
  used for application level local transaction demarcation. The
  system contract level LocalTransaction interface (as defined in
  the javax.resource.spi package) is used by the container 
  for local transaction management.
  
A local transaction is managed internal to a resource manager. There is no external transaction manager involved in the coordination of such transactions.
A CCI implementation can (but is not required to) implement the
  LocalTransaction interface. If the LocalTransaction interface is supported
  by a CCI implementation, then the method 
  Connection.getLocalTransaction should return a
  LocalTransaction instance. A component can then use the
  returned LocalTransaction to demarcate a resource manager local transaction
  (associated with the Connection instance) on the underlying EIS 
  instance.
Connection| Method Summary | |
|---|---|
 void | 
begin()
Begins a local transaction on an EIS instance.  | 
 void | 
commit()
Commits the current local transaction and release all locks held by the underlying EIS instance.  | 
 void | 
rollback()
Rollbacks the current resource manager local transaction.  | 
| Method Detail | 
|---|
void begin()
           throws ResourceException
ResourceException - Failed to begin a local
                              transaction. Examples of
                              error cases are:
           
void commit()
            throws ResourceException
ResourceException - Failed to commit a local
                              transaction. Examples of
                              error cases are:
          
void rollback()
              throws ResourceException
ResourceException - Failed to rollback a local
                              transaction. Examples of
                              error cases are:
           
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41