Package io.jmix.restds.impl
Class StaticLoadedPropertiesInfo
java.lang.Object
io.jmix.restds.impl.StaticLoadedPropertiesInfo
- All Implemented Interfaces:
LoadedPropertiesInfo,Serializable
Implementation of
LoadedPropertiesInfo that stores names of loaded properties.
Used by default for DTO entities loaded by REST DataStore.
- See Also:
-
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
-
StaticLoadedPropertiesInfo
public StaticLoadedPropertiesInfo()
-
-
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
-