Top Inners Fields Constructors Methods
org.hibernate.boot.query

public Class SqlResultSetMappingDescriptor

extends Object
implements NamedResultSetMappingDescriptor
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.query.NamedResultSetMappingDescriptor
Imports
java.util.ArrayList, .HashMap, .List, .Locale, .Map, org.hibernate.LockMode, .MappingException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.RuntimeMetamodels, org.hibernate.metamodel.mapping.BasicValuedModelPart, .EntityDiscriminatorMapping, .EntityMappingType, .ModelPart, .ModelPartContainer, org.hibernate.metamodel.mapping.internal.EmbeddedAttributeMapping, org.hibernate.query.internal.FetchMementoBasicStandard, .FetchMementoEntityStandard, .ModelPartResultMementoBasicImpl, .NamedResultSetMappingMementoImpl, .ResultMementoBasicStandard, .ResultMementoEntityJpa, .ResultMementoInstantiationStandard, .ResultSetMappingResolutionContext, org.hibernate.query.named.FetchMemento, .FetchMementoBasic, .NamedResultSetMappingMemento, .ResultMemento, .ResultMementoInstantiation.ArgumentMemento, org.hibernate.spi.EntityIdentifierNavigablePath, .NavigablePath, org.hibernate.sql.results.graph.entity.EntityValuedFetchable, org.hibernate.type.descriptor.java.JavaType, jakarta.persistence.ColumnResult, .ConstructorResult, .EntityResult, .FieldResult, .SqlResultSetMapping

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
public static class
private static class

Field Summary

Modifier and TypeField and Description
private final String
private final List<ResultDescriptor>

Constructor Summary

AccessConstructor and Description
private
SqlResultSetMappingDescriptor(String mappingName, List<ResultDescriptor> resultDescriptors)

Method Summary

Modifier and TypeMethod and Description
public static SqlResultSetMappingDescriptor
from(SqlResultSetMapping mappingAnnotation, String name)

public static SqlResultSetMappingDescriptor
from(SqlResultSetMapping mappingAnnotation)

public String
getRegistrationName()

Implements org.hibernate.boot.query.NamedResultSetMappingDescriptor.getRegistrationName.

The name under which the result-set-mapping is to be registered
public NamedResultSetMappingMemento
resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.NamedResultSetMappingDescriptor.resolve.

Create a representation of the described ResultSet mapping for the purpose of being stored in Hibernate's NamedObjectRepository
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mappingNameback to summary
private final String mappingName
resultDescriptorsback to summary
private final List<ResultDescriptor> resultDescriptors

Constructor Detail

SqlResultSetMappingDescriptorback to summary
private SqlResultSetMappingDescriptor(String mappingName, List<ResultDescriptor> resultDescriptors)

Method Detail

fromback to summary
public static SqlResultSetMappingDescriptor from(SqlResultSetMapping mappingAnnotation, String name)
fromback to summary
public static SqlResultSetMappingDescriptor from(SqlResultSetMapping mappingAnnotation)
getRegistrationNameback to summary
public String getRegistrationName()

Implements org.hibernate.boot.query.NamedResultSetMappingDescriptor.getRegistrationName.

Doc from org.hibernate.boot.query.NamedResultSetMappingDescriptor.getRegistrationName.

The name under which the result-set-mapping is to be registered

Annotations
@Override
resolveback to summary
public NamedResultSetMappingMemento resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.NamedResultSetMappingDescriptor.resolve.

Doc from org.hibernate.boot.query.NamedResultSetMappingDescriptor.resolve.

Create a representation of the described ResultSet mapping for the purpose of being stored in Hibernate's NamedObjectRepository

Annotations
@Override
org.hibernate.boot.query back to summary

private Class SqlResultSetMappingDescriptor.AttributeFetchDescriptor

extends Object
implements FetchDescriptor
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.query.SqlResultSetMappingDescriptor.AttributeFetchDescriptor
All Implemented Interfaces
org.hibernate.boot.query.FetchDescriptor

Field Summary

Modifier and TypeField and Description
private final List<String>
private final String
private final NavigablePath
private final String
private final String[]

Constructor Summary

AccessConstructor and Description
private
AttributeFetchDescriptor(NavigablePath entityPath, String entityName, String propertyPath, String columnName)

Method Summary

Modifier and TypeMethod and Description
private void
addColumn(FieldResult fieldResult)

public ResultMemento
private static SqlResultSetMappingDescriptor.AttributeFetchDescriptor
from(NavigablePath entityPath, String entityName, FieldResult fieldResult)

private FetchMemento
getFetchMemento(NavigablePath navigablePath, ModelPart subPart)

public FetchMemento
resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.FetchDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnNamesback to summary
private final List<String> columnNames
entityNameback to summary
private final String entityName
navigablePathback to summary
private final NavigablePath navigablePath
propertyPathback to summary
private final String propertyPath
propertyPathPartsback to summary
private final String[] propertyPathParts

Constructor Detail

AttributeFetchDescriptorback to summary
private AttributeFetchDescriptor(NavigablePath entityPath, String entityName, String propertyPath, String columnName)

Method Detail

