electric.util.dictionary.transactional
Class View

java.lang.Object
  extended byelectric.util.dictionary.transactional.View
All Implemented Interfaces:
IDictionary, ITransactional

public final class View
extends java.lang.Object
implements IDictionary, ITransactional

View is an implementation of IDictionary that represents a view of the TransactionDictionary with uncommitted operations.

Author:
webMethods

Constructor Summary
View(TransactionalDictionary dictionary, Transaction transaction)
           
 
Method Summary
 void commit()
           
 java.util.Enumeration elements()
           
 java.lang.Object get(java.lang.Object key)
           
 electric.util.dictionary.transactional.operations.IOperation getOperation(java.lang.String key)
           
 java.util.Enumeration getOperationKeys()
           
 IPersistentDictionary getPersistentDictionary()
           
 Transaction getTransaction()
           
 TransactionalDictionary getTransactionalDictionary()
           
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 java.lang.Object peek(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
           
 void rollback()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(TransactionalDictionary dictionary,
            Transaction transaction)
Parameters:
dictionary -
transaction -
Method Detail

getTransaction

public Transaction getTransaction()

getTransactionalDictionary

public TransactionalDictionary getTransactionalDictionary()

getPersistentDictionary

public IPersistentDictionary getPersistentDictionary()

getOperation

public electric.util.dictionary.transactional.operations.IOperation getOperation(java.lang.String key)
Parameters:
key -

getOperationKeys

public java.util.Enumeration getOperationKeys()

get

public java.lang.Object get(java.lang.Object key)
                     throws java.lang.IllegalArgumentException
Specified by:
get in interface IDictionary
Parameters:
key -
Throws:
java.lang.IllegalArgumentException

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
                     throws java.lang.IllegalArgumentException
Specified by:
put in interface IDictionary
Parameters:
key -
value -
Throws:
java.lang.IllegalArgumentException

remove

public java.lang.Object remove(java.lang.Object key)
                        throws java.lang.IllegalArgumentException
Specified by:
remove in interface IDictionary
Parameters:
key -
Throws:
java.lang.IllegalArgumentException

size

public int size()
Specified by:
size in interface IDictionary

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IDictionary

keys

public java.util.Enumeration keys()
Specified by:
keys in interface IDictionary

elements

public java.util.Enumeration elements()
Specified by:
elements in interface IDictionary

peek

public java.lang.Object peek(java.lang.Object key)
                      throws java.lang.IllegalArgumentException
Specified by:
peek in interface IDictionary
Parameters:
key -
Throws:
java.lang.IllegalArgumentException

commit

public void commit()
            throws TransactionException
Specified by:
commit in interface ITransactional
Throws:
TransactionException

rollback

public void rollback()
              throws TransactionException
Specified by:
rollback in interface ITransactional
Throws:
TransactionException


copyright© 2001-2004 by webMethods All Rights Reserved.