org.apache.commons.transaction.memory
Class OptimisticTxMap.CopyingTxContext

java.lang.Object
  extended by org.apache.commons.transaction.AbstractTransactionalResourceManager.AbstractTxContext
      extended by org.apache.commons.transaction.memory.BasicTxMap.MapTxContext
          extended by org.apache.commons.transaction.memory.OptimisticTxMap.CopyingTxContext
Enclosing class:
OptimisticTxMap<K,V>

public class OptimisticTxMap.CopyingTxContext
extends BasicTxMap.MapTxContext


Field Summary
protected  Map<K,V> externalAdds
           
protected  Map<K,V> externalChanges
           
protected  Set externalDeletes
           
 
Fields inherited from class org.apache.commons.transaction.memory.BasicTxMap.MapTxContext
adds, changes, cleared, deletes
 
Constructor Summary
protected OptimisticTxMap.CopyingTxContext()
           
 
Method Summary
protected  Set changedKeys()
           
protected  void clear()
           
 void commit()
           
protected  Set externalChangedKeys()
           
protected  V get(Object key)
           
protected  Set keys()
           
protected  void put(K key, V value)
           
protected  void remove(Object key)
           
protected  int size()
           
 
Methods inherited from class org.apache.commons.transaction.memory.BasicTxMap.MapTxContext
isEmpty
 
Methods inherited from class org.apache.commons.transaction.AbstractTransactionalResourceManager.AbstractTxContext
dispose, isMarkedForRollback, isReadOnly, join, markForRollback, prepare, readLock, rollback, setReadOnly, start, writeLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

externalChanges

protected Map<K,V> externalChanges

externalAdds

protected Map<K,V> externalAdds

externalDeletes

protected Set externalDeletes
Constructor Detail

OptimisticTxMap.CopyingTxContext

protected OptimisticTxMap.CopyingTxContext()
Method Detail

externalChangedKeys

protected Set externalChangedKeys()

changedKeys

protected Set changedKeys()

keys

protected Set keys()
Overrides:
keys in class BasicTxMap.MapTxContext

get

protected V get(Object key)
Overrides:
get in class BasicTxMap.MapTxContext

put

protected void put(K key,
                   V value)
Overrides:
put in class BasicTxMap.MapTxContext

remove

protected void remove(Object key)
Overrides:
remove in class BasicTxMap.MapTxContext

size

protected int size()
Overrides:
size in class BasicTxMap.MapTxContext

clear

protected void clear()
Overrides:
clear in class BasicTxMap.MapTxContext

commit

public void commit()
Overrides:
commit in class BasicTxMap.MapTxContext


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.