addColumnback to summary
private void addColumn(FieldResult fieldResult)
asResultMementoback to summary
public ResultMemento asResultMemento(NavigablePath path, ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.FetchDescriptor.asResultMemento.

Annotations
@Override
fromback to summary
private static SqlResultSetMappingDescriptor.AttributeFetchDescriptor from(NavigablePath entityPath, String entityName, FieldResult fieldResult)
getFetchMementoback to summary
private FetchMemento getFetchMemento(NavigablePath navigablePath, ModelPart subPart)
resolveback to summary
public FetchMemento resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.FetchDescriptor.resolve.

Doc from org.hibernate.boot.query.FetchDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository

Annotations
@Override
org.hibernate.boot.query back to summary

private Class SqlResultSetMappingDescriptor.ConstructorResultDescriptor

extends Object
implements ResultDescriptor
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.query.SqlResultSetMappingDescriptor.ConstructorResultDescriptor
All Implemented Interfaces
org.hibernate.boot.query.ResultDescriptor

See Also
jakarta.persistence.ConstructorResult

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final List<SqlResultSetMappingDescriptor.ConstructorResultDescriptor.ArgumentDescriptor>
private final String
private final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResultMemento
resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argumentResultDescriptorsback to summary
private final List<SqlResultSetMappingDescriptor.ConstructorResultDescriptor.ArgumentDescriptor> argumentResultDescriptors
mappingNameback to summary
private final String mappingName
targetJavaTypeback to summary
private final Class<?> targetJavaType

Constructor Detail

ConstructorResultDescriptorback to summary
public ConstructorResultDescriptor(ConstructorResult constructorResult, SqlResultSetMapping mappingAnnotation)

Method Detail

resolveback to summary
public ResultMemento resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Doc from org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository

Annotations
@Override
org.hibernate.boot.query back to summary

private Class SqlResultSetMappingDescriptor.ConstructorResultDescriptor.ArgumentDescriptor

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.query.SqlResultSetMappingDescriptor.ConstructorResultDescriptor.ArgumentDescriptor

Field Summary

Modifier and TypeField and Description
private final SqlResultSetMappingDescriptor.JpaColumnResultDescriptor

Constructor Summary

AccessConstructor and Description
private

Field Detail

argumentResultDescriptorback to summary
private final SqlResultSetMappingDescriptor.JpaColumnResultDescriptor argumentResultDescriptor

Constructor Detail

ArgumentDescriptorback to summary
private ArgumentDescriptor(SqlResultSetMappingDescriptor.JpaColumnResultDescriptor argumentResultDescriptor)

Method Detail

resolveback to summary
pack-priv ResultMementoInstantiation.ArgumentMemento resolve(ResultSetMappingResolutionContext resolutionContext)
org.hibernate.boot.query back to summary

public Class SqlResultSetMappingDescriptor.EntityResultDescriptor

extends Object
implements ResultDescriptor
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.query.SqlResultSetMappingDescriptor.EntityResultDescriptor
All Implemented Interfaces
org.hibernate.boot.query.ResultDescriptor

See Also
jakarta.persistence.EntityResult

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final Map<String, SqlResultSetMappingDescriptor.AttributeFetchDescriptor>
private final NavigablePath

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResultMemento
resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository
private static FetchMementoBasic
resolveDiscriminatorMemento(EntityMappingType entityMapping, String discriminatorColumn, NavigablePath entityPath)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

discriminatorColumnback to summary
private final String discriminatorColumn
entityNameback to summary
private final String entityName
explicitFetchMappingsback to summary
private final Map<String, SqlResultSetMappingDescriptor.AttributeFetchDescriptor> explicitFetchMappings
navigablePathback to summary
private final NavigablePath navigablePath

Constructor Detail

EntityResultDescriptorback to summary
public EntityResultDescriptor(EntityResult entityResult)

Method Detail

resolveback to summary
public ResultMemento resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Doc from org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository

Annotations
@Override
resolveDiscriminatorMementoback to summary
private static FetchMementoBasic resolveDiscriminatorMemento(EntityMappingType entityMapping, String discriminatorColumn, NavigablePath entityPath)
org.hibernate.boot.query back to summary

private Class SqlResultSetMappingDescriptor.JpaColumnResultDescriptor

extends Object
implements ResultDescriptor
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.query.SqlResultSetMappingDescriptor.JpaColumnResultDescriptor
All Implemented Interfaces
org.hibernate.boot.query.ResultDescriptor

See Also
jakarta.persistence.ColumnResult

Field Summary

Modifier and TypeField and Description
private final ColumnResult
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResultMemento
resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnResultback to summary
private final ColumnResult columnResult
mappingNameback to summary
private final String mappingName

Constructor Detail

JpaColumnResultDescriptorback to summary
public JpaColumnResultDescriptor(ColumnResult columnResult, SqlResultSetMapping mappingAnnotation)

Method Detail

resolveback to summary
public ResultMemento resolve(ResultSetMappingResolutionContext resolutionContext)

Implements org.hibernate.boot.query.ResultDescriptor.resolve.

Doc from org.hibernate.boot.query.ResultDescriptor.resolve.

Resolve the descriptor into a memento capable of being stored in the NamedObjectRepository

Annotations
@Override