| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Set | |
| private final JavaType | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | AnonymousTupleTableGroupProducer(AnonymousTupleType<?> tupleType, String aliasStem, List<SqlSelection> sqlSelections, FromClauseAccess fromClauseAccess)
|
| 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 | 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 static ModelPart | createModelPart(MappingType mappingType, SqmExpressible<?> sqmExpressible, DomainType<?> domainType, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, String partName, ModelPart existingModelPart, Set<String> compatibleTableExpressions, int fetchableIndex)
|
| 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 Set | |
| public JavaType | getJavaType()
Implements org. |
| public JdbcMapping | getJdbcMapping(int index)
Implements org. |
| public JavaType | getMappedJavaType()
Implements org. |
| private ModelPart | |
| public Map | |
| public NavigableRole | |
| public MappingType | getPartMappingType()
Implements org. |
| public String | getPartName()
Implements org. |
| public String | getSqlAliasStem()
Implements org. Note that this is a metadata-ive value. |
| public boolean | |
| public void | visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType)
Implements org. |
| aliasStem | back to summary |
|---|---|
| private final String aliasStem | |
| compatibleTableExpressions | back to summary |
|---|---|
| private final Set<String> compatibleTableExpressions | |
| javaTypeDescriptor | back to summary |
|---|---|
| private final JavaType<?> javaTypeDescriptor | |
| modelParts | back to summary |
|---|---|
| private final Map<String, ModelPart> modelParts | |
| AnonymousTupleTableGroupProducer | back to summary |
|---|---|
| public AnonymousTupleTableGroupProducer(AnonymousTupleType<?> tupleType, String aliasStem, List<SqlSelection> sqlSelections, FromClauseAccess fromClauseAccess) | |
| 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.
| |
| 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.
| |
| createModelPart | back to summary |
|---|---|
| public static ModelPart createModelPart(MappingType mappingType, SqmExpressible<?> sqmExpressible, DomainType<?> domainType, List<SqlSelection> sqlSelections, int selectionIndex, String selectionExpression, String partName, ModelPart existingModelPart, Set<String> compatibleTableExpressions, int fetchableIndex) | |
| 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.
| |
| getCompatibleTableExpressions | back to summary |
|---|---|
| public Set | |
| 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(int index) Implements org.
| |
| getMappedJavaType | back to summary |
|---|---|
| public JavaType Implements org. Doc from org. The descriptor descriptor for the mapped Java type
| |
| getModelPart | back to summary |
|---|---|
| private ModelPart getModelPart(TableGroup tableGroup) | |
| getModelParts | back to summary |
|---|---|
| public Map | |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Implements org. Doc from org. The type for this part.
| |
| getPartName | back to summary |
|---|---|
| public String getPartName() Implements org. Doc from org. The local part name, which is generally the unqualified role name
| |
| 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.
| |
| visitSubParts | back to summary |
|---|---|
| public void visitSubParts(Consumer<ModelPart> consumer, EntityMappingType treatTargetType) Implements org.
| |