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