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

org.babyfish.jimmer.sql.cache.Caches 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;
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 - 2024 Weber Informatics LLC | Privacy Policy