Class EntityTypeImpl<J>
java.lang.Object
org.hibernate.metamodel.model.domain.AbstractDomainType<J>
org.hibernate.metamodel.model.domain.AbstractManagedType<J>
org.hibernate.metamodel.model.domain.AbstractIdentifiableType<J>
org.hibernate.metamodel.model.domain.internal.EntityTypeImpl<J>
- All Implemented Interfaces:
Bindable<J>
,EntityType<J>
,IdentifiableType<J>
,ManagedType<J>
,Type<J>
,Serializable
,DomainType<J>
,EntityDomainType<J>
,IdentifiableDomainType<J>
,AttributeContainer<J>
,ManagedDomainType<J>
,SimpleDomainType<J>
,TreatableDomainType<J>
,BindableType<J>
,SqmExpressible<J>
,SqmPathSource<J>
,SqmExpressibleAccessor<J>
public class EntityTypeImpl<J>
extends AbstractIdentifiableType<J>
implements EntityDomainType<J>, Serializable
Implementation of
EntityType
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.metamodel.model.domain.internal.AttributeContainer
AttributeContainer.InFlightAccess<J>
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Constructor Summary
ConstructorDescriptionEntityTypeImpl
(String entityName, String jpaEntityName, boolean hasIdClass, boolean hasIdProperty, boolean hasVersion, JavaType<J> javaType, IdentifiableDomainType<? super J> superType, JpaMetamodelImplementor metamodel) EntityTypeImpl
(JavaType<J> javaType, IdentifiableDomainType<? super J> superType, PersistentClass persistentClass, JpaMetamodelImplementor metamodel) EntityTypeImpl
(JavaType<J> javaTypeDescriptor, JpaMetamodelImplementor metamodel) -
Method Summary
Modifier and TypeMethodDescriptioncreateSqmPath
(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource) Create an SQM path for this source relative to the given left hand sidePersistentAttribute<? super J,
?> findAttribute
(String name) findSubPathSource
(String name) Find aSqmPathSource
by name relative to this source.findSubPathSource
(String name, JpaMetamodelImplementor metamodel) Find aSqmPathSource
by name relative to this source.getName()
The name of this thing.The type of path this source creates.Collection<? extends EntityDomainType<? extends J>>
IdentifiableDomainType<? super J>
The descriptor of the supertype of this type.toString()
protected Object
Methods inherited from class org.hibernate.metamodel.model.domain.AbstractIdentifiableType
createInFlightAccess, findIdAttribute, findNaturalIdAttributes, findVersionAttribute, getDeclaredId, getDeclaredVersion, getDeclaredVersion, getId, getIdClassAttributes, getIdClassAttributesSafely, getIdentifierDescriptor, getIdType, getInFlightAccess, getSupertype, getVersion, hasDeclaredVersionAttribute, hasIdClass, hasSingleIdAttribute, hasVersionAttribute, isIdMappingRequired, visitIdClassAttributes
Methods inherited from class org.hibernate.metamodel.model.domain.AbstractManagedType
addSubType, findAttributeInSuperTypes, findConcreteGenericAttribute, findDeclaredAttribute, findDeclaredConcreteGenericAttribute, findDeclaredPluralAttribute, findDeclaredSingularAttribute, findPluralAttribute, findSingularAttribute, findSubTypesAttribute, getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getRepresentationMode, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getTypeName, isPrimitiveVariant, visitAttributes, visitDeclaredAttributes
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 jakarta.persistence.metamodel.Bindable
getBindableJavaType
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getTupleLength
Methods inherited from interface org.hibernate.metamodel.model.domain.EntityDomainType
getSqmType
Methods inherited from interface org.hibernate.metamodel.model.domain.IdentifiableDomainType
findIdAttribute, findNaturalIdAttributes, findVersionAttribute, getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdentifierDescriptor, getIdType, getSupertype, getVersion, hasIdClass, visitIdClassAttributes
Methods inherited from interface jakarta.persistence.metamodel.IdentifiableType
hasSingleIdAttribute, hasVersionAttribute
Methods inherited from interface org.hibernate.metamodel.model.domain.ManagedDomainType
addSubType, findAttributeInSuperTypes, findConcreteGenericAttribute, findDeclaredAttribute, findDeclaredConcreteGenericAttribute, findDeclaredPluralAttribute, findDeclaredSingularAttribute, findPluralAttribute, findSingularAttribute, findSubTypesAttribute, getAttribute, getDeclaredAttribute, getRepresentationMode, getTypeName, visitAttributes, visitDeclaredAttributes
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 org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaType
Methods inherited from interface org.hibernate.query.sqm.SqmPathSource
getExpressible, getIntermediatePathSource, getSubPathSource, getSubPathSource, isGeneric
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Constructor Details
-
EntityTypeImpl
public EntityTypeImpl(String entityName, String jpaEntityName, boolean hasIdClass, boolean hasIdProperty, boolean hasVersion, JavaType<J> javaType, IdentifiableDomainType<? super J> superType, JpaMetamodelImplementor metamodel) -
EntityTypeImpl
public EntityTypeImpl(JavaType<J> javaType, IdentifiableDomainType<? super J> superType, PersistentClass persistentClass, JpaMetamodelImplementor metamodel) -
EntityTypeImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceEntityType<J>
-
getHibernateEntityName
- Specified by:
getHibernateEntityName
in interfaceEntityDomainType<J>
-
getPathName
Description copied from interface:SqmPathSource
The name of this thing.- Specified by:
getPathName
in interfaceSqmPathSource<J>
-
getSqmPathType
Description copied from interface:SqmPathSource
The type of path this source creates.- Specified by:
getSqmPathType
in interfaceSqmPathSource<J>
-
findSubPathSource
Description copied from interface:SqmPathSource
Find aSqmPathSource
by name relative to this source.- Specified by:
findSubPathSource
in interfaceSqmPathSource<J>
- Returns:
- null if the subPathSource is not found
-
findSubPathSource
Description copied from interface:SqmPathSource
Find aSqmPathSource
by name relative to this source.- Specified by:
findSubPathSource
in interfaceSqmPathSource<J>
- Returns:
- null if the subPathSource is not found
-
findAttribute
- Specified by:
findAttribute
in interfaceManagedDomainType<J>
- Overrides:
findAttribute
in classAbstractManagedType<J>
-
getBindableType
- Specified by:
getBindableType
in interfaceBindable<J>
-
getPersistenceType
- Specified by:
getPersistenceType
in interfaceType<J>
-
getSuperType
Description copied from interface:ManagedDomainType
The descriptor of the supertype of this type.- Specified by:
getSuperType
in interfaceManagedDomainType<J>
- Overrides:
getSuperType
in classAbstractIdentifiableType<J>
-
getSubTypes
- Specified by:
getSubTypes
in interfaceEntityDomainType<J>
- Specified by:
getSubTypes
in interfaceManagedDomainType<J>
- Overrides:
getSubTypes
in classAbstractManagedType<J>
-
toString
- Overrides:
toString
in classAbstractManagedType<J>
-
createSqmPath
Description copied from interface:SqmPathSource
Create an SQM path for this source relative to the given left hand side- Specified by:
createSqmPath
in interfaceSqmPathSource<J>
-
writeReplace
- Overrides:
writeReplace
in classAbstractManagedType<J>
- Throws:
ObjectStreamException
-