electric.util.dictionary.transactional
Class View
java.lang.Object
electric.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
View
public View(TransactionalDictionary dictionary,
Transaction transaction)
- Parameters:
dictionary - transaction -
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.