public class DelayedPriorityQueueProxy extends java.util.PriorityQueue implements ProxyCollection, DelayedProxy
| Constructor and Description |
|---|
DelayedPriorityQueueProxy() |
DelayedPriorityQueueProxy(java.util.Collection paramCollection) |
DelayedPriorityQueueProxy(int paramInt) |
DelayedPriorityQueueProxy(int paramInt,
java.util.Comparator paramComparator) |
DelayedPriorityQueueProxy(java.util.PriorityQueue paramPriorityQueue) |
DelayedPriorityQueueProxy(java.util.SortedSet paramSortedSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object paramObject) |
boolean |
addAll(java.util.Collection paramCollection) |
void |
clear() |
java.lang.Object |
clone() |
void |
closeBroker()
Close the broker that is used to service this proxy.
|
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection c) |
java.lang.Object |
copy(java.lang.Object paramObject)
Return an unproxied copy of the given instance.
|
java.lang.Object |
element() |
boolean |
equals(java.lang.Object paramObject) |
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.
|
java.lang.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() |
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() |
java.util.Iterator |
iterator() |
void |
load()
Load the proxy if it was delay-loaded.
|
ProxyCollection |
newInstance(java.lang.Class paramClass,
java.util.Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type.
|
boolean |
offer(java.lang.Object paramObject) |
java.lang.Object |
peek() |
java.lang.Object |
poll() |
java.lang.Object |
remove() |
boolean |
remove(java.lang.Object paramObject) |
boolean |
removeAll(java.util.Collection paramCollection) |
boolean |
retainAll(java.util.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(java.lang.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() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] array) |
protected java.lang.Object |
writeReplace() |
public DelayedPriorityQueueProxy(int paramInt)
public DelayedPriorityQueueProxy(int paramInt,
java.util.Comparator paramComparator)
public DelayedPriorityQueueProxy(java.util.Collection paramCollection)
public DelayedPriorityQueueProxy(java.util.PriorityQueue paramPriorityQueue)
public DelayedPriorityQueueProxy(java.util.SortedSet paramSortedSet)
public DelayedPriorityQueueProxy()
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
Proxypublic OpenJPAStateManager getOwner()
Proxypublic int getOwnerField()
ProxygetOwnerField in interface Proxypublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic ChangeTracker getChangeTracker()
ProxygetChangeTracker in interface Proxyprotected void setChangeTracker(CollectionChangeTracker ct)
public java.lang.Object copy(java.lang.Object paramObject)
Proxypublic java.lang.Class getElementType()
ProxyCollectiongetElementType in interface ProxyCollectionprotected void setElementType(java.lang.Class<?> elemType)
public ProxyCollection newInstance(java.lang.Class paramClass, java.util.Comparator paramComparator, boolean paramBoolean1, boolean paramBoolean2)
ProxyCollectionnewInstance in interface ProxyCollectionpublic boolean add(java.lang.Object paramObject)
add in interface java.util.Collectionadd in interface java.util.Queueadd in class java.util.PriorityQueuepublic void clear()
clear in interface java.util.Collectionclear in class java.util.PriorityQueuepublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in class java.util.PriorityQueuepublic boolean remove(java.lang.Object paramObject)
remove in interface java.util.Collectionremove in class java.util.PriorityQueuepublic java.lang.Object poll()
poll in interface java.util.Queuepoll in class java.util.PriorityQueuepublic boolean offer(java.lang.Object paramObject)
offer in interface java.util.Queueoffer in class java.util.PriorityQueuepublic boolean addAll(java.util.Collection paramCollection)
addAll in interface java.util.CollectionaddAll in class java.util.AbstractQueuepublic java.lang.Object remove()
remove in interface java.util.Queueremove in class java.util.AbstractQueuepublic boolean removeAll(java.util.Collection paramCollection)
removeAll in interface java.util.CollectionremoveAll in class java.util.AbstractCollectionpublic boolean retainAll(java.util.Collection paramCollection)
retainAll in interface java.util.CollectionretainAll in class java.util.AbstractCollectionprotected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic int size()
size in interface java.util.Collectionsize in class java.util.PriorityQueuepublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in class java.util.AbstractCollectionpublic boolean contains(java.lang.Object object)
contains in interface java.util.Collectioncontains in class java.util.PriorityQueuepublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in class java.util.PriorityQueuepublic java.lang.Object[] toArray(java.lang.Object[] array)
toArray in interface java.util.CollectiontoArray in class java.util.PriorityQueuepublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in class java.util.AbstractCollectionpublic java.lang.Object element()
element in interface java.util.Queueelement in class java.util.AbstractQueuepublic java.lang.Object peek()
peek in interface java.util.Queuepeek in class java.util.PriorityQueuepublic boolean equals(java.lang.Object paramObject)
equals in interface java.util.Collectionequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in class java.lang.Objectpublic int getDelayedField()
DelayedProxygetDelayedField in interface DelayedProxypublic OpenJPAStateManager getDelayedOwner()
DelayedProxygetDelayedOwner in interface DelayedProxypublic boolean isDirectAccess()
DelayedProxyisDirectAccess in interface DelayedProxypublic void setDirectAccess(boolean direct)
DelayedProxysetDirectAccess in interface DelayedProxypublic BrokerFactory getBrokerFactory()
public void load()
DelayedProxyload in interface DelayedProxypublic Broker getBroker()
DelayedProxygetBroker in interface DelayedProxypublic void closeBroker()
DelayedProxycloseBroker in interface DelayedProxypublic OpenJPAStateManager getOwnerStateManager()
DelayedProxygetOwnerStateManager in interface DelayedProxypublic boolean isDetached()
DelayedProxyisDetached in interface DelayedProxypublic boolean isDelayLoad()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.