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 java.util.EventObject |
source |
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 |
id
public final java.lang.String id
Transaction
public Transaction(TransactionalDataSource source,
java.lang.String id)
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()