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>
Extensions to the JPA-definedManagedType
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
getSqmType, getTupleLength
-
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
getExpressibleJavaType, getRelationalJavaType, isInstance, resolveExpressible
-
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType, getPersistenceType
-
-
-
-
Method Detail
-
getTypeName
String getTypeName()
Get the type name.- Specified by:
getTypeName
in interfaceSqmExpressible<J>
- Returns:
- The type name.
- See Also:
getRepresentationMode()
- 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
.
-
getRepresentationMode
RepresentationMode getRepresentationMode()
-
getSuperType
ManagedDomainType<? super J> getSuperType()
The descriptor of the supertype of this type.- API Note:
- we define this here in anticipation of eventually supporting embeddable inheritance
-
getSubTypes
Collection<? extends ManagedDomainType<? extends J>> getSubTypes()
-
addSubType
void addSubType(ManagedDomainType<? extends J> subType)
-
visitAttributes
void visitAttributes(Consumer<? super PersistentAttribute<? super 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<?,?> 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<J,?> findDeclaredSingularAttribute(String name)
-
findDeclaredPluralAttribute
PluralPersistentAttribute<J,?,?> findDeclaredPluralAttribute(String name)
-
findDeclaredConcreteGenericAttribute
PersistentAttribute<J,?> findDeclaredConcreteGenericAttribute(String name)
-
-