org.babyfish.jimmer.sql.cache.Caches 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;
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);
}