Package org.hibernate.query.results
Class Builders
- java.lang.Object
-
- org.hibernate.query.results.Builders
-
public class Builders extends Object
-
-
Constructor Summary
Constructors Constructor Description Builders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultBuilder
attributeResult(String columnAlias, SingularAttribute<?,?> attribute)
static ResultBuilder
attributeResult(String columnAlias, String entityName, String attributePath, SessionFactoryImplementor sessionFactory)
static <O,R>
ResultBuilderconverted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O,R> converter, SessionFactoryImplementor sessionFactory)
static <O,R>
ResultBuilderconverted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O,R>> converterJavaType, SessionFactoryImplementor sessionFactory)
static <R> ResultBuilder
converted(String columnAlias, Class<R> jdbcJavaType, AttributeConverter<?,R> converter, SessionFactoryImplementor sessionFactory)
static <R> ResultBuilder
converted(String columnAlias, Class<R> jdbcJavaType, Class<? extends AttributeConverter<?,R>> converterJavaType, SessionFactoryImplementor sessionFactory)
static DynamicResultBuilderEntityStandard
entity(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder allowing for further configuring of the mapping.static DynamicResultBuilderEntityCalculated
entityCalculated(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.static DynamicResultBuilderEntityCalculated
entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.static DynamicFetchBuilderLegacy
fetch(String tableAlias, String ownerTableAlias, String joinPropertyName)
static ImplicitFetchBuilder
implicitFetchBuilder(NavigablePath fetchPath, Fetchable fetchable, DomainResultCreationState creationState)
static <J> DynamicResultBuilderInstantiation<J>
instantiation(Class<J> targetJavaType, SessionFactoryImplementor factory)
static ResultBuilder
resultClassBuilder(Class<?> resultMappingClass, SessionFactoryImplementor sessionFactory)
static ResultBuilder
resultClassBuilder(Class<?> resultMappingClass, ResultSetMappingResolutionContext resolutionContext)
static ResultBuilderBasicValued
scalar(int position)
static ResultBuilderBasicValued
scalar(int position, BasicType<?> type)
static DynamicResultBuilderBasic
scalar(String columnAlias)
static DynamicResultBuilderBasic
scalar(String columnAlias, Class<?> javaType, SessionFactoryImplementor factory)
static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias)
static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias, Class<?> javaTypeClass, SessionFactoryImplementor factory)
static DynamicResultBuilderBasic
scalar(String columnAlias, String resultAlias, BasicType<?> type)
static DynamicResultBuilderBasic
scalar(String columnAlias, BasicType<?> type)
-
-
-
Method Detail
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias)
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias)
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias, BasicType<?> type)
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias, BasicType<?> type)
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias, Class<?> javaType, SessionFactoryImplementor factory)
-
scalar
public static DynamicResultBuilderBasic scalar(String columnAlias, String resultAlias, Class<?> javaTypeClass, SessionFactoryImplementor factory)
-
converted
public static <R> ResultBuilder converted(String columnAlias, Class<R> jdbcJavaType, AttributeConverter<?,R> converter, SessionFactoryImplementor sessionFactory)
-
converted
public static <O,R> ResultBuilder converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O,R> converter, SessionFactoryImplementor sessionFactory)
-
converted
public static <R> ResultBuilder converted(String columnAlias, Class<R> jdbcJavaType, Class<? extends AttributeConverter<?,R>> converterJavaType, SessionFactoryImplementor sessionFactory)
-
converted
public static <O,R> ResultBuilder converted(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O,R>> converterJavaType, SessionFactoryImplementor sessionFactory)
-
scalar
public static ResultBuilderBasicValued scalar(int position)
-
scalar
public static ResultBuilderBasicValued scalar(int position, BasicType<?> type)
-
instantiation
public static <J> DynamicResultBuilderInstantiation<J> instantiation(Class<J> targetJavaType, SessionFactoryImplementor factory)
-
attributeResult
public static ResultBuilder attributeResult(String columnAlias, String entityName, String attributePath, SessionFactoryImplementor sessionFactory)
-
attributeResult
public static ResultBuilder attributeResult(String columnAlias, SingularAttribute<?,?> attribute)
-
entity
public static DynamicResultBuilderEntityStandard entity(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder allowing for further configuring of the mapping.
-
entityCalculated
public static DynamicResultBuilderEntityCalculated entityCalculated(String tableAlias, String entityName, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.
-
entityCalculated
public static DynamicResultBuilderEntityCalculated entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.
-
fetch
public static DynamicFetchBuilderLegacy fetch(String tableAlias, String ownerTableAlias, String joinPropertyName)
-
resultClassBuilder
public static ResultBuilder resultClassBuilder(Class<?> resultMappingClass, ResultSetMappingResolutionContext resolutionContext)
-
resultClassBuilder
public static ResultBuilder resultClassBuilder(Class<?> resultMappingClass, SessionFactoryImplementor sessionFactory)
-
implicitFetchBuilder
public static ImplicitFetchBuilder implicitFetchBuilder(NavigablePath fetchPath, Fetchable fetchable, DomainResultCreationState creationState)
-
-