Record Class LoadedValuesCollector.LoadedEntityRegistration

java.lang.Object
java.lang.Record
org.hibernate.sql.exec.spi.LoadedValuesCollector.LoadedEntityRegistration
All Implemented Interfaces:
LoadedValuesCollector.LoadedPartRegistration
Enclosing interface:
LoadedValuesCollector

public static record LoadedValuesCollector.LoadedEntityRegistration(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey, boolean reloaded) extends Record implements LoadedValuesCollector.LoadedPartRegistration
Details about a loaded entity.
  • Constructor Details

    • LoadedEntityRegistration

      public LoadedEntityRegistration(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey)
    • LoadedEntityRegistration

      public LoadedEntityRegistration(NavigablePath navigablePath, EntityMappingType entityDescriptor, EntityKey entityKey, boolean reloaded)
      Creates an instance of a LoadedEntityRegistration record class.
      Parameters:
      navigablePath - the value for the navigablePath record component
      entityDescriptor - the value for the entityDescriptor record component
      entityKey - the value for the entityKey record component
      reloaded - the value for the reloaded record component
  • Method Details

    • modelPart

      public EntityMappingType modelPart()
      Specified by:
      modelPart in interface LoadedValuesCollector.LoadedPartRegistration
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entityDescriptor

      public EntityMappingType entityDescriptor()
      Returns the value of the entityDescriptor record component.
      Returns:
      the value of the entityDescriptor record component
    • entityKey

      public EntityKey entityKey()
      Returns the value of the entityKey record component.
      Returns:
      the value of the entityKey record component
    • reloaded

      public boolean reloaded()
      Returns the value of the reloaded record component.
      Returns:
      the value of the reloaded record component