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: 6.6.2.Final
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 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