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:
AbstractIdentifiableType
,AbstractManagedType
,EmbeddableTypeImpl
,EntityTypeImpl
,MappedSuperclassTypeImpl
,SqmPolymorphicRootDescriptor
Extensions to the JPA-defined
ManagedType
contract.-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubType
(ManagedDomainType<? extends J> subType) PersistentAttribute<? super J,
?> findAttribute
(String name) default PersistentAttribute<? super J,
?> Deprecated, for removal: This API element is subject to removal in a future version.PersistentAttribute<? super J,
?> findDeclaredAttribute
(String name) PluralPersistentAttribute<? super J,
?, ?> findPluralAttribute
(String name) SingularPersistentAttribute<? super J,
?> findSingularAttribute
(String name) 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.ManagedDomainType<? super J>
The descriptor of the supertype of this type.The name of the managed type.void
visitAttributes
(Consumer<? super PersistentAttribute<? super J, ?>> action) void
visitDeclaredAttributes
(Consumer<? super PersistentAttribute<J, ?>> action) Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getExpressibleJavaType
Methods inherited from interface jakarta.persistence.metamodel.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, getSingularAttributes
Methods inherited from interface jakarta.persistence.metamodel.Type
getPersistenceType
-
Method Details
-
getTypeName
String getTypeName()The name of the managed type.- Specified by:
getTypeName
in 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:
getJavaType
in interfaceDomainType<J>
- Specified by:
getJavaType
in interfaceType<J>
- See Also:
-
getSuperType
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:
getAttribute
in interfaceManagedType<J>
-
getDeclaredAttribute
- Specified by:
getDeclaredAttribute
in interfaceManagedType<J>
-
findAttribute
-
findSubTypesAttribute
-
findAttributeInSuperTypes
@Deprecated(since="7.0", forRemoval=true) default 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)