Interface ManagedDomainType<J>
- All Superinterfaces:
DomainType<J>, ManagedType<J>, Type<J>
- All Known Subinterfaces:
EmbeddableDomainType<J>, EntityDomainType<J>, IdentifiableDomainType<J>, MappedSuperclassDomainType<J>, SqmEmbeddableDomainType<E>, SqmEntityDomainType<E>, SqmManagedDomainType<J>, SqmMappedSuperclassDomainType<T>, SqmTreatableDomainType<T>, TreatableDomainType<J>
- All Known Implementing Classes:
SqmPolymorphicRootDescriptor
Extensions to the JPA-defined
ManagedType contract.-
Nested Class Summary
Nested classes/interfaces inherited from interface Type
Type.PersistenceType -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubType(ManagedDomainType<? extends J> subType) @Nullable PersistentAttribute<? super J, ?> findAttribute(String name) default @Nullable PersistentAttribute<? super J, ?> Deprecated, for removal: This API element is subject to removal in a future version.@Nullable PersistentAttribute<? super J, ?> @Nullable PersistentAttribute<J, ?> findDeclaredAttribute(String name) @Nullable PersistentAttribute<J, ?> @Nullable PluralPersistentAttribute<J, ?, ?> @Nullable SingularPersistentAttribute<J, ?> @Nullable PluralPersistentAttribute<? super J, ?, ?> findPluralAttribute(String name) @Nullable SingularPersistentAttribute<? super J, ?> findSingularAttribute(String name) @Nullable PersistentAttribute<?, ?> findSubTypesAttribute(String name) PersistentAttribute<? super J, ?> getAttribute(String name) getDeclaredAttribute(String name) The Java class of the entity type.The parent metamodel.The representation mode.Collection<? extends ManagedDomainType<? extends J>> The descriptors of all known managed subtypes of this type.@Nullable ManagedDomainType<? super J> The descriptor of the supertype of this type.The name of the managed type.voidvisitAttributes(Consumer<? super PersistentAttribute<? super J, ?>> action) voidvisitDeclaredAttributes(Consumer<? super PersistentAttribute<J, ?>> action) Methods inherited from interface DomainType
getExpressibleJavaTypeMethods inherited from interface ManagedType
getAttributes, getCollection, getCollection, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributesMethods inherited from interface Type
getPersistenceType
-
Method Details
-
getTypeName
String getTypeName()The name of the managed type.- Specified by:
getTypeNamein interfaceDomainType<J>- See Also:
- API Note:
- This usually returns the name of the Java class. However, for
dynamic models, this returns
the symbolic name since the Java type is
Map.
-
getMetamodel
JpaMetamodel getMetamodel()The parent metamodel. -
getRepresentationMode
RepresentationMode getRepresentationMode()The representation mode. -
getJavaType
The Java class of the entity type.- Specified by:
getJavaTypein interfaceDomainType<J>- Specified by:
getJavaTypein interfaceType<J>- See Also:
-
getSuperType
@Nullable ManagedDomainType<? super J> getSuperType()The descriptor of the supertype of this type. -
getSubTypes
Collection<? extends ManagedDomainType<? extends J>> getSubTypes()The descriptors of all known managed subtypes of this type. -
addSubType
-
visitAttributes
-
visitDeclaredAttributes
-
getAttribute
- Specified by:
getAttributein interfaceManagedType<J>
-
getDeclaredAttribute
- Specified by:
getDeclaredAttributein interfaceManagedType<J>
-
findAttribute
-
findSubTypesAttribute
-
findAttributeInSuperTypes
@Deprecated(since="7.0", forRemoval=true) default @Nullable PersistentAttribute<? super J, ?> findAttributeInSuperTypes(String name) Deprecated, for removal: This API element is subject to removal in a future version. -
findSingularAttribute
-
findPluralAttribute
-
findConcreteGenericAttribute
-
findDeclaredAttribute
-
findDeclaredSingularAttribute
-
findDeclaredPluralAttribute
-
findDeclaredConcreteGenericAttribute
-
findAttribute(String)