Interface AttributeMapping

    • Method Detail

      • getAttributeName

        String getAttributeName()
        The name of the mapped attribute
      • getStateArrayPosition

        int getStateArrayPosition()
        The attribute's position within the container's state array
      • getDeclaringType

        ManagedMappingType getDeclaringType()
        The managed type that declares this attribute
      • getValue

        default Object getValue​(Object container)
        Convenient access to getting the value for this attribute from the declarer
      • setValue

        default void setValue​(Object container,
                              Object value)
        Convenient access to setting the value for this attribute on the declarer
      • getValueGeneration

        ValueGeneration getValueGeneration()
        The value generation strategy to use for this attribute.
      • asPluralAttributeMapping

        default PluralAttributeMapping asPluralAttributeMapping()
        A utility method to avoid casting explicitly to PluralAttributeMapping
        PluralAttributeMapping if this is an instance of PluralAttributeMapping otherwise null
      • isPluralAttributeMapping

        default boolean isPluralAttributeMapping()
      • asEmbeddedAttributeMapping

        default EmbeddedAttributeMapping asEmbeddedAttributeMapping()
        A utility method to avoid casting explicitly to EmbeddedAttributeMapping
        EmbeddedAttributeMapping if this is an instance of EmbeddedAttributeMapping otherwise null
      • isEmbeddedAttributeMapping

        default boolean isEmbeddedAttributeMapping()