Class AbstractManagedType<J>
java.lang.Object
org.hibernate.metamodel.model.domain.AbstractDomainType<J>
org.hibernate.metamodel.model.domain.AbstractManagedType<J>
- All Implemented Interfaces:
ManagedType<J>
,Type<J>
,Serializable
,DomainType<J>
,AttributeContainer<J>
,ManagedDomainType<J>
,SimpleDomainType<J>
,BindableType<J>
,SqmExpressible<J>
- Direct Known Subclasses:
AbstractIdentifiableType
,EmbeddableTypeImpl
public abstract class AbstractManagedType<J>
extends AbstractDomainType<J>
implements ManagedDomainType<J>, AttributeContainer<J>, Serializable
Functionality common to all implementations of
ManagedType
.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.hibernate.metamodel.model.domain.internal.AttributeContainer
AttributeContainer.InFlightAccess<J>
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractManagedType
(String hibernateTypeName, JavaType<J> javaType, ManagedDomainType<? super J> superType, JpaMetamodelImplementor metamodel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubType
(ManagedDomainType<? extends J> subType) protected AttributeContainer.InFlightAccess<J>
PersistentAttribute<? super J,
?> findAttribute
(String name) PersistentAttribute<? super J,
?> 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) BagPersistentAttribute<? super J,
?> getCollection
(String name) <E> BagPersistentAttribute<? super J,
E> getCollection
(String name, Class<E> elementType) getDeclaredAttribute
(String name) getDeclaredCollection
(String name) <E> CollectionAttribute<J,
E> getDeclaredCollection
(String name, Class<E> elementType) getDeclaredList
(String name) <E> ListAttribute<J,
E> getDeclaredList
(String name, Class<E> elementType) MapPersistentAttribute<J,
?, ?> getDeclaredMap
(String name) <K,
V> MapAttribute<J, K, V> getDeclaredMap
(String name, Class<K> keyType, Class<V> valueType) Set<PluralAttribute<J,
?, ?>> getDeclaredSet
(String name) <E> SetAttribute<J,
E> getDeclaredSet
(String name, Class<E> elementType) <Y> SingularPersistentAttribute<J,
Y> getDeclaredSingularAttribute
(String name, Class<Y> javaType) Set<SingularAttribute<J,
?>> ListPersistentAttribute<? super J,
?> <E> ListAttribute<? super J,
E> MapPersistentAttribute<? super J,
?, ?> <K,
V> MapAttribute<? super J, K, V> Set<PluralAttribute<? super J,
?, ?>> SetPersistentAttribute<? super J,
?> <E> SetAttribute<? super J,
E> SingularPersistentAttribute<? super J,
?> getSingularAttribute
(String name) <Y> SingularPersistentAttribute<? super J,
Y> getSingularAttribute
(String name, Class<Y> type) Set<SingularAttribute<? super J,
?>> Collection<? extends ManagedDomainType<? extends J>>
ManagedDomainType<? super J>
The descriptor of the supertype of this type.Get the type name.protected <Y> boolean
isPrimitiveVariant
(SingularAttribute<?, ?> attribute, Class<Y> javaType) toString()
void
visitAttributes
(Consumer<? super PersistentAttribute<? super J, ?>> action) void
visitDeclaredAttributes
(Consumer<? super PersistentAttribute<J, ?>> action) protected Object
Methods inherited from class org.hibernate.metamodel.model.domain.AbstractDomainType
getBindableJavaType, getExpressibleJavaType, getJavaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLength
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, isInstance, resolveExpressible
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType, getPersistenceType
-
Constructor Details
-
AbstractManagedType
protected AbstractManagedType(String hibernateTypeName, JavaType<J> javaType, ManagedDomainType<? super J> superType, JpaMetamodelImplementor metamodel)
-
-
Method Details
-
createInFlightAccess
-
getSuperType
Description copied from interface:ManagedDomainType
The descriptor of the supertype of this type.- Specified by:
getSuperType
in interfaceManagedDomainType<J>
-
getSubTypes
- Specified by:
getSubTypes
in interfaceManagedDomainType<J>
-
addSubType
- Specified by:
addSubType
in interfaceManagedDomainType<J>
-
getRepresentationMode
- Specified by:
getRepresentationMode
in interfaceManagedDomainType<J>
-
visitAttributes
- Specified by:
visitAttributes
in interfaceManagedDomainType<J>
-
visitDeclaredAttributes
- Specified by:
visitDeclaredAttributes
in interfaceManagedDomainType<J>
-
getAttributes
- Specified by:
getAttributes
in interfaceManagedType<J>
-
getDeclaredAttributes
- Specified by:
getDeclaredAttributes
in interfaceManagedType<J>
-
getAttribute
- Specified by:
getAttribute
in interfaceManagedDomainType<J>
- Specified by:
getAttribute
in interfaceManagedType<J>
-
findAttribute
- Specified by:
findAttribute
in interfaceManagedDomainType<J>
-
findAttributeInSuperTypes
- Specified by:
findAttributeInSuperTypes
in interfaceManagedDomainType<J>
-
findSubTypesAttribute
- Specified by:
findSubTypesAttribute
in interfaceManagedDomainType<J>
-
findDeclaredAttribute
- Specified by:
findDeclaredAttribute
in interfaceManagedDomainType<J>
-
getDeclaredAttribute
- Specified by:
getDeclaredAttribute
in interfaceManagedDomainType<J>
- Specified by:
getDeclaredAttribute
in interfaceManagedType<J>
-
getTypeName
Description copied from interface:ManagedDomainType
Get the type name.- Specified by:
getTypeName
in interfaceManagedDomainType<J>
- Specified by:
getTypeName
in interfaceSqmExpressible<J>
- Returns:
- The type name.
- See Also:
-
getSingularAttributes
- Specified by:
getSingularAttributes
in interfaceManagedType<J>
-
getDeclaredSingularAttributes
- Specified by:
getDeclaredSingularAttributes
in interfaceManagedType<J>
-
getSingularAttribute
- Specified by:
getSingularAttribute
in interfaceManagedType<J>
-
findSingularAttribute
- Specified by:
findSingularAttribute
in interfaceManagedDomainType<J>
-
getSingularAttribute
public <Y> SingularPersistentAttribute<? super J,Y> getSingularAttribute(String name, Class<Y> type) - Specified by:
getSingularAttribute
in interfaceManagedType<J>
-
getDeclaredSingularAttribute
- Specified by:
getDeclaredSingularAttribute
in interfaceManagedType<J>
-
findDeclaredSingularAttribute
- Specified by:
findDeclaredSingularAttribute
in interfaceManagedDomainType<J>
-
getDeclaredSingularAttribute
public <Y> SingularPersistentAttribute<J,Y> getDeclaredSingularAttribute(String name, Class<Y> javaType) - Specified by:
getDeclaredSingularAttribute
in interfaceManagedType<J>
-
isPrimitiveVariant
-
getPluralAttributes
- Specified by:
getPluralAttributes
in interfaceManagedType<J>
-
getDeclaredPluralAttributes
- Specified by:
getDeclaredPluralAttributes
in interfaceManagedType<J>
-
findPluralAttribute
- Specified by:
findPluralAttribute
in interfaceManagedDomainType<J>
-
findDeclaredPluralAttribute
- Specified by:
findDeclaredPluralAttribute
in interfaceManagedDomainType<J>
-
findConcreteGenericAttribute
- Specified by:
findConcreteGenericAttribute
in interfaceManagedDomainType<J>
-
findDeclaredConcreteGenericAttribute
- Specified by:
findDeclaredConcreteGenericAttribute
in interfaceManagedDomainType<J>
-
getCollection
- Specified by:
getCollection
in interfaceManagedType<J>
-
getDeclaredCollection
- Specified by:
getDeclaredCollection
in interfaceManagedType<J>
-
getCollection
- Specified by:
getCollection
in interfaceManagedType<J>
-
getDeclaredCollection
- Specified by:
getDeclaredCollection
in interfaceManagedType<J>
-
getSet
- Specified by:
getSet
in interfaceManagedType<J>
-
getDeclaredSet
- Specified by:
getDeclaredSet
in interfaceManagedType<J>
-
getSet
- Specified by:
getSet
in interfaceManagedType<J>
-
getDeclaredSet
- Specified by:
getDeclaredSet
in interfaceManagedType<J>
-
getList
- Specified by:
getList
in interfaceManagedType<J>
-
getDeclaredList
- Specified by:
getDeclaredList
in interfaceManagedType<J>
-
getList
- Specified by:
getList
in interfaceManagedType<J>
-
getDeclaredList
- Specified by:
getDeclaredList
in interfaceManagedType<J>
-
getMap
- Specified by:
getMap
in interfaceManagedType<J>
-
getDeclaredMap
- Specified by:
getDeclaredMap
in interfaceManagedType<J>
-
getMap
- Specified by:
getMap
in interfaceManagedType<J>
-
getDeclaredMap
- Specified by:
getDeclaredMap
in interfaceManagedType<J>
-
writeReplace
- Throws:
ObjectStreamException
-
getInFlightAccess
- Specified by:
getInFlightAccess
in interfaceAttributeContainer<J>
-
toString
-