Package io.jmix.core.impl
Class CorePersistentAttributesLoadChecker
java.lang.Object
io.jmix.core.impl.CorePersistentAttributesLoadChecker
- All Implemented Interfaces:
PersistentAttributesLoadChecker
- Direct Known Subclasses:
DataPersistentAttributesLoadChecker
@Component("core_PersistentAttributesLoadChecker")
public class CorePersistentAttributesLoadChecker
extends Object
implements PersistentAttributesLoadChecker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityStates.PropertyLoadedStatecheckIsLoadedWithGetter(Object entity, String property) booleanChecks whether the property is loaded from the data store.protected EntityStates.PropertyLoadedStateisLoadedByFetchGroup(Object entity, String property) protected EntityStates.PropertyLoadedStateisLoadedCommonCheck(Object entity, String property) isLoadedInternal(Object entity, String property, boolean safe) Checks whether thepropertyof theentityis loaded.isLoadedSafe(Object entity, String property) Checks whether the property is loaded from the data store without risking fetching it.protected EntityStates.PropertyLoadedStateisLoadedSpecificCheck(Object entity, String property, MetaClass metaClass, MetaProperty metaProperty, boolean safe) Checks whether thepropertyof theentityis loaded using store-specific mechanisms.
-
Field Details
-
metadataTools
-
metadata
-
-
Constructor Details
-
CorePersistentAttributesLoadChecker
public CorePersistentAttributesLoadChecker()
-
-
Method Details
-
isLoaded
Description copied from interface:PersistentAttributesLoadCheckerChecks whether the property is loaded from the data store. This may trigger fetching of the property if its state cannot be determined using standard JPA mechanisms.- Specified by:
isLoadedin interfacePersistentAttributesLoadChecker- See Also:
-
isLoadedInternal
public EntityStates.PropertyLoadedState isLoadedInternal(Object entity, String property, boolean safe) Checks whether thepropertyof theentityis loaded.- Parameters:
safe- determines the behavior when the loaded state cannot be determined using standard JPA mechanisms: iftrue,UNKNOWNis returned; iffalse, the getter is invoked, which may trigger lazy loading
-
isLoadedSafe
Description copied from interface:PersistentAttributesLoadCheckerChecks whether the property is loaded from the data store without risking fetching it.- Specified by:
isLoadedSafein interfacePersistentAttributesLoadChecker- See Also:
-
isLoadedCommonCheck
-
isLoadedByFetchGroup
-
isLoadedSpecificCheck
protected EntityStates.PropertyLoadedState isLoadedSpecificCheck(Object entity, String property, MetaClass metaClass, MetaProperty metaProperty, boolean safe) Checks whether thepropertyof theentityis loaded using store-specific mechanisms.- Parameters:
safe- determines the behavior when the loaded state cannot be determined using standard mechanisms: iftrue,UNKNOWNis returned; iffalse, the getter is invoked, which may trigger lazy loading
-
checkIsLoadedWithGetter
-