Project

General

Profile

Actions

task #7214

open

discuss unexpected method behaviors in CdmTransientEntityCacher

Added by Andreas Kohlbecker about 6 years ago. Updated about 5 years ago.

Status:
New
Priority:
Highest
Category:
cdmlib
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Tags:

Description

CdmTransientEntityCacher

 /**
     * Puts the passed <code>cdmEntity</code> into the cache as long it does not yet exist in the caches.
     * <p>
     * The adjacent <b>ENTITY GRAPH WILL NOT BE LOADED RECURSIVELY</b>
     */
    @Override
    public void put(CdmBase cdmEntity) {

CacheLoader

THIS IS OK!!! (see comment below)

    /**
     * Loads the {@link eu.etaxonomy.cdm.model.common.CdmBase cdmEntity}) in the
     * cache. 
     * <p>
     * <b>WARNING: Recursive updating of the cached entity will not take place 
     * in case there is a cached entity which is the same object as
     * <code>cdmEntity</code>.</b> 
     *
     * For in depth details on the mechanism see
     * {@link #loadRecursive(CdmBase, List, boolean)} and
     * {@link #getCdmBaseTypeFieldValue(CdmBase, CdmBase, String, List, boolean)}
     *
     * @param cdmEntity
     *            the entity to be put into the cache
     * @param recursive
     *            if <code>true</code>, the cache loader will load the whole
     *            entity graph recursively into the cache
     * @param update
     *            all fields of the cached entity will be overwritten by setting
     *            them to the value of the cdm entity being loaded
     */
    public <T extends CdmBase> T load(T cdmEntity, boolean recursive, boolean update) {
Actions

Also available in: Atom PDF