oracle.clex.persistence.toplink
Class TOPLinkTransaction

java.lang.Object
  |
  +--oracle.cle.persistence.Transaction
        |
        +--oracle.clex.persistence.toplink.TOPLinkTransaction

Deprecated. use ClientSessionProvider for TOPLink903 and on. Discontinue use of oracle.clex.persistence.toplink.TOPLink*.java, oracle.clex.persistence.toplink.CLEUnitOfWork.java and oracle.clex.persistence.toplink.PersistenceExceptionHandler.java

public class TOPLinkTransaction
extends Transaction

Purpose: object level transaction for tracking object changes to write to relational database using TOPLink.


Field Summary
static java.lang.String DB_CONNECTION
          Deprecated. Static key for Storage of Connnection in the CLEUnitOfWork
 
Constructor Summary
TOPLinkTransaction(TOPLinkConnection connection, CLEUnitOfWork uow)
          Deprecated.  
 
Method Summary
 void commitChanges()
          Deprecated. Commit all of the changes to registered objects.
 void commitChanges(boolean commitAndResume)
          Deprecated. Commit all of the changes to registered objects.
protected  CLEUnitOfWork getUnitOfWork()
          Deprecated.  
 void ignoreChangesAndRelease()
          Deprecated. Ignore all changes to working copies.
 java.util.Vector registerAllObjects(java.util.Vector vector)
          Deprecated. Build a working copy (clone) of a collection of persistent objects to allow change isolation.
 java.lang.Object registerForChanges(java.lang.Object persistentObject)
          Deprecated. Build a working copy (clone) or a persistent object to allow change isolation.
 void registerForDelete(java.lang.Object persistentObject)
          Deprecated. Register to have an object deleted.
 void registerObject(java.lang.Object object)
          Deprecated.  
 
Methods inherited from class oracle.cle.persistence.Transaction
getConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB_CONNECTION

public static final java.lang.String DB_CONNECTION
Deprecated. 
Static key for Storage of Connnection in the CLEUnitOfWork
Constructor Detail

TOPLinkTransaction

public TOPLinkTransaction(TOPLinkConnection connection,
                          CLEUnitOfWork uow)
Deprecated. 
Method Detail

getUnitOfWork

protected CLEUnitOfWork getUnitOfWork()
Deprecated. 

registerObject

public void registerObject(java.lang.Object object)
Deprecated. 

registerAllObjects

public java.util.Vector registerAllObjects(java.util.Vector vector)
Deprecated. 
Description copied from class: Transaction
Build a working copy (clone) of a collection of persistent objects to allow change isolation. Changes made to these clones will be merged into original upon commit of changes. This includes registration of new objects.

NOTE: It is essential that objects do not get modified unless registered and that only working copies reference each together (inlcuding new objects)

Overrides:
registerAllObjects in class Transaction

registerForChanges

public java.lang.Object registerForChanges(java.lang.Object persistentObject)
Deprecated. 
Build a working copy (clone) or a persistent object to allow change isolation. changes made to this clone will be merged into original upon commit of changes. This includes registration of new objects. NOTE: It is essential that objects do not get modified unless registered and that only working copies reference each together (inlcuding new objects)
Overrides:
registerForChanges in class Transaction

registerForDelete

public void registerForDelete(java.lang.Object persistentObject)
Deprecated. 
Register to have an object deleted. It is essential that the object not be\ referenced when the commitChanges is invoked.
Overrides:
registerForDelete in class Transaction

commitChanges

public void commitChanges(boolean commitAndResume)
Deprecated. 
Commit all of the changes to registered objects. This includes UPDATEs, INSERTs, and deletes (both explicitely deleted and those removed from privately-owned ccollections).
Throws:
TOPLinkException - (RuntimeException)

commitChanges

public void commitChanges()
Deprecated. 
Commit all of the changes to registered objects. This includes UPDATEs, INSERTs, and deletes (both explicitely deleted and those removed from privately-owned ccollections).
Overrides:
commitChanges in class Transaction
Throws:
TOPLinkException - (RuntimeException)

ignoreChangesAndRelease

public void ignoreChangesAndRelease()
Deprecated. 
Ignore all changes to working copies. This is basically a NO-OP called before the DBTransaction is released for GC.
Overrides:
ignoreChangesAndRelease in class Transaction


Copyright © 2003 ORACLE Corp. All Rights Reserved.