public abstract class AbstractProxyBase extends Object implements ProxyCollection
Collection interface and Map interface| Modifier and Type | Field and Description |
|---|---|
protected Object |
dataCollection |
private PersistenceDelegator |
delegator |
private Object |
owner |
private Relation |
relation |
private Map<String,Object> |
relationsMap |
| Constructor and Description |
|---|
AbstractProxyBase() |
AbstractProxyBase(PersistenceDelegator delegator,
Relation relation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eagerlyLoadDataCollection() |
Object |
getOwner()
Returns owning entity that holds this proxy collection
|
PersistenceDelegator |
getPersistenceDelegator()
Returns instance of
PersistenceDelegator which is required for
eagerly loading associated collection at the time it is requested |
Relation |
getRelation()
Instance of
Relation corresponding to this proxy collection |
Map<String,Object> |
getRelationsMap()
Retrieves
Map of Relation name and values required for eagerly
fetching this proxy collection at the time it is requested |
void |
setOwner(Object owner)
Sets owning entity that holds this collection for later use while eagerly
loading
|
void |
setRelationsMap(Map<String,Object> relationsMap)
Sets
Map of Relation name and values required for eagerly
fetching this proxy collection at the time it is requested |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCopy, getDataCollectionprivate PersistenceDelegator delegator
private Object owner
private Relation relation
protected Object dataCollection
public AbstractProxyBase()
public AbstractProxyBase(PersistenceDelegator delegator, Relation relation)
delegator - public Object getOwner()
ProxyCollectiongetOwner in interface ProxyCollectionpublic void setOwner(Object owner)
ProxyCollectionsetOwner in interface ProxyCollectionpublic PersistenceDelegator getPersistenceDelegator()
ProxyCollectionPersistenceDelegator which is required for
eagerly loading associated collection at the time it is requestedgetPersistenceDelegator in interface ProxyCollectionpublic Map<String,Object> getRelationsMap()
ProxyCollectionMap of Relation name and values required for eagerly
fetching this proxy collection at the time it is requestedgetRelationsMap in interface ProxyCollectionpublic void setRelationsMap(Map<String,Object> relationsMap)
ProxyCollectionMap of Relation name and values required for eagerly
fetching this proxy collection at the time it is requestedsetRelationsMap in interface ProxyCollectionpublic Relation getRelation()
ProxyCollectionRelation corresponding to this proxy collectiongetRelation in interface ProxyCollectionprotected void eagerlyLoadDataCollection()
Copyright © 2015. All Rights Reserved.