Class DiscriminatedAssociationMapping
java.lang.Object
org.hibernate.metamodel.mapping.internal.DiscriminatedAssociationMapping
- All Implemented Interfaces:
MappingType
,FetchOptions
,FetchStyleAccess
,FetchTimingAccess
Represents the "type" of an any-valued mapping
-
Constructor Summary
ConstructorDescriptionDiscriminatedAssociationMapping
(DiscriminatedAssociationModelPart modelPart, AnyDiscriminatorPart discriminatorPart, BasicValuedModelPart keyPart, JavaType<?> baseAssociationJtd, FetchTiming fetchTiming, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescription<X,
Y> int breakDownJdbcValues
(int offset, X x, Y y, Object domainValue, ModelPart.JdbcValueBiConsumer<X, Y> valueConsumer, SharedSessionContractImplementor session) <T> DomainResult<T>
createDomainResult
(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState) <X,
Y> int decompose
(int offset, X x, Y y, Object domainValue, ModelPart.JdbcValueBiConsumer<X, Y> valueConsumer, SharedSessionContractImplementor session) findSubPart
(String name, EntityMappingType treatTarget) from
(NavigableRole containerRole, JavaType<?> baseAssociationJtd, DiscriminatedAssociationModelPart declaringModelPart, AnyType anyType, Any bootValueMapping, MappingModelCreationProcess creationProcess) generateFetch
(FetchParent fetchParent, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState) JavaType<?>
JavaType<?>
The descriptor descriptor for the mapped Java typegetStyle()
resolveDiscriminatorValueToEntityMapping
(Object discriminatorValue) resolveDiscriminatorValueToEntityMapping
(EntityMappingType entityMappingType)
-
Constructor Details
-
DiscriminatedAssociationMapping
public DiscriminatedAssociationMapping(DiscriminatedAssociationModelPart modelPart, AnyDiscriminatorPart discriminatorPart, BasicValuedModelPart keyPart, JavaType<?> baseAssociationJtd, FetchTiming fetchTiming, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
getModelPart
-
getDiscriminatorPart
-
getKeyPart
-
resolveDiscriminatorValueToEntityMapping
-
resolveDiscriminatorValueToEntityMapping
-
findSubPart
-
getPartMappingType
-
getJavaType
-
getMappedJavaType
Description copied from interface:MappingType
The descriptor descriptor for the mapped Java type- Specified by:
getMappedJavaType
in interfaceMappingType
-
getStyle
- Specified by:
getStyle
in interfaceFetchStyleAccess
-
getTiming
- Specified by:
getTiming
in interfaceFetchTimingAccess