|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet
org.apache.openjpa.util.DelayedTreeSetProxy
public class DelayedTreeSetProxy
TreeSet proxy with delay loading capability. Allows non-indexed add and remove operations to occur on an unloaded collection. Operations that require a load will trigger a load.
| Constructor Summary | |
|---|---|
DelayedTreeSetProxy()
|
|
DelayedTreeSetProxy(Collection paramCollection)
|
|
DelayedTreeSetProxy(Comparator paramComparator)
|
|
DelayedTreeSetProxy(SortedSet paramSortedSet)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object paramObject)
|
boolean |
addAll(Collection paramCollection)
|
Object |
ceiling(Object e)
|
void |
clear()
|
Object |
clone()
|
void |
closeBroker()
Close the broker that is used to service this proxy. |
Comparator |
comparator()
|
boolean |
contains(Object object)
|
boolean |
containsAll(Collection c)
|
Object |
copy(Object paramObject)
Return an unproxied copy of the given instance. |
Iterator |
descendingIterator()
|
NavigableSet |
descendingSet()
|
boolean |
equals(Object paramObject)
|
Object |
first()
|
Object |
floor(Object e)
|
Broker |
getBroker()
Get the broker that is used to service this proxy. |
BrokerFactory |
getBrokerFactory()
|
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
int |
getDelayedField()
Returns the expected field index even if this collection was detached. |
OpenJPAStateManager |
getDelayedOwner()
Returns a state manager that can service this proxy even if the collection was detached. |
Class |
getElementType()
The collection element type. |
OpenJPAStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
OpenJPAStateManager |
getOwnerStateManager()
Returns the state manager of the owning instance. |
int |
hashCode()
|
SortedSet |
headSet(Object toElement)
|
NavigableSet |
headSet(Object toElement,
boolean inclusive)
|
Object |
higher(Object e)
|
boolean |
isDelayLoad()
|
boolean |
isDetached()
Returns whether the proxy is detached. |
boolean |
isDirectAccess()
Returns whether the caller has direct-call access to the proxied object. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
Object |
last()
|
void |
load()
Load the proxy if it was delay-loaded. |
Object |
lower(Object e)
|
ProxyCollection |
newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type. |
Object |
pollFirst()
|
Object |
pollLast()
|
boolean |
remove(Object paramObject)
|
boolean |
removeAll(Collection paramCollection)
|
boolean |
retainAll(Collection paramCollection)
|
protected void |
setChangeTracker(CollectionChangeTracker ct)
|
void |
setDirectAccess(boolean direct)
Sets whether the caller has direct-call access to the proxied object. |
protected void |
setElementType(Class<?> elemType)
|
void |
setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. |
int |
size()
|
NavigableSet |
subSet(Object fromElement,
boolean fromInclusive,
Object toElement,
boolean toInclusive)
|
SortedSet |
subSet(Object fromElement,
Object toElement)
|
SortedSet |
tailSet(Object fromElement)
|
NavigableSet |
tailSet(Object fromElement,
boolean inclusive)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
protected Object |
writeReplace()
|
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelayedTreeSetProxy()
public DelayedTreeSetProxy(Comparator paramComparator)
public DelayedTreeSetProxy(Collection paramCollection)
public DelayedTreeSetProxy(SortedSet paramSortedSet)
| Method Detail |
|---|
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Proxy
setOwner in interface Proxypublic OpenJPAStateManager getOwner()
Proxy
getOwner in interface Proxypublic int getOwnerField()
Proxy
getOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
Proxy
getChangeTracker in interface Proxyprotected void setChangeTracker(CollectionChangeTracker ct)
public Object copy(Object paramObject)
Proxy
copy in interface Proxypublic Class getElementType()
ProxyCollection
getElementType in interface ProxyCollectionprotected void setElementType(Class<?> elemType)
public ProxyCollection newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
ProxyCollection
newInstance in interface ProxyCollectionpublic Object clone()
clone in class TreeSet
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionpublic int getDelayedField()
DelayedProxy
getDelayedField in interface DelayedProxypublic OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner in interface DelayedProxypublic boolean isDirectAccess()
DelayedProxy
isDirectAccess in interface DelayedProxypublic void setDirectAccess(boolean direct)
DelayedProxy
setDirectAccess in interface DelayedProxypublic BrokerFactory getBrokerFactory()
public void load()
DelayedProxy
load in interface DelayedProxypublic Broker getBroker()
DelayedProxy
getBroker in interface DelayedProxypublic void closeBroker()
DelayedProxy
closeBroker in interface DelayedProxypublic OpenJPAStateManager getOwnerStateManager()
DelayedProxy
getOwnerStateManager in interface DelayedProxypublic boolean isDetached()
DelayedProxy
isDetached in interface DelayedProxypublic boolean isDelayLoad()
public void clear()
clear in interface Collectionclear in interface Setclear in class TreeSetpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface NavigableSetiterator in interface Setiterator in class TreeSetpublic boolean remove(Object paramObject)
remove in interface Collectionremove in interface Setremove in class TreeSetpublic int size()
size in interface Collectionsize in interface Setsize in class TreeSetpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class TreeSetpublic boolean contains(Object object)
contains in interface Collectioncontains in interface Setcontains in class TreeSetpublic Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] array)
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Comparator comparator()
comparator in interface SortedSetcomparator in class TreeSetpublic Object first()
first in interface SortedSetfirst in class TreeSetpublic Object last()
last in interface SortedSetlast in class TreeSetpublic boolean add(Object paramObject)
add in interface Collectionadd in interface Setadd in class TreeSetpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface SetcontainsAll in class AbstractCollectionpublic boolean addAll(Collection paramCollection)
addAll in interface CollectionaddAll in interface SetaddAll in class TreeSetpublic boolean retainAll(Collection paramCollection)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionpublic boolean removeAll(Collection paramCollection)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic Object lower(Object e)
lower in interface NavigableSetlower in class TreeSetpublic Object floor(Object e)
floor in interface NavigableSetfloor in class TreeSetpublic Object ceiling(Object e)
ceiling in interface NavigableSetceiling in class TreeSetpublic Object higher(Object e)
higher in interface NavigableSethigher in class TreeSetpublic Object pollFirst()
pollFirst in interface NavigableSetpollFirst in class TreeSetpublic Object pollLast()
pollLast in interface NavigableSetpollLast in class TreeSetpublic NavigableSet descendingSet()
descendingSet in interface NavigableSetdescendingSet in class TreeSetpublic Iterator descendingIterator()
descendingIterator in interface NavigableSetdescendingIterator in class TreeSet
public NavigableSet subSet(Object fromElement,
boolean fromInclusive,
Object toElement,
boolean toInclusive)
subSet in interface NavigableSetsubSet in class TreeSet
public NavigableSet headSet(Object toElement,
boolean inclusive)
headSet in interface NavigableSetheadSet in class TreeSet
public NavigableSet tailSet(Object fromElement,
boolean inclusive)
tailSet in interface NavigableSettailSet in class TreeSet
public SortedSet subSet(Object fromElement,
Object toElement)
subSet in interface NavigableSetsubSet in interface SortedSetsubSet in class TreeSetpublic SortedSet headSet(Object toElement)
headSet in interface NavigableSetheadSet in interface SortedSetheadSet in class TreeSetpublic SortedSet tailSet(Object fromElement)
tailSet in interface NavigableSettailSet in interface SortedSettailSet in class TreeSetpublic boolean equals(Object paramObject)
equals in interface Collectionequals in interface Setequals in class AbstractSetpublic int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in class AbstractSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||