Class ValueHoldersSupport

java.lang.Object
io.jmix.eclipselink.impl.lazyloading.ValueHoldersSupport

public class ValueHoldersSupport extends Object
  • Constructor Details

    • ValueHoldersSupport

      public ValueHoldersSupport()
  • Method Details

    • getSingleValueHolder

      public static @Nullable Object getSingleValueHolder(Object entity, String propertyName)
      Returns a value holder of the given single-value reference attribute, woven into the entity class by the enhancing process.

      Returns null if no value holder field is woven for the attribute, which means the attribute was not lazy at enhancing time (e.g. a @OneToOne(mappedBy = ...) attribute declared without fetch = FetchType.LAZY). Such attributes are always loaded eagerly by the ORM and do not participate in lazy loading.

    • getSingleValueHolderOrNull

      public static @Nullable Object getSingleValueHolderOrNull(Object entity, String propertyName)
    • setSingleValueHolder

      public static void setSingleValueHolder(Object entity, String propertyName, Object valueHolder)
    • setSingleValue

      public static void setSingleValue(Object entity, String propertyName, Object valueHolder)
    • getCollectionProperty

      public static Object getCollectionProperty(Object entity, String propertyName)
    • getCollectionPropertyOrNull

      public static @Nullable Object getCollectionPropertyOrNull(Object entity, String propertyName)
    • setCollectionProperty

      public static void setCollectionProperty(Object entity, String propertyName, Object value)
    • getCollectionValueHolder

      public static Object getCollectionValueHolder(Object entity, String propertyName)
    • setCollectionValueHolder

      public static void setCollectionValueHolder(Object entity, String propertyName, Object valueHolder)
    • unwrapToQueryBasedValueHolder

      public static org.eclipse.persistence.internal.indirection.QueryBasedValueHolder unwrapToQueryBasedValueHolder(Object valueHolder)
    • unwrapToValueIfInstantiated

      public static @Nullable Object unwrapToValueIfInstantiated(Object valueHolder)
    • getEntityIdFromValueHolder

      public static Object getEntityIdFromValueHolder(org.eclipse.persistence.internal.indirection.QueryBasedValueHolder queryBasedValueHolder)