Class DynamicCalculatedAttributeSupport

java.lang.Object
io.jmix.dynmodel.impl.DynamicCalculatedAttributeSupport

@Component("dynmod_DynamicCalculatedAttributeSupport") public class DynamicCalculatedAttributeSupport extends Object
Runtime service for calculated dynamic attribute access and write protection.
  • Field Details

  • Constructor Details

    • DynamicCalculatedAttributeSupport

      public DynamicCalculatedAttributeSupport()
  • Method Details

    • getValue

      public @Nullable Object getValue(Object entity, String propertyName)
      Evaluates a calculated dynamic attribute on the supplied entity.
      Parameters:
      entity - entity instance
      propertyName - calculated property name
      Returns:
      calculated value, or null when evaluation fails or the property is not calculated
    • rejectWrite

      public void rejectWrite(MetaProperty property)
      Throws an access exception for attempts to write a calculated dynamic attribute.
      Parameters:
      property - calculated metadata property