Record Class EntityMetadata.ModelParameter

java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.ModelParameter
Record Components:
associationProperty - explicit payload/metadata property qualifier, or null for automatic matching
associationExcludeMetadata - whether the explicit qualifier must ignore message metadata
Enclosing class:
EntityMetadata

public static record EntityMetadata.ModelParameter(Parameter parameter, Class<?> modelType, boolean entityWrapped, boolean graphWrapped, boolean collectionWrapped, String associationProperty, boolean associationExcludeMetadata) extends Record
A model value, Entity<Model>, Graph<Model> or ordered graph collection parameter needed by a handler.
  • Constructor Details

    • ModelParameter

      public ModelParameter(Parameter parameter, Class<?> modelType, boolean entityWrapped, boolean graphWrapped, boolean collectionWrapped, String associationProperty, boolean associationExcludeMetadata)
      Creates an instance of a ModelParameter record class.
      Parameters:
      parameter - the value for the parameter record component
      modelType - the value for the modelType record component
      entityWrapped - the value for the entityWrapped record component
      graphWrapped - the value for the graphWrapped record component
      collectionWrapped - the value for the collectionWrapped record component
      associationProperty - the value for the associationProperty record component
      associationExcludeMetadata - the value for the associationExcludeMetadata record component
  • 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. 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.
    • parameter

      public Parameter parameter()
      Returns the value of the parameter record component.
      Returns:
      the value of the parameter record component
    • modelType

      public Class<?> modelType()
      Returns the value of the modelType record component.
      Returns:
      the value of the modelType record component
    • entityWrapped

      public boolean entityWrapped()
      Returns the value of the entityWrapped record component.
      Returns:
      the value of the entityWrapped record component
    • graphWrapped

      public boolean graphWrapped()
      Returns the value of the graphWrapped record component.
      Returns:
      the value of the graphWrapped record component
    • collectionWrapped

      public boolean collectionWrapped()
      Returns the value of the collectionWrapped record component.
      Returns:
      the value of the collectionWrapped record component
    • associationProperty

      public String associationProperty()
      Returns the value of the associationProperty record component.
      Returns:
      the value of the associationProperty record component
    • associationExcludeMetadata

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