org.babyfish.jimmer.sql.cache.CacheAbandonedCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
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;
}
}