Top Constructors Methods
org.hibernate.query.results

public Class Builders

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .Locale, org.hibernate.LockMode, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.RuntimeMetamodels, org.hibernate.metamodel.mapping.AttributeMapping, .BasicValuedModelPart, .EntityMappingType, .PluralAttributeMapping, .SingularAttributeMapping, org.hibernate.metamodel.mapping.internal.DiscriminatedAssociationAttributeMapping, .EntityCollectionPart, .ToOneAttributeMapping, org.hibernate.metamodel.spi.MappingMetamodelImplementor, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.NativeQuery, org.hibernate.query.internal.ResultSetMappingResolutionContext, org.hibernate.query.results.dynamic.DynamicFetchBuilderLegacy, .DynamicResultBuilderAttribute, .DynamicResultBuilderBasic, .DynamicResultBuilderBasicConverted, .DynamicResultBuilderBasicStandard, .DynamicResultBuilderEntityCalculated, .DynamicResultBuilderEntityStandard, .DynamicResultBuilderInstantiation, org.hibernate.query.results.implicit.ImplicitFetchBuilder, .ImplicitFetchBuilderBasic, .ImplicitFetchBuilderDiscriminatedAssociation, .ImplicitFetchBuilderEmbeddable, .ImplicitFetchBuilderEntity, .ImplicitFetchBuilderEntityPart, .ImplicitFetchBuilderPlural, .ImplicitModelPartResultBuilderEntity, .ImplicitResultClassBuilder, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.DomainResultCreationState, .Fetchable, org.hibernate.sql.results.graph.embeddable.EmbeddableValuedFetchable, org.hibernate.type.BasicType, org.hibernate.type.descriptor.java.JavaType, jakarta.persistence.AttributeConverter, jakarta.persistence.metamodel.EntityType, .SingularAttribute

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ResultBuilder
attributeResult(String columnAlias, String entityName, String attributePath, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static ResultBuilder
attributeResult(String columnAlias, SingularAttribute<?, ?> attribute)

public static <R> ResultBuilder
converted(String columnAlias, Class<R> jdbcJavaType, AttributeConverter<?, R> converter, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static <O, R> ResultBuilder
converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O, R> converter, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static <R> ResultBuilder
converted(String columnAlias, Class<R> jdbcJavaType, Class<? extends AttributeConverter<?, R>> converterJavaType, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static <O, R> ResultBuilder
converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O, R>> converterJavaType, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static DynamicResultBuilderEntityStandard
entity(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Creates a EntityResultBuilder allowing for further configuring of the mapping.
public static DynamicResultBuilderEntityCalculated
entityCalculated(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.
public static DynamicResultBuilderEntityCalculated
entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.
public static DynamicFetchBuilderLegacy
fetch(String tableAlias, String ownerTableAlias, String joinPropertyName)

public static ImplicitFetchBuilder
public static <J> DynamicResultBuilderInstantiation<J>
instantiation(Class<J> targetJavaType, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static ResultBuilder
resultClassBuilder(Class<?> resultMappingClass, ResultSetMappingResolutionContext resolutionContext)

public static ResultBuilder
resultClassBuilder(Class<?> resultMappingClass, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static DynamicResultBuilderBasic
scalar(String columnAlias)

public static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias)

public static DynamicResultBuilderBasic
scalar(String columnAlias, BasicType<?> type)

public static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias, BasicType<?> type)

public static DynamicResultBuilderBasic
scalar(String columnAlias, Class<?> javaType, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias, Class<?> javaTypeClass, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static ResultBuilderBasicValued
scalar(int position)

public static ResultBuilderBasicValued
scalar(int position, BasicType<?> type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Buildersback to summary
public Builders()

Method Detail

attributeResultback to summary
public static ResultBuilder attributeResult(String columnAlias, String entityName, String attributePath, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

attributeResultback to summary
public static ResultBuilder attributeResult(String columnAlias, SingularAttribute<?, ?> attribute)
convertedback to summary
public static <R> ResultBuilder converted(String columnAlias, Class<R> jdbcJavaType, AttributeConverter<?, R> converter, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

convertedback to summary
public static <O, R> ResultBuilder converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O, R> converter, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

convertedback to summary
public static <R> ResultBuilder converted(String columnAlias, Class<R> jdbcJavaType, Class<? extends AttributeConverter<?, R>> converterJavaType, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

convertedback to summary
public static <O, R> ResultBuilder converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O, R>> converterJavaType, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

entityback to summary
public static DynamicResultBuilderEntityStandard entity(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Creates a EntityResultBuilder allowing for further configuring of the mapping.

entityCalculatedback to summary
public static DynamicResultBuilderEntityCalculated entityCalculated(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Creates a EntityResultBuilder that does not allow any further configuring of the mapping.

See Also
NativeQuery#addEntity(Class), NativeQuery#addEntity(String), NativeQuery#addEntity(String, Class), NativeQuery#addEntity(String, String)
entityCalculatedback to summary
public static DynamicResultBuilderEntityCalculated entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Creates a EntityResultBuilder that does not allow any further configuring of the mapping.

See Also
entityCalculated(String, String, SessionFactoryImplementor), NativeQuery#addEntity(String, Class, LockMode), NativeQuery#addEntity(String, String, LockMode)
fetchback to summary
public static DynamicFetchBuilderLegacy fetch(String tableAlias, String ownerTableAlias, String joinPropertyName)
implicitFetchBuilderback to summary
public static ImplicitFetchBuilder implicitFetchBuilder(NavigablePath fetchPath, Fetchable fetchable, DomainResultCreationState creationState)
instantiationback to summary
public static <J> DynamicResultBuilderInstantiation<J> instantiation(Class<J> targetJavaType, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

resultClassBuilderback to summary
public static ResultBuilder resultClassBuilder(Class<?> resultMappingClass, ResultSetMappingResolutionContext resolutionContext)
resultClassBuilderback to summary
public static ResultBuilder resultClassBuilder(Class<?> resultMappingClass, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias)
scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias)
scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias, BasicType<?> type)
scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias, BasicType<?> type)
scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias, Class<?> javaType, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

scalarback to summary
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias, Class<?> javaTypeClass, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

scalarback to summary
public static ResultBuilderBasicValued scalar(int position)
scalarback to summary
public static ResultBuilderBasicValued scalar(int position, BasicType<?> type)