Class ValueHoldersSupport
java.lang.Object
io.jmix.eclipselink.impl.lazyloading.ValueHoldersSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetCollectionProperty(Object entity, String propertyName) static @Nullable ObjectgetCollectionPropertyOrNull(Object entity, String propertyName) static ObjectgetCollectionValueHolder(Object entity, String propertyName) static ObjectgetEntityIdFromValueHolder(org.eclipse.persistence.internal.indirection.QueryBasedValueHolder queryBasedValueHolder) static @Nullable ObjectgetSingleValueHolder(Object entity, String propertyName) Returns a value holder of the given single-value reference attribute, woven into the entity class by the enhancing process.static @Nullable ObjectgetSingleValueHolderOrNull(Object entity, String propertyName) static voidsetCollectionProperty(Object entity, String propertyName, Object value) static voidsetCollectionValueHolder(Object entity, String propertyName, Object valueHolder) static voidsetSingleValue(Object entity, String propertyName, Object valueHolder) static voidsetSingleValueHolder(Object entity, String propertyName, Object valueHolder) static org.eclipse.persistence.internal.indirection.QueryBasedValueHolderunwrapToQueryBasedValueHolder(Object valueHolder) static @Nullable ObjectunwrapToValueIfInstantiated(Object valueHolder)
-
Constructor Details
-
ValueHoldersSupport
public ValueHoldersSupport()
-
-
Method Details
-
getSingleValueHolder
Returns a value holder of the given single-value reference attribute, woven into the entity class by the enhancing process.Returns
nullif 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 withoutfetch = FetchType.LAZY). Such attributes are always loaded eagerly by the ORM and do not participate in lazy loading. -
getSingleValueHolderOrNull
-
setSingleValueHolder
-
setSingleValue
-
getCollectionProperty
-
getCollectionPropertyOrNull
-
setCollectionProperty
-
getCollectionValueHolder
-
setCollectionValueHolder
-
unwrapToQueryBasedValueHolder
public static org.eclipse.persistence.internal.indirection.QueryBasedValueHolder unwrapToQueryBasedValueHolder(Object valueHolder) -
unwrapToValueIfInstantiated
-
getEntityIdFromValueHolder
public static Object getEntityIdFromValueHolder(org.eclipse.persistence.internal.indirection.QueryBasedValueHolder queryBasedValueHolder)
-