|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.BrokerImpl.TransactionalCache
static class BrokerImpl.TransactionalCache
Transactional cache that holds soft refs to clean instances.
Constructor Summary | |
---|---|
BrokerImpl.TransactionalCache(boolean orderDirty)
|
Method Summary | |
---|---|
boolean |
add(Object obj)
|
boolean |
addAll(Collection coll)
|
void |
addClean(StateManagerImpl sm)
Add the given instance to the clean cache. |
void |
addDirty(StateManagerImpl sm)
Add the given instance to the dirty cache. |
void |
clear()
|
boolean |
contains(Object obj)
|
boolean |
containsAll(Collection coll)
|
Collection |
copy()
Return a copy of all transactional state managers. |
Collection |
copyDirty()
Return a copy of all dirty state managers. |
void |
flushed(StateManagerImpl sm)
Transfer the given instance from the dirty cache to the clean cache. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object obj)
|
boolean |
remove(StateManagerImpl sm)
Remove the given instance from the cache. |
boolean |
removeAll(Collection coll)
|
boolean |
retainAll(Collection c)
|
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arr)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals, hashCode |
Constructor Detail |
---|
public BrokerImpl.TransactionalCache(boolean orderDirty)
Method Detail |
---|
public Collection copy()
public Collection copyDirty()
public void flushed(StateManagerImpl sm)
public void addClean(StateManagerImpl sm)
public void addDirty(StateManagerImpl sm)
public boolean remove(StateManagerImpl sm)
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
public boolean contains(Object obj)
contains
in interface Collection
contains
in interface Set
public boolean containsAll(Collection coll)
containsAll
in interface Collection
containsAll
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public int size()
size
in interface Collection
size
in interface Set
public boolean add(Object obj)
add
in interface Collection
add
in interface Set
public boolean addAll(Collection coll)
addAll
in interface Collection
addAll
in interface Set
public boolean remove(Object obj)
remove
in interface Collection
remove
in interface Set
public boolean removeAll(Collection coll)
removeAll
in interface Collection
removeAll
in interface Set
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] arr)
toArray
in interface Collection
toArray
in interface Set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |