Class DynamicResultBuilderEntityStandard
- java.lang.Object
-
- org.hibernate.query.results.dynamic.AbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
- org.hibernate.query.results.dynamic.DynamicResultBuilderEntityStandard
-
- All Implemented Interfaces:
NativeQuery.ResultNode
,NativeQuery.ReturnableResultNode
,NativeQuery.RootReturn
,DynamicFetchBuilderContainer
,DynamicResultBuilder
,DynamicResultBuilderEntity
,ResultBuilder
,ResultBuilderEntityValued
public class DynamicResultBuilderEntityStandard extends AbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard> implements DynamicResultBuilderEntity, NativeQuery.RootReturn
-
-
Constructor Summary
Constructors Constructor Description DynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias)
DynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias, NavigablePath navigablePath)
-
Method Summary
-
Methods inherited from class org.hibernate.query.results.dynamic.AbstractFetchBuilderContainer
addFetchBuilder, addProperty, addProperty, addProperty, findFetchBuilder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.NativeQuery.RootReturn
addProperty, addProperty
-
Methods inherited from interface org.hibernate.query.results.ResultBuilder
visitFetchBuilders
-
-
-
-
Constructor Detail
-
DynamicResultBuilderEntityStandard
public DynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias)
-
DynamicResultBuilderEntityStandard
public DynamicResultBuilderEntityStandard(EntityMappingType entityMapping, String tableAlias, NavigablePath navigablePath)
-
-
Method Detail
-
getJavaType
public Class<?> getJavaType()
- Specified by:
getJavaType
in interfaceResultBuilder
-
getEntityMapping
public EntityMappingType getEntityMapping()
- Specified by:
getEntityMapping
in interfaceNativeQuery.RootReturn
-
getTableAlias
public String getTableAlias()
- Specified by:
getTableAlias
in interfaceNativeQuery.RootReturn
-
getNavigablePath
public NavigablePath getNavigablePath()
- Specified by:
getNavigablePath
in interfaceNativeQuery.RootReturn
-
getLockMode
public LockMode getLockMode()
- Specified by:
getLockMode
in interfaceNativeQuery.RootReturn
-
addIdColumnAliases
public NativeQuery.RootReturn addIdColumnAliases(String... aliases)
- Specified by:
addIdColumnAliases
in interfaceNativeQuery.RootReturn
-
getDiscriminatorAlias
public String getDiscriminatorAlias()
- Specified by:
getDiscriminatorAlias
in interfaceNativeQuery.RootReturn
-
getPropertyBase
protected String getPropertyBase()
- Specified by:
getPropertyBase
in classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
cacheKeyInstance
public DynamicResultBuilderEntityStandard cacheKeyInstance()
- Specified by:
cacheKeyInstance
in interfaceDynamicResultBuilder
- Specified by:
cacheKeyInstance
in interfaceResultBuilder
-
buildResult
public EntityResult buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String,String,DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState)
- Specified by:
buildResult
in interfaceDynamicResultBuilderEntity
- Specified by:
buildResult
in interfaceResultBuilder
- Specified by:
buildResult
in interfaceResultBuilderEntityValued
-
buildFetch
public Fetch buildFetch(FetchParent parent, Fetchable fetchable, JdbcValuesMetadata jdbcResultsMetadata, DomainResultCreationState domainResultCreationState)
-
setLockMode
public DynamicResultBuilderEntityStandard setLockMode(LockMode lockMode)
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
-
setDiscriminatorAlias
public DynamicResultBuilderEntityStandard setDiscriminatorAlias(String columnName)
Description copied from interface:NativeQuery.RootReturn
Name the column alias that identifies the entity's discriminator.- Specified by:
setDiscriminatorAlias
in interfaceNativeQuery.RootReturn
- Parameters:
columnName
- The discriminator column alias- Returns:
this
, for method chaining
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractFetchBuilderContainer<DynamicResultBuilderEntityStandard>
-
-