public interface LazyProxyFactory
| Modifier and Type | Method and Description |
|---|---|
<T extends Collection> |
createListProxy(Datastore datastore,
T listToProxy,
Class referenceObjClass,
boolean ignoreMissing)
Creates a proxy for a List.
|
<T extends Map> |
createMapProxy(Datastore datastore,
T mapToProxy,
Class referenceObjClass,
boolean ignoreMissing)
Creates a proxy for a Map.
|
<T> T |
createProxy(Datastore datastore,
Class<T> targetClass,
Key<T> key)
Creates a proxy for a Class.
|
<T extends Collection> T createListProxy(Datastore datastore, T listToProxy, Class referenceObjClass, boolean ignoreMissing)
T - the type of the entitiesdatastore - the Datastore to use when fetching this referencelistToProxy - the list to proxyreferenceObjClass - the type of the referenced objectsignoreMissing - ignore references that don't exist in the database<T extends Map> T createMapProxy(Datastore datastore, T mapToProxy, Class referenceObjClass, boolean ignoreMissing)
T - the type of the entitiesdatastore - the Datastore to use when fetching this referencemapToProxy - the map to proxyreferenceObjClass - the type of the referenced objectsignoreMissing - ignore references that don't exist in the database<T> T createProxy(Datastore datastore, Class<T> targetClass, Key<T> key)
T - the type of the entitydatastore - the Datastore to use when fetching this referencetargetClass - the referenced object's Classkey - the Key of the reference