Package org.hibernate.query.results
Class Builders
- java.lang.Object
- org.hibernate.query.results.Builders
public classBuildersextendsObject
Constructor Summary
Constructors Constructor Description Builders()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description staticResultBuilderattributeResult(String columnAlias,SingularAttribute<?,?> attribute)staticResultBuilderattributeResult(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<? extendsAttributeConverter<O,R>> converterJavaType,SessionFactoryImplementor sessionFactory)static <R> ResultBuilderconverted(String columnAlias,Class<R> jdbcJavaType,AttributeConverter<?,R> converter,SessionFactoryImplementor sessionFactory)static <R> ResultBuilderconverted(String columnAlias,Class<R> jdbcJavaType,Class<? extendsAttributeConverter<?,R>> converterJavaType,SessionFactoryImplementor sessionFactory)staticDynamicResultBuilderEntityStandardentity(String tableAlias,String entityName,SessionFactoryImplementor sessionFactory)Creates a EntityResultBuilder allowing for further configuring of the mapping.staticDynamicResultBuilderEntityCalculatedentityCalculated(String tableAlias,String entityName,SessionFactoryImplementor sessionFactory)Creates a EntityResultBuilder that does not allow any further configuring of the mapping.staticDynamicResultBuilderEntityCalculatedentityCalculated(String tableAlias,String entityName,LockMode explicitLockMode,SessionFactoryImplementor sessionFactory)Creates a EntityResultBuilder that does not allow any further configuring of the mapping.staticDynamicFetchBuilderLegacyfetch(String tableAlias,String ownerTableAlias,String joinPropertyName)staticImplicitFetchBuilderimplicitFetchBuilder(NavigablePath fetchPath,Fetchable fetchable,DomainResultCreationState creationState)static <J> DynamicResultBuilderInstantiation<J>instantiation(Class<J> targetJavaType,SessionFactoryImplementor factory)staticResultBuilderresultClassBuilder(Class<?> resultMappingClass,SessionFactoryImplementor sessionFactory)staticResultBuilderresultClassBuilder(Class<?> resultMappingClass,ResultSetMappingResolutionContext resolutionContext)staticResultBuilderBasicValuedscalar(int position)staticResultBuilderBasicValuedscalar(int position,BasicType<?> type)staticDynamicResultBuilderBasicscalar(String columnAlias)staticDynamicResultBuilderBasicscalar(String columnAlias,Class<?> javaType,SessionFactoryImplementor factory)staticDynamicResultBuilderBasicscalar(String columnAlias,String resultAlias)staticDynamicResultBuilderBasicscalar(String columnAlias,String resultAlias,Class<?> javaTypeClass,SessionFactoryImplementor factory)staticDynamicResultBuilderBasicscalar(String columnAlias,String resultAlias,BasicType<?> type)staticDynamicResultBuilderBasicscalar(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<? extendsAttributeConverter<?,R>> converterJavaType,SessionFactoryImplementor sessionFactory)
converted
public static <O,R> ResultBuilder converted(String columnAlias,Class<O> domainJavaType,Class<R> jdbcJavaType,Class<? extendsAttributeConverter<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)