
org.babyfish.jimmer.sql.cache.Caches Maven / Gradle / Ivy
package org.babyfish.jimmer.sql.cache;
import org.babyfish.jimmer.meta.ImmutableProp;
import org.babyfish.jimmer.meta.ImmutableType;
import org.babyfish.jimmer.meta.TypedProp;
import org.babyfish.jimmer.sql.event.DatabaseEvent;
import org.jetbrains.annotations.Nullable;
public interface Caches {
@Nullable
default Cache getObjectCache(Class type) {
return getObjectCache(ImmutableType.get(type));
}
@Nullable
Cache getObjectCache(ImmutableType type);
@Nullable
default Cache getPropertyCache(TypedProp, ?> prop) {
return getPropertyCache(prop.unwrap());
}
@Nullable
Cache getPropertyCache(ImmutableProp prop);
CacheAbandonedCallback getAbandonedCallback();
boolean isAffectedBy(DatabaseEvent e);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy