Class EntityTypeImpl<J>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.AbstractDomainType<J>
org.hibernate.metamodel.model.domain.internal.AbstractManagedType<J>
org.hibernate.metamodel.model.domain.internal.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>,PathSource<J>,SimpleDomainType<J>,TreatableDomainType<J>,SqmBindableType<J>,SqmExpressible<J>,SqmPathSource<J>,SqmDomainType<J>,SqmEntityDomainType<J>,SqmManagedDomainType<J>,SqmTreatableDomainType<J>,SqmExpressibleAccessor<J>,BindableType<J>
public class EntityTypeImpl<J>
extends AbstractIdentifiableType<J>
implements SqmEntityDomainType<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.BindableTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType -
Constructor Summary
ConstructorsConstructorDescriptionEntityTypeImpl(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 sideSqmPersistentAttribute<? super J, ?> findAttribute(String name) findSubPathSource(String name) Find aPathSourceby name relative to this source.findSubPathSource(String name, boolean includeSubtypes) Find aPathSourceby name relative to this source.getName()The name of this thing.The type of path this source creates.Collection<? extends SqmEntityDomainType<? extends J>> The descriptors of all known managed subtypes of this type.toString()protected ObjectMethods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractIdentifiableType
createInFlightAccess, findIdAttribute, findNaturalIdAttributes, findVersionAttribute, getDeclaredId, getDeclaredVersion, getDeclaredVersion, getId, getIdClassAttributes, getIdClassAttributesSafely, getIdType, getSupertype, getSuperType, getVersion, hasDeclaredVersionAttribute, hasIdClass, hasSingleIdAttribute, hasVersionAttribute, isIdMappingRequired, visitIdClassAttributesMethods inherited from class org.hibernate.metamodel.model.domain.internal.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, getInFlightAccess, getJavaType, getList, getList, getMap, getMap, getMetamodel, getPluralAttributes, getRepresentationMode, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getTypeName, isPrimitiveVariant, visitAttributes, visitDeclaredAttributesMethods inherited from class org.hibernate.metamodel.model.domain.internal.AbstractDomainType
getExpressibleJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getExpressibleJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.IdentifiableDomainType
findIdAttribute, findNaturalIdAttributes, findVersionAttribute, getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasIdClass, visitIdClassAttributesMethods inherited from interface jakarta.persistence.metamodel.IdentifiableType
hasSingleIdAttribute, hasVersionAttributeMethods inherited from interface org.hibernate.metamodel.model.domain.ManagedDomainType
addSubType, getAttribute, getDeclaredAttribute, getMetamodel, getRepresentationMode, getSuperType, visitAttributes, visitDeclaredAttributesMethods 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, getSingularAttributesMethods inherited from interface org.hibernate.query.sqm.SqmBindableType
resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmDomainType
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmExpressibleAccessor
getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmManagedDomainType
findAttributeInSuperTypes, findConcreteGenericAttribute, findDeclaredAttribute, findDeclaredConcreteGenericAttribute, findDeclaredPluralAttribute, findDeclaredSingularAttribute, findPluralAttribute, findSingularAttribute, findSubTypesAttribute, getJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmPathSource
getExpressible, getIntermediatePathSource, getSubPathSource, getSubPathSource, isGenericMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmTreatableDomainType
getTypeNameMethods 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:
getNamein interfaceEntityType<J>
-
getBindableJavaType
- Specified by:
getBindableJavaTypein interfaceBindable<J>
-
getHibernateEntityName
- Specified by:
getHibernateEntityNamein interfaceEntityDomainType<J>
-
getSqmType
- Specified by:
getSqmTypein interfaceSqmEntityDomainType<J>- Specified by:
getSqmTypein interfaceSqmExpressible<J>- Specified by:
getSqmTypein interfaceSqmPathSource<J>- Specified by:
getSqmTypein interfaceSqmTreatableDomainType<J>
-
getPathName
Description copied from interface:PathSourceThe name of this thing.- Specified by:
getPathNamein interfacePathSource<J>
-
getPathType
Description copied from interface:PathSourceThe type of path this source creates.- Specified by:
getPathTypein interfacePathSource<J>- Specified by:
getPathTypein interfaceSqmPathSource<J>
-
findSubPathSource
Description copied from interface:PathSourceFind aPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfacePathSource<J>- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- Parameters:
name- the name of the path source to find- Returns:
- null if the subPathSource is not found
-
getIdentifierDescriptor
- Specified by:
getIdentifierDescriptorin interfaceIdentifiableDomainType<J>- Overrides:
getIdentifierDescriptorin classAbstractIdentifiableType<J>
-
findSubPathSource
Description copied from interface:PathSourceFind aPathSourceby name relative to this source. IfincludeSubtypesis set totrueand this path source is polymorphic, also try finding subtype attributes.- Specified by:
findSubPathSourcein interfacePathSource<J>- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- Parameters:
name- the name of the path source to findincludeSubtypes- flag indicating whether to consider subtype attributes- Returns:
- null if the subPathSource is not found
-
findAttribute
- Specified by:
findAttributein interfaceManagedDomainType<J>- Specified by:
findAttributein interfaceSqmManagedDomainType<J>- Overrides:
findAttributein classAbstractManagedType<J>
-
getBindableType
- Specified by:
getBindableTypein interfaceBindable<J>
-
getPersistenceType
- Specified by:
getPersistenceTypein interfaceType<J>
-
getSubTypes
Description copied from interface:ManagedDomainTypeThe descriptors of all known managed subtypes of this type.- Specified by:
getSubTypesin interfaceEntityDomainType<J>- Specified by:
getSubTypesin interfaceManagedDomainType<J>- Overrides:
getSubTypesin classAbstractManagedType<J>
-
toString
- Overrides:
toStringin classAbstractManagedType<J>
-
createSqmPath
Description copied from interface:SqmPathSourceCreate an SQM path for this source relative to the given left hand side- Specified by:
createSqmPathin interfaceSqmPathSource<J>
-
writeReplace
- Overrides:
writeReplacein classAbstractManagedType<J>- Throws:
ObjectStreamException
-