Class DynamicResultBuilderAttribute
- java.lang.Object
-
- org.hibernate.query.results.dynamic.DynamicResultBuilderAttribute
-
- All Implemented Interfaces:
NativeQuery.ResultNode
,NativeQuery.ReturnableResultNode
,NativeQuery.ReturnProperty
,DynamicResultBuilder
,ResultBuilder
public class DynamicResultBuilderAttribute extends Object implements DynamicResultBuilder, NativeQuery.ReturnProperty
DynamicResultBuilder based on a named mapped attribute
-
-
Constructor Summary
Constructors Constructor Description DynamicResultBuilderAttribute(SingularAttributeMapping attributeMapping, String columnAlias, String entityName, String attributePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeQuery.ReturnProperty
addColumnAlias(String columnAlias)
Add a column alias to this property mapping.DomainResult<?>
buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String,String,DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState)
DynamicResultBuilderAttribute
cacheKeyInstance()
boolean
equals(Object o)
Class<?>
getJavaType()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.results.ResultBuilder
visitFetchBuilders
-
-
-
-
Constructor Detail
-
DynamicResultBuilderAttribute
public DynamicResultBuilderAttribute(SingularAttributeMapping attributeMapping, String columnAlias, String entityName, String attributePath)
-
-
Method Detail
-
getJavaType
public Class<?> getJavaType()
- Specified by:
getJavaType
in interfaceResultBuilder
-
addColumnAlias
public NativeQuery.ReturnProperty addColumnAlias(String columnAlias)
Description copied from interface:NativeQuery.ReturnProperty
Add a column alias to this property mapping.- Specified by:
addColumnAlias
in interfaceNativeQuery.ReturnProperty
- Parameters:
columnAlias
- The column alias.- Returns:
this
, for method chaining
-
cacheKeyInstance
public DynamicResultBuilderAttribute cacheKeyInstance()
- Specified by:
cacheKeyInstance
in interfaceDynamicResultBuilder
- Specified by:
cacheKeyInstance
in interfaceResultBuilder
-
buildResult
public DomainResult<?> buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String,String,DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState)
- Specified by:
buildResult
in interfaceResultBuilder
-
-