Enum Class ModelIdResolution
- All Implemented Interfaces:
Serializable, Comparable<ModelIdResolution>, Constable
Identity policy for repository Graph resolution; normalization and alias lookup are independent choices.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRetain an already resolved canonical identity without redirecting it through aliases.Apply the model's ID conversion and affixes, retaining alias resolution.Use the supplied string representation unchanged, retaining alias resolution. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexact()Whether alias resolution must be suppressed.loadValue(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary) Dispatches source value reads while retaining existing extension methods.loadValue(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary, boolean historical) Dispatches pinned value reads while retaining existing extension methods.static ModelIdResolutionofExact(boolean exact) Converts the legacy exact-identity flag without changing its meaning.Selects the primary repository key before alias lookup.resolveIdentity(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary) Dispatches existing policies through the original extension methods.resolveIdentity(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary, boolean historical) Dispatches pinned identity reads while retaining existing extension methods.static ModelIdResolutionReturns the enum constant of this class with the specified name.static ModelIdResolution[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FUNCTIONAL
Apply the model's ID conversion and affixes, retaining alias resolution. -
LITERAL
Use the supplied string representation unchanged, retaining alias resolution. -
EXACT
Retain an already resolved canonical identity without redirecting it through aliases.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
-
exact
public boolean exact()Whether alias resolution must be suppressed. -
ofExact
Converts the legacy exact-identity flag without changing its meaning. -
resolveIdentity
public ModelGraphResolver.Identity resolveIdentity(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary) Dispatches existing policies through the original extension methods. -
resolveIdentity
public ModelGraphResolver.Identity resolveIdentity(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary, boolean historical) Dispatches pinned identity reads while retaining existing extension methods. -
loadValue
public ModelGraphResolver.Value loadValue(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary) Dispatches source value reads while retaining existing extension methods. -
loadValue
public ModelGraphResolver.Value loadValue(ModelGraphResolver resolver, Object id, Class<?> type, ModelReadBoundary boundary, boolean historical) Dispatches pinned value reads while retaining existing extension methods.
-