Interface IdentifiableDomainType<J>
- All Superinterfaces:
BindableType<J>,DomainType<J>,IdentifiableType<J>,ManagedDomainType<J>,ManagedType<J>,SqmExpressible<J>,Type<J>
- All Known Subinterfaces:
EntityDomainType<J>,MappedSuperclassDomainType<J>
- All Known Implementing Classes:
AbstractIdentifiableType,EntityTypeImpl,MappedSuperclassTypeImpl,SqmPolymorphicRootDescriptor
Extension to the JPA
IdentifiableType contract.- Author:
- Steve Ebersole
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType -
Method Summary
Modifier and TypeMethodDescriptionSingularPersistentAttribute<? super J,?> List<? extends PersistentAttribute<? super J,?>> SingularPersistentAttribute<? super J,?> <Y> SingularPersistentAttribute<J,Y> getDeclaredId(Class<Y> type) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass.<Y> SingularPersistentAttribute<J,Y> getDeclaredVersion(Class<Y> type) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass.<Y> SingularPersistentAttribute<? super J,Y> Return the attribute that corresponds to the id attribute of the entity or mapped superclass.Set<SingularAttribute<? super J,?>> Return the attributes corresponding to the id class of the identifiable type.Return the type that represents the type of the id.IdentifiableDomainType<? super J>Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.<Y> SingularPersistentAttribute<? super J,Y> getVersion(Class<Y> type) Return the attribute that corresponds to the version attribute of the entity or mapped superclass.booleanvoidvisitIdClassAttributes(Consumer<SingularPersistentAttribute<? super J, ?>> action) Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaTypeMethods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLengthMethods inherited from interface jakarta.persistence.metamodel.IdentifiableType
hasSingleIdAttribute, hasVersionAttributeMethods inherited from interface org.hibernate.metamodel.model.domain.ManagedDomainType
addSubType, findAttribute, findAttributeInSuperTypes, findConcreteGenericAttribute, findDeclaredAttribute, findDeclaredConcreteGenericAttribute, findDeclaredPluralAttribute, findDeclaredSingularAttribute, findPluralAttribute, findSingularAttribute, findSubTypesAttribute, getAttribute, getDeclaredAttribute, getRepresentationMode, getSubTypes, getSuperType, getTypeName, 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.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, isInstance, resolveExpressibleMethods inherited from interface jakarta.persistence.metamodel.Type
getJavaType, getPersistenceType
-
Method Details
-
getIdentifierDescriptor
SqmPathSource<?> getIdentifierDescriptor() -
getId
Description copied from interface:IdentifiableTypeReturn the attribute that corresponds to the id attribute of the entity or mapped superclass.- Specified by:
getIdin interfaceIdentifiableType<J>- Parameters:
type- the type of the represented id attribute- Returns:
- id attribute
-
getDeclaredId
Description copied from interface:IdentifiableTypeReturn the attribute that corresponds to the id attribute declared by the entity or mapped superclass.- Specified by:
getDeclaredIdin interfaceIdentifiableType<J>- Parameters:
type- the type of the represented declared id attribute- Returns:
- declared id attribute
-
getVersion
Description copied from interface:IdentifiableTypeReturn the attribute that corresponds to the version attribute of the entity or mapped superclass.- Specified by:
getVersionin interfaceIdentifiableType<J>- Parameters:
type- the type of the represented version attribute- Returns:
- version attribute
-
getDeclaredVersion
Description copied from interface:IdentifiableTypeReturn the attribute that corresponds to the version attribute declared by the entity or mapped superclass.- Specified by:
getDeclaredVersionin interfaceIdentifiableType<J>- Parameters:
type- the type of the represented declared version attribute- Returns:
- declared version attribute
-
getIdClassAttributes
Set<SingularAttribute<? super J,?>> getIdClassAttributes()Description copied from interface:IdentifiableTypeReturn the attributes corresponding to the id class of the identifiable type.- Specified by:
getIdClassAttributesin interfaceIdentifiableType<J>- Returns:
- id attributes
-
getIdType
SimpleDomainType<?> getIdType()Description copied from interface:IdentifiableTypeReturn the type that represents the type of the id.- Specified by:
getIdTypein interfaceIdentifiableType<J>- Returns:
- type of id
-
getSupertype
IdentifiableDomainType<? super J> getSupertype()Description copied from interface:IdentifiableTypeReturn the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.- Specified by:
getSupertypein interfaceIdentifiableType<J>- Returns:
- supertype of identifiable type or null if no such supertype
-
hasIdClass
boolean hasIdClass() -
findIdAttribute
SingularPersistentAttribute<? super J,?> findIdAttribute() -
visitIdClassAttributes
-
findVersionAttribute
SingularPersistentAttribute<? super J,?> findVersionAttribute() -
findNaturalIdAttributes
List<? extends PersistentAttribute<? super J,?>> findNaturalIdAttributes()
-