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.xml
hbm.xml
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCacheRegionDefinition
(CacheRegionDefinition.CacheRegionType regionType, String role, String usage, String region, boolean cacheLazy) Creates an instance of aCacheRegionDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecacheLazy
record component.final boolean
Indicates whether some other object is "equal to" this one.Deprecated.Deprecated.getRole()
Deprecated.getUsage()
Deprecated.final int
hashCode()
Returns a hash code value for this object.boolean
Deprecated.region()
Returns the value of theregion
record component.Returns the value of theregionType
record component.role()
Returns the value of therole
record component.final String
toString()
Returns a string representation of this record class.usage()
Returns the value of theusage
record component.
-
Constructor Details
-
CacheRegionDefinition
public CacheRegionDefinition(CacheRegionDefinition.CacheRegionType regionType, String role, String usage, String region, boolean cacheLazy) Creates an instance of aCacheRegionDefinition
record class.- Parameters:
regionType
- the value for theregionType
record componentrole
- the value for therole
record componentusage
- the value for theusage
record componentregion
- the value for theregion
record componentcacheLazy
- the value for thecacheLazy
record 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 theregionType
record component.- Returns:
- the value of the
regionType
record component
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
usage
Returns the value of theusage
record component.- Returns:
- the value of the
usage
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
cacheLazy
public boolean cacheLazy()Returns the value of thecacheLazy
record component.- Returns:
- the value of the
cacheLazy
record component
-