Interface ManagedDomainType<J>
-
- All Superinterfaces:
BindableType<J>
,DomainType<J>
,ManagedType<J>
,SqmExpressible<J>
,Type<J>
- All Known Subinterfaces:
EmbeddableDomainType<J>
,EmbeddedDomainType<J>
,EntityDomainType<J>
,IdentifiableDomainType<J>
,MappedSuperclassDomainType<J>
- All Known Implementing Classes:
AbstractIdentifiableType
,AbstractManagedType
,EmbeddableTypeImpl
,EntityTypeImpl
,MappedSuperclassTypeImpl
,SqmPolymorphicRootDescriptor
public interface ManagedDomainType<J> extends SqmExpressible<J>, DomainType<J>, ManagedType<J>
Hibernate extension to the JPAManagedType
contract
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
-
Method Summary
-
Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaType
-
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 org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, isInstance, resolveExpressible
-
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType, getPersistenceType
-
-
-
-
Method Detail
-
getTypeName
String getTypeName()
Get the type name. Generally speaking, this returns the name of the Java class. However, for dynamic models (RepresentationMode.MAP
), this returns the symbolic name since the Java type isMap
- Specified by:
getTypeName
in interfaceDomainType<J>
- Returns:
- The type name.
- See Also:
getRepresentationMode()
-
getRepresentationMode
RepresentationMode getRepresentationMode()
-
getSuperType
ManagedDomainType<? super J> getSuperType()
This type's super type descriptor. Note : we define this on the managed type descriptor in anticipation of supporting embeddable inheritance
-
getSubTypes
Collection<? extends ManagedDomainType<? extends J>> getSubTypes()
-
addSubType
void addSubType(ManagedDomainType subType)
-
visitAttributes
void visitAttributes(Consumer<? super PersistentAttribute<J,?>> action)
-
visitDeclaredAttributes
void visitDeclaredAttributes(Consumer<? super PersistentAttribute<J,?>> action)
-
getAttribute
PersistentAttribute<? super J,?> getAttribute(String name)
- Specified by:
getAttribute
in interfaceManagedType<J>
-
getDeclaredAttribute
PersistentAttribute<J,?> getDeclaredAttribute(String name)
- Specified by:
getDeclaredAttribute
in interfaceManagedType<J>
-
findAttribute
PersistentAttribute<? super J,?> findAttribute(String name)
-
findSubTypesAttribute
PersistentAttribute<? super J,?> findSubTypesAttribute(String name)
-
findAttributeInSuperTypes
PersistentAttribute<? super J,?> findAttributeInSuperTypes(String name)
-
findSingularAttribute
SingularPersistentAttribute<? super J,?> findSingularAttribute(String name)
-
findPluralAttribute
PluralPersistentAttribute<? super J,?,?> findPluralAttribute(String name)
-
findConcreteGenericAttribute
PersistentAttribute<? super J,?> findConcreteGenericAttribute(String name)
-
findDeclaredAttribute
PersistentAttribute<J,?> findDeclaredAttribute(String name)
-
findDeclaredSingularAttribute
SingularPersistentAttribute<? super J,?> findDeclaredSingularAttribute(String name)
-
findDeclaredPluralAttribute
PluralPersistentAttribute<? super J,?,?> findDeclaredPluralAttribute(String name)
-
findDeclaredConcreteGenericAttribute
PersistentAttribute<? super J,?> findDeclaredConcreteGenericAttribute(String name)
-
makeSubGraph
SubGraphImplementor<J> makeSubGraph()
-
makeSubGraph
<S extends J> SubGraphImplementor<S> makeSubGraph(Class<S> subClassType)
-
findSubType
<S extends J> ManagedDomainType<S> findSubType(String subTypeName)
-
findSubType
<S extends J> ManagedDomainType<S> findSubType(Class<S> subType)
-
-