Record Class ModelReadException.Context

java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelReadException.Context
Record Components:
operation - failing phase
modelId - requested or resolved Model identity
rootId - Graph read root when known
modelType - stored logical Model type when known
javaModelType - known local Model class name when available
serializedType - original serialized type identifier
serializedRevision - original serialized revision
registration - local identifier lookup; never a claim about an upcaster chain
stateIndex - failing event membership boundary, when known
unresolvedType - identifier that remained unknown after upcasting or within a nested state envelope
unresolvedRevision - revision of that unresolved representation
Enclosing class:
ModelReadException

public static record ModelReadException.Context(ModelReadException.Operation operation, String modelId, String rootId, String modelType, String javaModelType, String serializedType, Integer serializedRevision, TypeInspection registration, Long stateIndex, String unresolvedType, Integer unresolvedRevision) extends Record
Safe structural context; null means unavailable, not absent data.
  • Constructor Details

  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • operation

      public ModelReadException.Operation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • rootId

      public String rootId()
      Returns the value of the rootId record component.
      Returns:
      the value of the rootId record component
    • modelType

      public String modelType()
      Returns the value of the modelType record component.
      Returns:
      the value of the modelType record component
    • javaModelType

      public String javaModelType()
      Returns the value of the javaModelType record component.
      Returns:
      the value of the javaModelType record component
    • serializedType

      public String serializedType()
      Returns the value of the serializedType record component.
      Returns:
      the value of the serializedType record component
    • serializedRevision

      public Integer serializedRevision()
      Returns the value of the serializedRevision record component.
      Returns:
      the value of the serializedRevision record component
    • registration

      public TypeInspection registration()
      Returns the value of the registration record component.
      Returns:
      the value of the registration record component
    • stateIndex

      public Long stateIndex()
      Returns the value of the stateIndex record component.
      Returns:
      the value of the stateIndex record component
    • unresolvedType

      public String unresolvedType()
      Returns the value of the unresolvedType record component.
      Returns:
      the value of the unresolvedType record component
    • unresolvedRevision

      public Integer unresolvedRevision()
      Returns the value of the unresolvedRevision record component.
      Returns:
      the value of the unresolvedRevision record component