Package org.hibernate.boot.query
Class HbmResultSetMappingDescriptor
- java.lang.Object
-
- org.hibernate.boot.query.HbmResultSetMappingDescriptor
-
- All Implemented Interfaces:
NamedResultSetMappingDescriptor
public class HbmResultSetMappingDescriptor extends Object implements NamedResultSetMappingDescriptor
Boot-time descriptor of a result set mapping as defined in anhbm.xml
file either implicitly or explicitly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HbmResultSetMappingDescriptor.CollectionResultDescriptor
static class
HbmResultSetMappingDescriptor.EntityResultDescriptor
static interface
HbmResultSetMappingDescriptor.HbmFetchDescriptor
static interface
HbmResultSetMappingDescriptor.HbmFetchParent
static class
HbmResultSetMappingDescriptor.HbmFetchParentMemento
static class
HbmResultSetMappingDescriptor.JoinDescriptor
static class
HbmResultSetMappingDescriptor.PropertyFetchDescriptor
static class
HbmResultSetMappingDescriptor.ScalarDescriptor
-
Constructor Summary
Constructors Constructor Description HbmResultSetMappingDescriptor(String registrationName, List<ResultDescriptor> resultDescriptors, Map<String,Map<String,HbmResultSetMappingDescriptor.JoinDescriptor>> joinDescriptors, Map<String,HbmResultSetMappingDescriptor.HbmFetchParent> fetchParentsByAlias)
Constructor for an implicit resultset mapping defined inline as part of a `<sql-query/>` stanzaHbmResultSetMappingDescriptor(JaxbHbmResultSetMappingType hbmResultSetMapping, MetadataBuildingContext context)
Constructor for an explicit<resultset/>
mapping.
-
Method Summary
-
-
-
Constructor Detail
-
HbmResultSetMappingDescriptor
public HbmResultSetMappingDescriptor(JaxbHbmResultSetMappingType hbmResultSetMapping, MetadataBuildingContext context)
Constructor for an explicit<resultset/>
mapping.
-
HbmResultSetMappingDescriptor
public HbmResultSetMappingDescriptor(String registrationName, List<ResultDescriptor> resultDescriptors, Map<String,Map<String,HbmResultSetMappingDescriptor.JoinDescriptor>> joinDescriptors, Map<String,HbmResultSetMappingDescriptor.HbmFetchParent> fetchParentsByAlias)
Constructor for an implicit resultset mapping defined inline as part of a `<sql-query/>` stanza
-
-
Method Detail
-
collectJoinFetch
public static void collectJoinFetch(JaxbHbmNativeQueryJoinReturnType jaxbHbmJoin, Map<String,Map<String,HbmResultSetMappingDescriptor.JoinDescriptor>> joinDescriptors, Map<String,HbmResultSetMappingDescriptor.HbmFetchParent> fetchParentByAlias, String registrationName, MetadataBuildingContext context)
-
getRegistrationName
public String getRegistrationName()
Description copied from interface:NamedResultSetMappingDescriptor
The name under which the result-set-mapping is to be registered- Specified by:
getRegistrationName
in interfaceNamedResultSetMappingDescriptor
-
resolve
public NamedResultSetMappingMemento resolve(ResultSetMappingResolutionContext resolutionContext)
Description copied from interface:NamedResultSetMappingDescriptor
Create a representation of the described ResultSet mapping for the purpose of being stored in Hibernate'sNamedObjectRepository
- Specified by:
resolve
in interfaceNamedResultSetMappingDescriptor
- See Also:
QueryEngine.getNamedObjectRepository()
-
extractPropertyFetchDescriptors
public static List<HbmResultSetMappingDescriptor.HbmFetchDescriptor> extractPropertyFetchDescriptors(List<JaxbHbmNativeQueryPropertyReturnType> hbmReturnProperties, HbmResultSetMappingDescriptor.HbmFetchParent fetchParent, String registrationName, MetadataBuildingContext context)
-
applyFetchJoins
public static void applyFetchJoins(Supplier<Map<String,Map<String,HbmResultSetMappingDescriptor.JoinDescriptor>>> joinDescriptorsAccess, String tableAlias, List<HbmResultSetMappingDescriptor.HbmFetchDescriptor> propertyFetchDescriptors)
-
-