Class DynamicResultBuilderEntityStandard
java.lang.Object
org.hibernate.query.results.internal.dynamic.AbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
org.hibernate.query.results.internal.dynamic.DynamicResultBuilderEntityStandard
- All Implemented Interfaces:
NativeQuery.ResultNode,NativeQuery.ReturnableResultNode,NativeQuery.RootReturn,GraphNodeBuilder,DynamicFetchBuilderContainer,DynamicResultBuilder,DynamicResultBuilderEntity,ResultBuilder,ResultBuilderEntityValued
public class DynamicResultBuilderEntityStandard
extends AbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
implements DynamicResultBuilderEntity, NativeQuery.RootReturn
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias) DynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias, NavigablePath navigablePath) -
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.buildFetch(FetchParent parent, Fetchable fetchable, JdbcValuesMetadata jdbcResultsMetadata, DomainResultCreationState domainResultCreationState) buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Build a resultbooleanClass<?> The Java type of the value returned for a result built by this builder.protected StringinthashCode()setDiscriminatorAlias(String columnName) Name the column alias that identifies the entity's discriminator.setLockMode(LockMode lockMode) Set the lock mode for this return.Methods inherited from class org.hibernate.query.results.internal.dynamic.AbstractFetchBuilderContainer
addFetchBuilder, addProperty, addProperty, addProperty, findFetchBuilderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.results.ResultBuilder
visitFetchBuilders
-
Constructor Details
-
DynamicResultBuilderEntityStandard
-
-
Method Details
-
getJavaType
Description copied from interface:ResultBuilderThe Java type of the value returned for a result built by this builder.- Specified by:
getJavaTypein interfaceResultBuilder- See Also:
-
getEntityMapping
- Specified by:
getEntityMappingin interfaceNativeQuery.RootReturn
-
getTableAlias
- Specified by:
getTableAliasin interfaceNativeQuery.RootReturn
-
getLockMode
- Specified by:
getLockModein interfaceNativeQuery.RootReturn
-
addIdColumnAliases
- Specified by:
addIdColumnAliasesin interfaceNativeQuery.RootReturn
-
getDiscriminatorAlias
- Specified by:
getDiscriminatorAliasin interfaceNativeQuery.RootReturn
-
getPropertyBase
- Specified by:
getPropertyBasein classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
cacheKeyInstance
- Specified by:
cacheKeyInstancein interfaceDynamicResultBuilder- Specified by:
cacheKeyInstancein interfaceResultBuilder
-
buildResult
public EntityResult buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, DomainResultCreationState domainResultCreationState) Description copied from interface:ResultBuilderBuild a result- Specified by:
buildResultin interfaceDynamicResultBuilderEntity- Specified by:
buildResultin interfaceResultBuilder- Specified by:
buildResultin interfaceResultBuilderEntityValued- Parameters:
jdbcResultsMetadata- The JDBC values and metadataresultPosition- The position in the domain results for the result to be builtdomainResultCreationState- Access to useful stuff
-
buildFetch
public Fetch buildFetch(FetchParent parent, Fetchable fetchable, JdbcValuesMetadata jdbcResultsMetadata, DomainResultCreationState domainResultCreationState) -
setLockMode
Description copied from interface:NativeQuery.RootReturnSet the lock mode for this return.- Specified by:
setLockModein interfaceNativeQuery.RootReturn- Parameters:
lockMode- The new lock mode.- Returns:
this, for method chaining
-
setDiscriminatorAlias
Description copied from interface:NativeQuery.RootReturnName the column alias that identifies the entity's discriminator.- Specified by:
setDiscriminatorAliasin interfaceNativeQuery.RootReturn- Parameters:
columnName- The discriminator column alias- Returns:
this, for method chaining
-
addProperty
Description copied from interface:NativeQuery.RootReturnAdd a simple property-to-one-column mapping.- Specified by:
addPropertyin 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.RootReturnAdd a property, presumably with more than one column.- Specified by:
addPropertyin interfaceNativeQuery.RootReturn- Parameters:
propertyName- The name of the property.- Returns:
- The config object for further control.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
equals
- Overrides:
equalsin classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-