Package org.hibernate.boot
Record Class CacheRegionDefinition
java.lang.Object
java.lang.Record
org.hibernate.boot.CacheRegionDefinition
public record CacheRegionDefinition(CacheRegionDefinition.CacheRegionType regionType, String role, String usage, String region, boolean cacheLazy)
extends Record
Models the definition of caching settings for a particular region. Generally found in:
cfg.xml- annotations
orm.xmlhbm.xml
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCacheRegionDefinition(CacheRegionDefinition.CacheRegionType regionType, String role, String usage, String region, boolean cacheLazy) Creates an instance of aCacheRegionDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecacheLazyrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated.Deprecated.getRole()Deprecated.getUsage()Deprecated.final inthashCode()Returns a hash code value for this object.booleanDeprecated.region()Returns the value of theregionrecord component.Returns the value of theregionTyperecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
CacheRegionDefinition
public CacheRegionDefinition(CacheRegionDefinition.CacheRegionType regionType, String role, String usage, String region, boolean cacheLazy) Creates an instance of aCacheRegionDefinitionrecord class.- Parameters:
regionType- the value for theregionTyperecord componentrole- the value for therolerecord componentusage- the value for theusagerecord componentregion- the value for theregionrecord componentcacheLazy- the value for thecacheLazyrecord component
-
-
Method Details
-
getRegionType
Deprecated. -
getRole
Deprecated. -
getUsage
Deprecated. -
getRegion
Deprecated. -
isCacheLazy
Deprecated. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
regionType
Returns the value of theregionTyperecord component.- Returns:
- the value of the
regionTyperecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
cacheLazy
public boolean cacheLazy()Returns the value of thecacheLazyrecord component.- Returns:
- the value of the
cacheLazyrecord component
-