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

org.hibernate.boot.CacheRegionDefinition Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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 as found in either:
    *
  • {@code cfg.xml}
  • *
  • {@code hbm.xml}
  • *
  • annotation
  • *
* Though certainly other custom sources are acceptable too. * * @author Steve Ebersole */ public class CacheRegionDefinition { public static 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