org.babyfish.jimmer.sql.cache.AbstractCacheFactory 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;
public abstract class AbstractCacheFactory implements FilterStateAwareCacheFactory {
private FilterState filterState;
/**
* This method is invoked by Jimmer, it can be ignored by user.
* @param filterState
*/
@Override
public void setFilterState(FilterState filterState) {
this.filterState = filterState;
}
/**
* Get the filter state object which can help you to simply your code.
* @return The filter state which can tell you whether an entity type is affected by global filters.
*/
protected final FilterState getFilterState() {
return filterState;
}
}