org.hibernate.boot.CacheRegionDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.boot;
/**
* Models the definition of caching settings for a particular region. Generally found in:
* - {@code cfg.xml}
* - annotations
* - {@code orm.xml}
* - {@code hbm.xml}
*
*
* @author Steve Ebersole
*/
public class CacheRegionDefinition {
public enum CacheRegionType {
ENTITY,
COLLECTION,
QUERY
}
private final CacheRegionType regionType;
private final String role;
private final String usage;
private final String region;
private final boolean cacheLazy;
public CacheRegionDefinition(
CacheRegionType cacheType,
String role,
String usage,
String region,
boolean cacheLazy) {
this.regionType = cacheType;
this.role = role;
this.usage = usage;
this.region = region;
this.cacheLazy = cacheLazy;
}
public CacheRegionType getRegionType() {
return regionType;
}
public String getRole() {
return role;
}
public String getUsage() {
return usage;
}
public String getRegion() {
return region;
}
public boolean isCacheLazy() {
return cacheLazy;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy