Class CompleteResultBuilderEntityStandard
java.lang.Object
org.hibernate.query.results.internal.complete.CompleteResultBuilderEntityStandard
- All Implemented Interfaces:
NativeQuery.ResultNode
,NativeQuery.ReturnableResultNode
,NativeQuery.RootReturn
,GraphNodeBuilder
,CompleteResultBuilder
,CompleteResultBuilderEntityValued
,ModelPartReference
,ModelPartReferenceEntity
,ResultBuilder
,ResultBuilderEntityValued
public class CompleteResultBuilderEntityStandard
extends Object
implements CompleteResultBuilderEntityValued, NativeQuery.RootReturn
-
Constructor Summary
ConstructorsConstructorDescriptionCompleteResultBuilderEntityStandard
(String tableAlias, NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, FetchBuilderBasicValued discriminatorFetchBuilder, HashMap<Fetchable, FetchBuilder> explicitFetchBuilderMap) -
Method Summary
Modifier and TypeMethodDescriptionaddIdColumnAliases
(String... aliases) addProperty
(String propertyName) Add a property, presumably with more than one column.addProperty
(String propertyName, String columnAlias) Add a simple property-to-one-column mapping.buildResult
(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Build a resultboolean
Class<?>
The Java type of the value returned for a result built by this builder.The part of the domain model that is referencedint
hashCode()
setDiscriminatorAlias
(String columnAlias) Name the column alias that identifies the entity's discriminator.setLockMode
(LockMode lockMode) Set the lock mode for this return.void
visitFetchBuilders
(BiConsumer<Fetchable, FetchBuilder> consumer)
-
Constructor Details
-
Method Details
-
getJavaType
Description copied from interface:ResultBuilder
The Java type of the value returned for a result built by this builder.- Specified by:
getJavaType
in interfaceResultBuilder
- See Also:
-
getReferencedPart
Description copied from interface:ModelPartReference
The part of the domain model that is referenced- Specified by:
getReferencedPart
in interfaceCompleteResultBuilderEntityValued
- Specified by:
getReferencedPart
in interfaceModelPartReference
- Specified by:
getReferencedPart
in interfaceModelPartReferenceEntity
-
getTableAlias
- Specified by:
getTableAlias
in interfaceNativeQuery.RootReturn
-
getDiscriminatorAlias
- Specified by:
getDiscriminatorAlias
in interfaceNativeQuery.RootReturn
-
getEntityMapping
- Specified by:
getEntityMapping
in interfaceNativeQuery.RootReturn
-
getLockMode
- Specified by:
getLockMode
in interfaceNativeQuery.RootReturn
-
setLockMode
Description copied from interface:NativeQuery.RootReturn
Set the lock mode for this return.- Specified by:
setLockMode
in interfaceNativeQuery.RootReturn
- Parameters:
lockMode
- The new lock mode.- Returns:
this
, for method chaining
-
addIdColumnAliases
- Specified by:
addIdColumnAliases
in interfaceNativeQuery.RootReturn
-
setDiscriminatorAlias
Description copied from interface:NativeQuery.RootReturn
Name the column alias that identifies the entity's discriminator.- Specified by:
setDiscriminatorAlias
in interfaceNativeQuery.RootReturn
- Parameters:
columnAlias
- The discriminator column alias- Returns:
this
, for method chaining
-
addProperty
Description copied from interface:NativeQuery.RootReturn
Add a simple property-to-one-column mapping.- Specified by:
addProperty
in interfaceNativeQuery.RootReturn
- Parameters:
propertyName
- The name of the property.columnAlias
- The name of the column- Returns:
this
, for method chaining
-
addProperty
Description copied from interface:NativeQuery.RootReturn
Add a property, presumably with more than one column.- Specified by:
addProperty
in interfaceNativeQuery.RootReturn
- Parameters:
propertyName
- The name of the property.- Returns:
- The config object for further control.
-
cacheKeyInstance
- Specified by:
cacheKeyInstance
in interfaceResultBuilder
-
buildResult
public EntityResult buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Description copied from interface:ResultBuilder
Build a result- Specified by:
buildResult
in interfaceResultBuilder
- Specified by:
buildResult
in interfaceResultBuilderEntityValued
- Parameters:
jdbcResultsMetadata
- The JDBC values and metadataresultPosition
- The position in the domain results for the result to be builtdomainResultCreationState
- Access to useful stuff
-
visitFetchBuilders
- Specified by:
visitFetchBuilders
in interfaceResultBuilder
-
hashCode
public int hashCode() -
equals
-