org.apache.commons.transaction.memory
Class BasicTxMap.MapTxContext

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

public class BasicTxMap.MapTxContext
extends AbstractTransactionalResourceManager.AbstractTxContext


Field Summary
protected  Map<K,V> adds
           
protected  Map<K,V> changes
           
protected  boolean cleared
           
protected  Set<K> deletes
           
 
Constructor Summary
protected BasicTxMap.MapTxContext()
           
 
Method Summary
protected  void clear()
           
 void commit()
           
protected  V get(Object key)
           
protected  boolean isEmpty()
           
protected  Set<K> keys()
           
protected  void put(K key, V value)
           
protected  void remove(Object key)
           
protected  int size()
           
 
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

deletes

protected Set<K> deletes

changes

protected Map<K,V> changes

adds

protected Map<K,V> adds

cleared

protected boolean cleared
Constructor Detail

BasicTxMap.MapTxContext

protected BasicTxMap.MapTxContext()
Method Detail

keys

protected Set<K> keys()

get

protected V get(Object key)

put

protected void put(K key,
                   V value)

remove

protected void remove(Object key)

size

protected int size()

clear

protected void clear()

isEmpty

protected boolean isEmpty()

commit

public void commit()
Overrides:
commit in class AbstractTransactionalResourceManager.AbstractTxContext


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