public class CacheLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ICdmCacher |
cdmCacher |
Constructor and Description |
---|
CacheLoader(ICdmCacher cdmCacher) |
Modifier and Type | Method and Description |
---|---|
CdmModelFieldPropertyFromClass |
getFromCdmlibModelCache(java.lang.String className) |
static boolean |
isRecursiveEnabled() |
<T> java.util.Collection<T> |
load(java.util.Collection<T> collection,
boolean recursive,
boolean update) |
<T> java.util.Map<T,T> |
load(java.util.Map<T,T> map,
boolean recursive,
boolean update) |
MergeResult<CdmBase> |
load(MergeResult<CdmBase> mergeResult,
boolean recursive,
boolean update) |
protected <T extends CdmBase> |
load(T cdmEntity) |
<T> T |
load(T obj,
boolean recursive,
boolean update) |
<T extends CdmBase> |
load(T cdmEntity,
boolean recursive,
boolean update)
Loads the
cdmEntity ) in the
cache. |
MergeResult<CdmBase> |
loadRecursive(MergeResult<CdmBase> mergeResult,
java.util.List<java.lang.Object> alreadyVisitedEntities,
boolean update) |
static void |
setRecursiveEnabled(boolean ire) |
protected final ICdmCacher cdmCacher
public CacheLoader(ICdmCacher cdmCacher)
public CdmModelFieldPropertyFromClass getFromCdmlibModelCache(java.lang.String className)
public <T> T load(T obj, boolean recursive, boolean update)
public <T> java.util.Map<T,T> load(java.util.Map<T,T> map, boolean recursive, boolean update)
public <T> java.util.Collection<T> load(java.util.Collection<T> collection, boolean recursive, boolean update)
public MergeResult<CdmBase> load(MergeResult<CdmBase> mergeResult, boolean recursive, boolean update)
public MergeResult<CdmBase> loadRecursive(MergeResult<CdmBase> mergeResult, java.util.List<java.lang.Object> alreadyVisitedEntities, boolean update)
public <T extends CdmBase> T load(T cdmEntity, boolean recursive, boolean update)
cdmEntity
) in the
cache.
WARNING: Recursive updating of the cached entity will not take place
in case there is a cached entity which is the same object as
cdmEntity
.
For in depth details on the mechanism see
loadRecursive(CdmBase, List, boolean)
and
getCdmBaseTypeFieldValue(CdmBase, CdmBase, String, List, boolean)
cdmEntity
- the entity to be put into the cacherecursive
- if true
, the cache loader will load the whole
entity graph recursively into the cacheupdate
- all fields of the cached entity will be overwritten by setting
them to the value of the cdm entity being loadedprotected <T extends CdmBase> T load(T cdmEntity)
public static boolean isRecursiveEnabled()
public static void setRecursiveEnabled(boolean ire)
Copyright © 2007-2020 EDIT. All Rights Reserved.