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>,BindableType<J>,SqmExpressible<J>,SqmPathSource<J>,SqmExpressibleAccessor<J>
public class EntityTypeImpl<J> extends AbstractIdentifiableType<J> implements EntityDomainType<J>, Serializable
Implementation ofEntityType.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description EntityTypeImpl(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
-
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 Detail
-
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
public EntityTypeImpl(JavaType<J> javaTypeDescriptor, JpaMetamodelImplementor metamodel)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceEntityType<J>
-
getHibernateEntityName
public String getHibernateEntityName()
- Specified by:
getHibernateEntityNamein interfaceEntityDomainType<J>
-
getPathName
public String getPathName()
Description copied from interface:SqmPathSourceThe name of this thing.- Specified by:
getPathNamein interfaceSqmPathSource<J>
-
getSqmPathType
public EntityDomainType<J> getSqmPathType()
Description copied from interface:SqmPathSourceThe type of path this source creates.- Specified by:
getSqmPathTypein interfaceSqmPathSource<J>
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name)
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- Returns:
- null if the subPathSource is not found
-
findSubPathSource
public SqmPathSource<?> findSubPathSource(String name, JpaMetamodelImplementor metamodel)
Description copied from interface:SqmPathSourceFind aSqmPathSourceby name relative to this source.- Specified by:
findSubPathSourcein interfaceSqmPathSource<J>- Returns:
- null if the subPathSource is not found
-
findAttribute
public PersistentAttribute<? super J,?> findAttribute(String name)
- Specified by:
findAttributein interfaceManagedDomainType<J>- Overrides:
findAttributein classAbstractManagedType<J>
-
getBindableType
public Bindable.BindableType getBindableType()
- Specified by:
getBindableTypein interfaceBindable<J>
-
getPersistenceType
public Type.PersistenceType getPersistenceType()
- Specified by:
getPersistenceTypein interfaceType<J>
-
getSuperType
public IdentifiableDomainType<? super J> getSuperType()
Description copied from interface:ManagedDomainTypeThe descriptor of the supertype of this type.- Specified by:
getSuperTypein interfaceManagedDomainType<J>- Overrides:
getSuperTypein classAbstractIdentifiableType<J>
-
getSubTypes
public Collection<? extends EntityDomainType<? extends J>> getSubTypes()
- Specified by:
getSubTypesin interfaceEntityDomainType<J>- Specified by:
getSubTypesin interfaceManagedDomainType<J>- Overrides:
getSubTypesin classAbstractManagedType<J>
-
toString
public String toString()
- Overrides:
toStringin classAbstractManagedType<J>
-
createSqmPath
public SqmPath<J> createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource)
Description copied from interface:SqmPathSourceCreate an SQM path for this source relative to the given left hand side- Specified by:
createSqmPathin interfaceSqmPathSource<J>
-
writeReplace
protected Object writeReplace() throws ObjectStreamException
- Overrides:
writeReplacein classAbstractManagedType<J>- Throws:
ObjectStreamException
-
-