Package io.jmix.core.impl
Class ReferenceLoadedPropertiesInfo
java.lang.Object
io.jmix.core.impl.ReferenceLoadedPropertiesInfo
- All Implemented Interfaces:
LoadedPropertiesInfo,Serializable
@NullMarked
public class ReferenceLoadedPropertiesInfo
extends Object
implements LoadedPropertiesInfo
LoadedPropertiesInfo of an instance returned by
UnconstrainedDataManager.getReference(Class, Object). Reports as loaded only the primary key
and the properties set later (see ReferenceLoadedPropertiesInfo.MarkingLoadedOnSetListener). Never calls getters.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMarks a set property as loaded while the entity's info is aReferenceLoadedPropertiesInfo. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanisLoaded(Object entity, String property, PersistentAttributesLoadChecker checker) Checks whether the property is loaded from the data store.isLoadedSafe(Object entity, String property, PersistentAttributesLoadChecker checker) Checks whether the property is loaded from the data store without risking fetching it.voidregisterProperty(String name, boolean loaded)
-
Constructor Details
-
ReferenceLoadedPropertiesInfo
public ReferenceLoadedPropertiesInfo()
-
-
Method Details
-
isLoaded
Description copied from interface:LoadedPropertiesInfoChecks whether the property is loaded from the data store. This may trigger fetching of the property if its state cannot be determined using standard mechanisms.- Specified by:
isLoadedin interfaceLoadedPropertiesInfo- See Also:
-
isLoadedSafe
public EntityStates.PropertyLoadedState isLoadedSafe(Object entity, String property, PersistentAttributesLoadChecker checker) Description copied from interface:LoadedPropertiesInfoChecks whether the property is loaded from the data store without risking fetching it.- Specified by:
isLoadedSafein interfaceLoadedPropertiesInfo- See Also:
-
registerProperty
- Specified by:
registerPropertyin interfaceLoadedPropertiesInfo
-
copy
- Specified by:
copyin interfaceLoadedPropertiesInfo
-
getLoadedProperties
- Returns:
- names of the loaded properties
-