public class DelayedHashSetProxy extends HashSet implements DelayedProxy, ProxyCollection
| Constructor and Description |
|---|
DelayedHashSetProxy() |
DelayedHashSetProxy(Collection<?> paramCollection) |
DelayedHashSetProxy(int paramInt) |
DelayedHashSetProxy(int paramInt,
float paramFloat) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object paramObject) |
boolean |
addAll(Collection paramCollection) |
void |
clear() |
Object |
clone() |
void |
closeBroker()
Close the broker that is used to service this proxy.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
copy(Object paramObject)
Return an unproxied copy of the given instance.
|
boolean |
equals(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.
|
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() |
Iterator |
iterator() |
void |
load()
Load the proxy if it was delay-loaded.
|
ProxyCollection |
newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type.
|
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() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
protected Object |
writeReplace() |
spliteratorfinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic DelayedHashSetProxy(Collection<?> paramCollection)
public DelayedHashSetProxy(int paramInt,
float paramFloat)
public DelayedHashSetProxy(int paramInt)
public DelayedHashSetProxy()
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
Proxypublic OpenJPAStateManager getOwner()
Proxypublic int getOwnerField()
ProxygetOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
ProxygetChangeTracker in interface Proxyprotected void setChangeTracker(CollectionChangeTracker ct)
public Object copy(Object paramObject)
Proxypublic Class getElementType()
ProxyCollectiongetElementType in interface ProxyCollectionprotected void setElementType(Class<?> elemType)
public ProxyCollection newInstance(Class paramClass, Comparator paramComparator, boolean paramBoolean1, boolean paramBoolean2)
ProxyCollectionnewInstance in interface ProxyCollectionpublic boolean add(Object paramObject)
public void clear()
public Iterator iterator()
public boolean remove(Object paramObject)
public boolean removeAll(Collection paramCollection)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic boolean addAll(Collection paramCollection)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionpublic boolean retainAll(Collection paramCollection)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionprotected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface SetcontainsAll in class AbstractCollectionpublic String toString()
toString in class AbstractCollectionpublic 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 AbstractSetpublic 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–2022 Apache Software Foundation. All rights reserved.