| Modifier and Type | Field and Description |
|---|---|
| private final DiscriminatedAssociationMapping | |
| private final CollectionPersister | |
| private final CollectionPart. | |
| private final NavigableRole |
| Access | Constructor and Description |
|---|---|
| public | DiscriminatedCollectionPart(CollectionPart.
|
| Modifier and Type | Method 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)Implements org. |
| public void | applyDiscriminator(Consumer<Predicate> predicateConsumer, String alias, TableGroup tableGroup, SqlAstCreationState creationState)
Implements org. predicateConsumer
|
| public void | applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState)
Implements org. |
| public void | applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer)
Implements org. |
| public <X, Y> int | breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart.
Implements org. |
| public <T> DomainResult | createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)
Implements org. |
| public TableGroup | 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 explicitSqlAliasBase, SqlAstJoinType null indicating one should be created using the SqlAliasBaseGenerator from creationStateAn 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. |
| 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 explicitSqlAliasBase, SqlAstJoinType null indicating one should be created using the SqlAliasBaseGenerator from creationStateAn 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. |
| public <X, Y> int | decompose(Object domainValue, int offset, X x, Y y, ModelPart.
Overrides default org. breakDownJdbcValues(Object, int, Object, Object, JdbcValueBiConsumer, SharedSessionContractImplementor),
but this method is supposed to be used for decomposing values for assignment expressions.
|
| public Object | disassemble(Object value, SharedSessionContractImplementor session)
Implements org. J into its simple pieces.
|
| public EntityMappingType | |
| public ModelPart | findSubPart(String name, EntityMappingType treatTargetType)
Implements org. |
| public <X, Y> int | forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.
Implements org. forEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor),
but additionally receives an offset by which the selectionIndex is incremented when calling JdbcValuesBiConsumer#consume(int, Object, Object, Object, JdbcMapping).
|
| public int | forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action)
Implements org. |
| public int | forEachSelectable(int offset, SelectableConsumer consumer)
Overrides default org. |
| public void | forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget)
Implements org. |
| public Fetch | generateFetch(FetchParent
The parent of the Fetch we are generating fetchParent, NavigablePath The overall path within the graph fetchablePath, FetchTiming The requested fetch timing fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)Implements org. |
| public String | getContainingTableExpression()
Implements org. |
| public SqlAstJoinType | getDefaultSqlAstJoinType(TableGroup parentTableGroup)
Implements org. |
| public DiscriminatorMapping | |
| public JavaType | |
| public Fetchable | getFetchable(int position)
Overrides default org. |
| public int | getFetchableKey()
Implements org. FetchableContainer.
|
| public String | getFetchableName()
Implements org. |
| public JavaType | getJavaType()
Implements org. |
| public JdbcMapping | getJdbcMapping(final int index)
Implements org. |
| public int | getJdbcTypeCount()
Overrides default org. |
| public BasicValuedModelPart | |
| public FetchOptions | getMappedFetchOptions()
Implements org. |
| public MappingType | getMappedType()
Implements org. |
| public CollectionPart. | |
| public NavigableRole | |
| public int | getNumberOfFetchables()
Implements org. |
| public MappingType | getPartMappingType()
Implements org. |
| public SelectableMapping | getSelectable(int columnIndex)
Implements org. |
| public String | getSqlAliasStem()
Implements org. Note that this is a metadata-ive value. |
| public boolean | |
| public Object | |
| public EntityMappingType | resolveDiscriminatorValue(Object discriminatorValue)
Implements org. |
| public String | |
| public void | visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType)
Implements org. |
| associationMapping | back to summary |
|---|---|
| private final DiscriminatedAssociationMapping associationMapping | |
| collectionDescriptor | back to summary |
|---|---|
| private final CollectionPersister collectionDescriptor | |
| nature | back to summary |
|---|---|
| private final CollectionPart. | |
| partRole | back to summary |
|---|---|
| private final NavigableRole partRole | |
| DiscriminatedCollectionPart | back to summary |
|---|---|
| public DiscriminatedCollectionPart(CollectionPart. | |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| applyDiscriminator | back to summary |
|---|---|
| public void applyDiscriminator(Consumer<Predicate> predicateConsumer, String alias, TableGroup tableGroup, SqlAstCreationState creationState) Implements org. Doc from org. Apply the discriminator as a predicate via the
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| breakDownJdbcValues | back to summary |
|---|---|
| public <X, Y> int breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart. Implements org. Doc from org. Breaks down the domain value to its constituent JDBC values.
Think of it as breaking the multi-dimensional array into a visitable flat array.
Additionally, it passes through the values
| |
| createDomainResult | back to summary |
|---|---|
| public <T> DomainResult Implements org. Doc from org. Create a DomainResult for a specific reference to this ModelPart.
| |
| createRootTableGroupJoin | back to summary |
|---|---|
| public TableGroup createRootTableGroupJoin(NavigablePath navigablePath, TableGroup lhs, String explicitSourceAlias, SqlAliasBase explicitSqlAliasBase, SqlAstJoinType sqlAstJoinType, boolean fetched, Consumer<Predicate> predicateConsumer, SqlAstCreationState creationState) Implements org. Doc from org. Create the "join", but return a TableGroup. Intended for creating sub-query correlations. E.g., given
from SomeEntity e
where exists (
select 1
from AnotherEntity a
where e.association.attr = 1
)
We call this for the `e.association` path.
| |
| createTableGroupJoin | back to summary |
|---|---|
| public TableGroupJoin createTableGroupJoin(NavigablePath navigablePath, TableGroup lhs, String explicitSourceAlias, SqlAliasBase explicitSqlAliasBase, SqlAstJoinType requestedJoinType, boolean fetched, boolean addsPredicate, SqlAstCreationState creationState) Implements org. Doc from org. Create a TableGroupJoin.
| |
| decompose | back to summary |
|---|---|
| public <X, Y> int decompose(Object domainValue, int offset, X x, Y y, ModelPart. Overrides default org. Doc from org. Similar to
| |
| disassemble | back to summary |
|---|---|
| public Object disassemble(Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Breaks down a value of
Generally speaking, this is the form in which entity state is kept relative to a
Session via
@Entity class Person {
@Id Integer id;
@Embedded Name name;
int age;
}
@Embeddable class Name {
String familiarName;
String familyName;
}
At the top level, we would want to disassemble a
Person( id=1, name=Name( 'Steve', 'Ebersole' ), 28 ) this disassemble would result in a multidimensional array:
[ ["Steve", "Ebersole"], 28 ] Note that the identifier is not part of this disassembled state. Note also how the embedded value results in a sub-array.
| |
| findContainingEntityMapping | back to summary |
|---|---|
| public EntityMappingType findContainingEntityMapping() Implements org.
| |
| findSubPart | back to summary |
|---|---|
| public ModelPart findSubPart(String name, EntityMappingType treatTargetType) Implements org.
| |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable. Implements org. Doc from org. Like
| |
| forEachJdbcType | back to summary |
|---|---|
| public int forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Implements org. Doc from org. Visit each JdbcMapping starting from the given offset
| |
| forEachSelectable | back to summary |
|---|---|
| public int forEachSelectable(int offset, SelectableConsumer consumer) Overrides default org. Doc from org. Visits each selectable mapping with the selectable index offset by the given value. Returns the amount of jdbc types that have been visited.
| |
| forEachSubPart | back to summary |
|---|---|
| public void forEachSubPart(IndexedConsumer<ModelPart> consumer, EntityMappingType treatTarget) Implements org.
| |
| generateFetch | back to summary |
|---|---|
| public Fetch generateFetch(FetchParent fetchParent, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState) Implements org. Doc from org. Generates a Fetch of this fetchable
| |
| getContainingTableExpression | back to summary |
|---|---|
| public String getContainingTableExpression() Implements org. Doc from org. The table which contains the columns mapped by this value
| |
| getDefaultSqlAstJoinType | back to summary |
|---|---|
| public SqlAstJoinType getDefaultSqlAstJoinType(TableGroup parentTableGroup) Implements org.
| |
| getDiscriminatorMapping | back to summary |
|---|---|
| public DiscriminatorMapping getDiscriminatorMapping() Implements org.
| |
| getExpressibleJavaType | back to summary |
|---|---|
| public JavaType Overrides default org. Implements org.
| |
| getFetchable | back to summary |
|---|---|
| public Fetchable getFetchable(int position) Overrides default org.
| |
| getFetchableKey | back to summary |
|---|---|
| public int getFetchableKey() Implements org. Doc from org. The key that identifies this Fetchable within a
The main intent of this key is to index e.g.
| |
| getFetchableName | back to summary |
|---|---|
| public String getFetchableName() Implements org. Doc from org. The name of the fetchable. This is the part's "local name".
| |
| getJavaType | back to summary |
|---|---|
| public JavaType Implements org. Doc from org. The Java type for this part. Generally equivalent to
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(final int index) Implements org.
| |
| getJdbcTypeCount | back to summary |
|---|---|
| public int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| getKeyPart | back to summary |
|---|---|
| public BasicValuedModelPart getKeyPart() Implements org.
| |
| getMappedFetchOptions | back to summary |
|---|---|
| public FetchOptions getMappedFetchOptions() Implements org. Doc from org. The configured fetch timing and style
| |
| getMappedType | back to summary |
|---|---|
| public MappingType getMappedType() Implements org. Doc from org. Descriptor for the type of this mapping
| |
| getNature | back to summary |
|---|---|
| public CollectionPart. Implements org.
| |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getNumberOfFetchables | back to summary |
|---|---|
| public int getNumberOfFetchables() Implements org. Doc from org. The number of fetchables in the container
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Implements org. Doc from org. The type for this part.
| |
| getSelectable | back to summary |
|---|---|
| public SelectableMapping getSelectable(int columnIndex) Implements org. Doc from org. Get the selectable at the given position
| |
| getSqlAliasStem | back to summary |
|---|---|
| public String getSqlAliasStem() Implements org. Doc from org. 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. It is only ever used internal to the producer producing its TableGroup.
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public boolean hasPartitionedSelectionMapping() Implements org.
| |
| resolveDiscriminatorForEntityType | back to summary |
|---|---|
| public Object resolveDiscriminatorForEntityType(EntityMappingType entityMappingType) Implements org.
| |
| resolveDiscriminatorValue | back to summary |
|---|---|
| public EntityMappingType resolveDiscriminatorValue(Object discriminatorValue) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| visitSubParts | back to summary |
|---|---|
| public void visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType) Implements org.
| |