Record Class ModelReadException.Context
java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelReadException.Context
- Record Components:
operation- failing phasemodelId- requested or resolved Model identityrootId- Graph read root when knownmodelType- stored logical Model type when knownjavaModelType- known local Model class name when availableserializedType- original serialized type identifierserializedRevision- original serialized revisionregistration- local identifier lookup; never a claim about an upcaster chainstateIndex- failing event membership boundary, when knownunresolvedType- identifier that remained unknown after upcasting or within a nested state envelopeunresolvedRevision- 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 Summary
ConstructorsConstructorDescriptionContext(ModelReadException.Operation operation, String modelId, String rootId, String modelType, String javaModelType, String serializedType, Integer serializedRevision, TypeInspection registration, Long stateIndex, String unresolvedType, Integer unresolvedRevision) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaModelTyperecord component.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelTyperecord component.Returns the value of theoperationrecord component.Returns the value of theregistrationrecord component.rootId()Returns the value of therootIdrecord component.Returns the value of theserializedRevisionrecord component.Returns the value of theserializedTyperecord component.Returns the value of thestateIndexrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunresolvedRevisionrecord component.Returns the value of theunresolvedTyperecord component.
-
Constructor Details
-
Context
public Context(ModelReadException.Operation operation, String modelId, String rootId, String modelType, String javaModelType, String serializedType, Integer serializedRevision, TypeInspection registration, Long stateIndex, String unresolvedType, Integer unresolvedRevision) Creates an instance of aContextrecord class.- Parameters:
operation- the value for theoperationrecord componentmodelId- the value for themodelIdrecord componentrootId- the value for therootIdrecord componentmodelType- the value for themodelTyperecord componentjavaModelType- the value for thejavaModelTyperecord componentserializedType- the value for theserializedTyperecord componentserializedRevision- the value for theserializedRevisionrecord componentregistration- the value for theregistrationrecord componentstateIndex- the value for thestateIndexrecord componentunresolvedType- the value for theunresolvedTyperecord componentunresolvedRevision- the value for theunresolvedRevisionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
operation
-
modelId
-
rootId
-
modelType
-
javaModelType
Returns the value of thejavaModelTyperecord component.- Returns:
- the value of the
javaModelTyperecord component
-
serializedType
Returns the value of theserializedTyperecord component.- Returns:
- the value of the
serializedTyperecord component
-
serializedRevision
Returns the value of theserializedRevisionrecord component.- Returns:
- the value of the
serializedRevisionrecord component
-
registration
Returns the value of theregistrationrecord component.- Returns:
- the value of the
registrationrecord component
-
stateIndex
Returns the value of thestateIndexrecord component.- Returns:
- the value of the
stateIndexrecord component
-
unresolvedType
Returns the value of theunresolvedTyperecord component.- Returns:
- the value of the
unresolvedTyperecord component
-
unresolvedRevision
Returns the value of theunresolvedRevisionrecord component.- Returns:
- the value of the
unresolvedRevisionrecord component
-