Enum Class ModelIdResolution

java.lang.Object
java.lang.Enum<ModelIdResolution>
io.fluxzero.sdk.persisting.repository.ModelIdResolution
All Implemented Interfaces:
Serializable, Comparable<ModelIdResolution>, Constable

public enum ModelIdResolution extends Enum<ModelIdResolution>
Identity policy for repository Graph resolution; normalization and alias lookup are independent choices.
  • Enum Constant Details

    • FUNCTIONAL

      public static final ModelIdResolution FUNCTIONAL
      Apply the model's ID conversion and affixes, retaining alias resolution.
    • LITERAL

      public static final ModelIdResolution LITERAL
      Use the supplied string representation unchanged, retaining alias resolution.
    • EXACT

      public static final ModelIdResolution EXACT
      Retain an already resolved canonical identity without redirecting it through aliases.
  • Method Details

    • values

      public static ModelIdResolution[] 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

      public static ModelIdResolution valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • primaryId

      public String primaryId(Object id, Class<?> type)
      Selects the primary repository key before alias lookup.
    • exact

      public boolean exact()
      Whether alias resolution must be suppressed.
    • ofExact

      public static ModelIdResolution ofExact(boolean exact)
      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.