org.jboss.aspects.versioned
Class DistributedSetState
java.lang.Object
org.jboss.aspects.versioned.StateManager
org.jboss.aspects.versioned.CollectionStateManager
org.jboss.aspects.versioned.DistributedSetState
- All Implemented Interfaces:
- Externalizable, Serializable, Iterable, Collection, Set, DistributedState
public class DistributedSetState
- extends CollectionStateManager
- implements Set, DistributedState, Externalizable
- Version:
- $Revision: 1.1.4.4 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
log
protected static org.jboss.logging.Logger log
versionId
protected volatile long versionId
updates
protected HashSet updates
classname
protected String classname
base
protected transient Set base
txState
protected transient org.jboss.tm.TransactionLocal txState
txVersion
protected transient org.jboss.tm.TransactionLocal txVersion
versionManager
protected transient DistributedVersionManager versionManager
synchManager
protected transient SynchronizationManager synchManager
tm
protected transient TransactionManager tm
proxy
protected transient org.jboss.aop.proxy.ClassProxy proxy
DistributedSetState
public DistributedSetState()
- For serialization
DistributedSetState
public DistributedSetState(org.jboss.util.id.GUID guid,
long timeout,
org.jboss.aop.proxy.ClassProxy proxy,
Set obj,
DistributedVersionManager versionManager,
SynchronizationManager synchManager)
throws Exception
- Throws:
Exception
getMethodMap
public HashMap getMethodMap()
- Specified by:
getMethodMap
in class CollectionStateManager
getObject
public org.jboss.aop.InstanceAdvised getObject()
- Specified by:
getObject
in interface DistributedState
getCurrentState
protected Set getCurrentState(boolean forUpdate)
throws Exception
- Throws:
Exception
createSetUpdates
protected HashSet createSetUpdates(Set state)
createTxUpdate
public DistributedUpdate createTxUpdate(Transaction tx)
- Specified by:
createTxUpdate
in interface DistributedState
buildObject
public org.jboss.aop.InstanceAdvised buildObject(SynchronizationManager manager,
DistributedVersionManager versionManager)
throws Exception
- Specified by:
buildObject
in interface DistributedState
- Throws:
Exception
checkOptimisticLock
public void checkOptimisticLock(Transaction tx)
- Specified by:
checkOptimisticLock
in interface DistributedState
mergeState
public void mergeState(Transaction tx)
throws Exception
- Specified by:
mergeState
in interface DistributedState
- Throws:
Exception
mergeState
public void mergeState(DistributedUpdate update)
throws Exception
- Specified by:
mergeState
in interface DistributedState
- Throws:
Exception
add
public boolean add(Object val)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface Set
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface Set
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface Set
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
- Specified by:
contains
in interface Set
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interface Collection
- Specified by:
containsAll
in interface Set
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface Set
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
- Specified by:
hashCode
in interface Set
- Overrides:
hashCode
in class Object
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
- Specified by:
isEmpty
in interface Set
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface Set
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface Set
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll
in interface Collection
- Specified by:
removeAll
in interface Set
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll
in interface Collection
- Specified by:
retainAll
in interface Set
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface Set
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface Set
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface Set
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class CollectionStateManager
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class CollectionStateManager
- Throws:
IOException
ClassNotFoundException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.