java.lang.Object
java.lang.Record
org.litebridge.orm.persistence.MappingPlanKey
- Record Components:
dtoClass- the target DTO classcontextDtoClass- the context DTO class, or nullrowStructureHash- the structural hash of the result row
public record MappingPlanKey(Class<?> dtoClass, @Nullable Class<?> contextDtoClass, int rowStructureHash)
extends Record
Cache key identifying a compiled mapping plan by target DTO class, context DTO class, and row structural hash.
-
Constructor Summary
ConstructorsConstructorDescriptionMappingPlanKey(Class<?> dtoClass, @Nullable Class<?> contextDtoClass, int rowStructureHash) Creates an instance of aMappingPlanKeyrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<?> Returns the value of thecontextDtoClassrecord component.Class<?> dtoClass()Returns the value of thedtoClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therowStructureHashrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MappingPlanKey
Creates an instance of aMappingPlanKeyrecord class.- Parameters:
dtoClass- the value for thedtoClassrecord componentcontextDtoClass- the value for thecontextDtoClassrecord componentrowStructureHash- the value for therowStructureHashrecord component
-
-
Method Details
-
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 '=='. -
dtoClass
Returns the value of thedtoClassrecord component.- Returns:
- the value of the
dtoClassrecord component
-
contextDtoClass
Returns the value of thecontextDtoClassrecord component.- Returns:
- the value of the
contextDtoClassrecord component
-
rowStructureHash
public int rowStructureHash()Returns the value of therowStructureHashrecord component.- Returns:
- the value of the
rowStructureHashrecord component
-