org.oreodata.transaction
Class Transaction

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.oreodata.DataEvent
              |
              +--org.oreodata.transaction.Transaction
All Implemented Interfaces:
java.io.Serializable

public class Transaction
extends DataEvent

See Also:
Serialized Form

Field Summary
 java.lang.String id
           
 
Fields inherited from class org.oreodata.DataEvent
newRecord, oldRecord, RECORD_DELETED, RECORD_INSERTED, RECORD_UPDATED, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Transaction(TransactionalDataSource source, java.lang.String id)
           
 
Method Summary
 void abort()
           
 void addDataEvent(DataEvent event)
           
 void clear()
           
 java.util.Iterator events()
           
 Record getRecord(java.lang.String type, java.lang.Object key)
           
 boolean isAborted()
           
 long lastUsed()
           
 void touch()
           
 
Methods inherited from class org.oreodata.DataEvent
getTimeStamp, setSource
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final java.lang.String id
Constructor Detail

Transaction

public Transaction(TransactionalDataSource source,
                   java.lang.String id)
Method Detail

addDataEvent

public void addDataEvent(DataEvent event)

events

public java.util.Iterator events()

getRecord

public Record getRecord(java.lang.String type,
                        java.lang.Object key)
Returns:
the Record of the given type and key that is pending in this transaction, or a null

abort

public void abort()

isAborted

public boolean isAborted()

clear

public void clear()

lastUsed

public long lastUsed()

touch

public void touch()