Package io.jmix.datatools
Class EntityInspectorSupport
java.lang.Object
io.jmix.datatools.EntityInspectorSupport
@NullMarked
@Component("datatl_EntityInspectorSupport")
public class EntityInspectorSupport
extends Object
Decides which entities and properties the entity inspector can work with, based on their data
store rather than on JPA annotations, so that entities of non-JPA stores are supported.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the entities the inspector can browse: JPA entities, and entities of any other real data store.protected booleanisInspectable(MetaClass metaClass) protected booleanisRealStore(String storeName) booleanisStoredProperty(MetaProperty metaProperty) Returns whether the property holds a value that its data store persists: a JPA attribute, or any property of a real store.booleansupportsJpqlQuery(MetaClass metaClass) Returns whether the entity's data store accepts a JPQL query string.
-
Field Details
-
metadata
-
metadataTools
-
-
Constructor Details
-
EntityInspectorSupport
public EntityInspectorSupport()
-
-
Method Details
-
getInspectableEntityMetaClasses
Returns the entities the inspector can browse: JPA entities, and entities of any other real data store. Classes without a store, JPA embeddables, and system-level classes of non-JPA stores are left out.- Returns:
- inspectable meta-classes, empty if none
-
supportsJpqlQuery
Returns whether the entity's data store accepts a JPQL query string. A store that does not must be loaded with conditions only.- Parameters:
metaClass- entity meta-class- Returns:
trueif a JPQL query string can be used
-
isStoredProperty
Returns whether the property holds a value that its data store persists: a JPA attribute, or any property of a real store. A transient property has no store of its own and is left out.- Parameters:
metaProperty- property to check- Returns:
trueif the property is stored
-
isInspectable
-
isRealStore
-