T - the type of the proxied itemspublic class CollectionObjectReference<T> extends AbstractReference implements ProxiedEntityReferenceList
ignoreMissing, object, referenceObjClass| Constructor and Description |
|---|
CollectionObjectReference(Collection<T> type,
Class<T> referenceObjClass,
boolean ignoreMissing,
Datastore datastore)
Creates a CollectionObjectReference
|
| Modifier and Type | Method and Description |
|---|---|
void |
__add(Key key) |
void |
__addAll(Collection<? extends Key<?>> keys) |
List<Key<?>> |
__getKeysAsList() |
protected void |
beforeWriteObject() |
protected Object |
fetch() |
__getReferenceObjClass, __isFetched, __unwrap, fetch, get, getDatastore, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait__getReferenceObjClass, __isFetched, __unwrappublic CollectionObjectReference(Collection<T> type, Class<T> referenceObjClass, boolean ignoreMissing, Datastore datastore)
type - the collectionreferenceObjClass - the Class of the referenced objectsignoreMissing - ignore missing referenced documentsdatastore - the Datastore to use when fetching this referencepublic void __add(Key key)
__add in interface ProxiedEntityReferenceListpublic void __addAll(Collection<? extends Key<?>> keys)
__addAll in interface ProxiedEntityReferenceListpublic List<Key<?>> __getKeysAsList()
__getKeysAsList in interface ProxiedEntityReferenceListprotected void beforeWriteObject()
beforeWriteObject in class AbstractReferenceprotected Object fetch()
fetch in class AbstractReference