All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.babyfish.jimmer.sql.cache.CacheAbandonedCallback Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show newest version
package org.babyfish.jimmer.sql.cache;

import org.babyfish.jimmer.meta.ImmutableProp;

public interface CacheAbandonedCallback {

    void abandoned(ImmutableProp prop, Reason reason);

    enum Reason {

        /**
         * Associated objects are filtered by some filters,
         * but some filters are not cacheable filter.
         */
        CACHEABLE_FILTER_REQUIRED,

        /**
         * The method `getParameters()` of
         * cacheable filter or `getParameterMap()` of transient resolver
         * returns a map which is not empty,
         * but the cache is not parameterized.
         */
        PARAMETERIZED_CACHE_REQUIRED,

        /**
         * The field level filter of object fetcher is used
         */
        FIELD_FILTER_USED
    }

    static CacheAbandonedCallback log() {
        return CacheAbandonedCallbackForLog.INSTANCE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy