Top Fields Constructors Methods
org.hibernate.query.derived

public Class AnonymousTupleEntityValuedModelPart

extends Object
implements EntityValuedModelPart, EntityMappingType, TableGroupJoinProducer, ValuedModelPart, ParentTableGroupUseChecker
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.ast.tree.from.LazyTableGroup.ParentTableGroupUseChecker, org.hibernate.metamodel.mapping.ValuedModelPart, org.hibernate.metamodel.mapping.SelectableMappings, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.type.descriptor.java.JavaTypedExpressible, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.sql.ast.tree.from.TableGroupJoinProducer, org.hibernate.sql.ast.tree.from.TableGroupProducer, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.metamodel.mapping.SoftDeletableModelPart, org.hibernate.metamodel.mapping.Discriminable, org.hibernate.metamodel.mapping.Restrictable, org.hibernate.metamodel.mapping.WhereRestrictable, org.hibernate.metamodel.mapping.FilterRestrictable, org.hibernate.loader.ast.spi.Loadable, org.hibernate.sql.ast.tree.from.RootTableGroupProducer, org.hibernate.metamodel.mapping.EntityValuedModelPart, org.hibernate.sql.results.graph.FetchableContainer, org.hibernate.metamodel.mapping.ManagedMappingType, org.hibernate.metamodel.mapping.MappingType
Annotations
@Incubating
Imports
java.util.ArrayList, .HashSet, .List, .Set, java.util.function.BiConsumer, .Consumer, org.hibernate.Incubating, org.hibernate.cache.MutableCacheKeyBuilder, org.hibernate.engine.OptimisticLockStyle, org.hibernate.engine.spi.LoadQueryInfluencers, .SharedSessionContractImplementor, org.hibernate.internal.util.IndexedConsumer, org.hibernate.loader.ast.spi.MultiNaturalIdLoader, .NaturalIdLoader, org.hibernate.metamodel.mapping.AttributeMapping, .AttributeMappingsList, .AttributeMappingsMap, .CompositeIdentifierMapping, .EntityAssociationMapping, .EntityDiscriminatorMapping, .EntityIdentifierMapping, .EntityMappingType, .EntityRowIdMapping, .EntityValuedModelPart, .EntityVersionMapping, .ForeignKeyDescriptor, .JdbcMapping, .MappingType, .ModelPart, .NaturalIdMapping, .PluralAttributeMapping, .SelectableConsumer, .SelectableMapping, .SoftDeleteMapping, .TableDetails, .ValuedModelPart, org.hibernate.metamodel.mapping.internal.OneToManyCollectionPart, .SingleAttributeIdentifierMapping, .ToOneAttributeMapping, org.hibernate.metamodel.model.domain.DomainType, .NavigableRole, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.sqm.ComparisonOperator, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.SqlAstJoinType, org.hibernate.sql.ast.spi.SqlAliasBase, .SqlAstCreationState, .SqlExpressionResolver, .SqlSelection, org.hibernate.sql.ast.tree.expression.ColumnReference, org.hibernate.sql.ast.tree.from.LazyTableGroup, .StandardTableGroup, .TableGroup, .TableGroupJoin, .TableGroupJoinProducer, .TableGroupProducer, .TableReference, org.hibernate.sql.ast.tree.predicate.ComparisonPredicate, .Predicate, org.hibernate.sql.results.graph.DomainResult, .DomainResultCreationState, org.hibernate.type.descriptor.java.JavaType

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final String
private final EntityValuedModelPart
private final DomainType<?>
private final int
private final EntityIdentifierMapping
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
AnonymousTupleEntityValuedModelPart(EntityIdentifierMapping identifierMapping, DomainType<?> domainType, String componentName, EntityValuedModelPart delegate, int fetchableIndex)

Method Summary

Modifier and TypeMethod and Description
public void
addToCacheKey(MutableCacheKeyBuilder
the MutableCacheKey used to add the disassembled value and the hashCode
cacheKey
,
Object
the value to disassemble
value
,
SharedSessionContractImplementor
the SharedSessionContractImplementor
session
)

Overrides default org.hibernate.metamodel.mapping.EntityValuedModelPart.addToCacheKey.

Implements org.hibernate.metamodel.mapping.Bindable.addToCacheKey, org.hibernate.type.descriptor.java.JavaTypedExpressible.addToCacheKey.

Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
public void
applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState)

Overrides default org.hibernate.metamodel.mapping.EntityValuedModelPart.applySqlSelections.

Implements org.hibernate.metamodel.mapping.ModelPart.applySqlSelections.

Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
public void
applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer)

Overrides default org.hibernate.metamodel.mapping.EntityValuedModelPart.applySqlSelections.

Implements org.hibernate.metamodel.mapping.ModelPart.applySqlSelections.

Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
public <X, Y> int
breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart.JdbcValueBiConsumer<X, Y> valueConsumer, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.ModelPart.breakDownJdbcValues.

Breaks down the domain value to its constituent JDBC values.
public boolean
public boolean
public <T> DomainResult<T>
createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)

Overrides default org.hibernate.metamodel.mapping.EntityValuedModelPart.createDomainResult.

Implements org.hibernate.metamodel.mapping.ModelPart.createDomainResult.

Create a DomainResult for a specific reference to this ModelPart.
public LazyTableGroup
createRootTableGroupJoin(NavigablePath
The NavigablePath to the join
navigablePath
,
TableGroup
The join's (L)eft-(H)and (S)ide
lhs
,
String explicitSourceAlias, SqlAliasBase
A specific SqlAliasBase to use. May be null indicating one should be created using the SqlAliasBaseGenerator from creationState
explicitSqlAliasBase
,
SqlAstJoinType
An explicit join-type. May be null to signal that the join is for an implicit path.
sqlAstJoinType
,
boolean fetched, Consumer<Predicate>
Consumer for additional predicates from the producer's mapping.
predicateConsumer
,
SqlAstCreationState creationState)

Implements org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.createRootTableGroupJoin.

Create the "join", but return a TableGroup.
private Consumer<TableGroup>
public TableGroup
createTableGroupInternal(boolean canUseInnerJoins, NavigablePath navigablePath, boolean fetched, String sourceAlias, final SqlAliasBase sqlAliasBase, SqlAstCreationState creationState)

public TableGroupJoin
createTableGroupJoin(NavigablePath
The NavigablePath to the join
navigablePath
,
TableGroup
The join's (L)eft-(H)and (S)ide
lhs
,
String explicitSourceAlias, SqlAliasBase
A specific SqlAliasBase to use. May be null indicating one should be created using the SqlAliasBaseGenerator from creationState
explicitSqlAliasBase
,
SqlAstJoinType
An explicit join-type. May be null to signal that the join is for an implicit path.
requestedJoinType
,
boolean fetched, boolean
Indicates there are explicit, additional predicates (from an SQM tree ON/WITH clause)
addsPredicate
,
SqlAstCreationState creationState)

Implements org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.createTableGroupJoin.

Create a TableGroupJoin.
public Object
public EntityMappingType
public AttributeMapping
findDeclaredAttributeMapping(String name)

Implements org.hibernate.metamodel.mapping.EntityMappingType.findDeclaredAttributeMapping.

Find an attribute-mapping, declared on this entity mapping (not super or subs), by name
public ModelPart
public void
public <X, Y> int
public int
public <X, Y> int
forEachJdbcValue(Object value, int offset, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> consumer, SharedSessionContractImplementor session)

Overrides default org.hibernate.metamodel.mapping.EntityValuedModelPart.forEachJdbcValue, org.hibernate.metamodel.mapping.Bindable.forEachJdbcValue.

Visit each constituent JDBC value extracted from the entity instance itself.
public int
public int
forEachSelectable(int offset, SelectableConsumer consumer)

Overrides default org.hibernate.metamodel.mapping.ModelPart.forEachSelectable, org.hibernate.metamodel.mapping.ValuedModelPart.forEachSelectable.

Visits each selectable mapping with the selectable index offset by the given value.
public AttributeMapping
getAttributeMapping(int position)

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getAttributeMapping.

Retrieve an attribute mapping by position, relative to all attributes
public AttributeMappingsList
getAttributeMappings()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getAttributeMappings.

The attributes mapping for this entity, including those declared on supertype mappings
public int
public String
getContainingTableExpression()

Implements org.hibernate.metamodel.mapping.ValuedModelPart.getContainingTableExpression.

The table which contains the columns mapped by this value
public AttributeMappingsMap
getDeclaredAttributeMappings()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getDeclaredAttributeMappings.

Get access to the attributes defined on this class - do not access attributes defined on the super
public SqlAstJoinType
public EntityDiscriminatorMapping
public String
public Object
getDiscriminatorValue()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getDiscriminatorValue.

The discriminator value which indicates this entity mapping
public EntityMappingType
getEntityMappingType()

Implements org.hibernate.metamodel.mapping.EntityValuedModelPart.getEntityMappingType.

The descriptor of the entity that is the type for this part
public String
public EntityPersister
public ModelPart
public EntityIdentifierMapping
getIdentifierMapping()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getIdentifierMapping.

Mapping details for the entity's identifier.
public TableDetails
getIdentifierTableDetails()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getIdentifierTableDetails.

Details for the table that defines the identifier column(s) for an entity hierarchy.
public JavaType<?>
public JdbcMapping
public int
public JavaType<?>
getMappedJavaType()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getMappedJavaType.

The descriptor descriptor for the mapped Java type
public TableDetails
public MappingType
getMappedType()

Implements org.hibernate.metamodel.mapping.ValueMapping.getMappedType.

Descriptor for the type of this mapping
public MultiNaturalIdLoader<?>
getMultiNaturalIdLoader()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getMultiNaturalIdLoader.

Access to performing multi-value natural-id database selection.
public NaturalIdLoader<?>
getNaturalIdLoader()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getNaturalIdLoader.

Access to performing natural-id database selection.
public NaturalIdMapping
getNaturalIdMapping()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getNaturalIdMapping.

The mapping for the natural-id of the entity, if one is defined
public NavigableRole
public int
getNumberOfAttributeMappings()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getNumberOfAttributeMappings.

The total number of attributes for this entity, including those declared on supertype mappings
public int
public MappingType
public String
getPartName()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getPartName.

Implements org.hibernate.metamodel.mapping.ModelPart.getPartName.

The local part name, which is generally the unqualified role name
public EntityRowIdMapping
getRowIdMapping()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getRowIdMapping.

The mapping for the row-id of the entity, if one is defined.
public SelectableMapping
getSelectable(int columnIndex)

Implements org.hibernate.metamodel.mapping.SelectableMappings.getSelectable.

Get the selectable at the given position
public JdbcMapping
public SoftDeleteMapping
getSoftDeleteMapping()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getSoftDeleteMapping.

Mapping for soft-delete support, or null if soft-delete not defined
public TableDetails
public String
getSqlAliasStem()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.getSqlAliasStem.

Implements org.hibernate.sql.ast.tree.from.TableGroupProducer.getSqlAliasStem.

Get the "stem" used as the base for generating SQL table aliases for table references that are part of the TableGroup being generated

Note that this is a metadata-ive value.

public Object
getValue(Object instance, int position)

Overrides default org.hibernate.metamodel.mapping.ManagedMappingType.getValue.

Extract a specific attribute value from the entity instance, by position
public Object[]
getValues(Object instance)

Implements org.hibernate.metamodel.mapping.ManagedMappingType.getValues.

Extract the individual attribute values from the entity instance
public EntityVersionMapping
getVersionMapping()

Implements org.hibernate.metamodel.mapping.EntityMappingType.getVersionMapping.

Mapping details for the entity's version when using the version strategy.
public boolean
public boolean
public boolean
public boolean
isSimpleJoinPredicate(Predicate predicate)

Implements org.hibernate.sql.ast.tree.from.TableGroupJoinProducer.isSimpleJoinPredicate.

Returns whether the given predicate is a simple join predicate for this attribute.
public Object
loadByUniqueKey(String propertyName, Object uniqueKey, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.EntityMappingType.loadByUniqueKey.

Load an instance of the persistent class, by a unique key other than the primary key.
public OptimisticLockStyle
optimisticLockStyle()

Overrides default org.hibernate.metamodel.mapping.EntityMappingType.optimisticLockStyle.

The type of optimistic locking, if any, defined for this entity mapping
public void
setValue(Object instance, int position, Object value)

Overrides default org.hibernate.metamodel.mapping.ManagedMappingType.setValue.

Inject a specific attribute value into the entity instance, by position
public void
setValues(Object instance, Object[] resolvedValues)

Implements org.hibernate.metamodel.mapping.ManagedMappingType.setValues.

Inject the attribute values into the entity instance
public void
public void
visitDeclaredAttributeMappings(Consumer<? super AttributeMapping> action)

Implements org.hibernate.metamodel.mapping.EntityMappingType.visitDeclaredAttributeMappings.

Visit attributes defined on this class - do not visit attributes defined on the super
public void
visitQuerySpaces(Consumer<String> querySpaceConsumer)

Implements org.hibernate.metamodel.mapping.EntityMappingType.visitQuerySpaces.

Visit each "query space" for the mapped entity.
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait