| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(SqlAstWalker sqlTreeWalker)
Overrides default org. |
| public void | addNestedTableGroupJoin(TableGroupJoin join)
Implements org.
select *
from entity1 e
left join (
collection_table c1
join association a on a.id = c1.target_id
) on c1.entity_id = e.id and c1.key = 1
is modeled as
TableGroup(
primaryTableReference = TableReference(entity1, e),
tableGroupJoins = [
TableGroupJoin(
TableGroup(
primaryTableReference = TableReference(collection_table, c1),
nestedTableGroupJoins = [
TableGroupJoin(
TableGroup(
primaryTableReference = TableReference(association, a)
)
)
]
)
)
]
)
This is necessary to correctly retain the cardinality of an HQL join like e.g.
from Entity1 e left join e.collectionAssociation c on key(c) = 1
|
| public void | |
| public void | applyAffectedTableNames(Consumer<String> nameCollector)
Implements org. |
| public void | applySqlSelections(DomainResultCreationState creationState)
Overrides default org. |
| public boolean | |
| public DomainResult | createDomainResult(String resultVariable, DomainResultCreationState creationState)
Overrides default org. |
| public SqlSelection | createSqlSelection(int
The index position used to read values from JDBC jdbcPosition, int The position in our "current JDBC values array" valuesArrayPosition, JavaType<T> The descriptor for the Java type to read the value as javaType, TypeConfiguration The associated TypeConfiguration typeConfiguration)Overrides default org. |
| public SqlSelection | createSqlSelection(int
The index position used to read values from JDBC jdbcPosition, int The position in our "current JDBC values array" valuesArrayPosition, JavaType<T> The descriptor for the Java type to read the value as javaType, boolean Whether the select is virtual or real. See virtual, TypeConfiguration SqlSelection#isVirtual()The associated TypeConfiguration typeConfiguration)Overrides default org. |
| public ColumnReference | |
| public ModelPart | getExpressionType()
Implements org. |
| public String | getGroupAlias()
Implements org. |
| public ModelPartContainer | |
| public NavigablePath | |
| public List | |
| public TableReference | |
| public String | |
| public Expression | |
| protected abstract TableGroup | |
| public List | |
| public TableReference | getTableReference(NavigablePath
The path for which to look up the table reference, may be null navigablePath, String The table expression for which to look up the table reference tableExpression, boolean Whether to potentially create table reference joins for this table group resolve)Implements org. |
| public TableReference | getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve)
Overrides default org. |
| public List | |
| public boolean | |
| public boolean | isInitialized()
Overrides default org. |
| public boolean | |
| public boolean | |
| public void | prependTableGroupJoin(NavigablePath navigablePath, TableGroupJoin join)
Implements org. |
| public void | |
| public void |
| DelegatingTableGroup | back to summary |
|---|---|
| public DelegatingTableGroup() | |
| accept | back to summary |
|---|---|
| public void accept(SqlAstWalker sqlTreeWalker) Overrides default org.
| |
| addNestedTableGroupJoin | back to summary |
|---|---|
| public void addNestedTableGroupJoin(TableGroupJoin join) Implements org. Doc from org. A nested table group join is a join against a table group,
that is ensured to be joined against the primary table reference and table reference joins in isolation,
prior to doing other table group joins e.g.
| |
| addTableGroupJoin | back to summary |
|---|---|
| public void addTableGroupJoin(TableGroupJoin join) Implements org.
| |
| applyAffectedTableNames | back to summary |
|---|---|
| public void applyAffectedTableNames(Consumer<String> nameCollector) Implements org.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(DomainResultCreationState creationState) Overrides default org. Doc from org. Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression
| |
| canUseInnerJoins | back to summary |
|---|---|
| public boolean canUseInnerJoins() Implements org.
| |
| createDomainResult | back to summary |
|---|---|
| public DomainResult Overrides default org. Doc from org. Produce the domain query
| |
| createSqlSelection | back to summary |
|---|---|
| public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType<T> javaType, TypeConfiguration typeConfiguration) Overrides default org. Doc from org. Create a SqlSelection for the given JDBC ResultSet position
| |
| createSqlSelection | back to summary |
|---|---|
| public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType<T> javaType, boolean virtual, TypeConfiguration typeConfiguration) Overrides default org. Doc from org. Create a SqlSelection for the given JDBC ResultSet position
| |
| getColumnReference | back to summary |
|---|---|
| public ColumnReference getColumnReference() Overrides default org.
| |
| getExpressionType | back to summary |
|---|---|
| public ModelPart getExpressionType() Implements org. Doc from org. The type for this expression
| |
| getGroupAlias | back to summary |
|---|---|
| public String getGroupAlias() Implements org. Doc from org. If we want to use CTE for TableGroup rendering we will need to know the alias we can use for the group
| |
| getModelPart | back to summary |
|---|---|
| public ModelPartContainer getModelPart() Implements org.
| |
| getNavigablePath | back to summary |
|---|---|
| public NavigablePath getNavigablePath() Implements org.
| |
| getNestedTableGroupJoins | back to summary |
|---|---|
| public List Implements org.
| |
| getPrimaryTableReference | back to summary |
|---|---|
| public TableReference getPrimaryTableReference() Implements org.
| |
| getSourceAlias | back to summary |
|---|---|
| public String getSourceAlias() Implements org.
| |
| getSqlExpression | back to summary |
|---|---|
| public Expression getSqlExpression() Overrides default org.
| |
| getTableGroup | back to summary |
|---|---|
| protected abstract TableGroup getTableGroup() | |
| getTableGroupJoins | back to summary |
|---|---|
| public List Implements org.
| |
| getTableReference | back to summary |
|---|---|
| public TableReference getTableReference(NavigablePath navigablePath, String tableExpression, boolean resolve) Implements org. Doc from org. Returns the table reference for the table expression, or null if not found.
| |
| getTableReference | back to summary |
|---|---|
| public TableReference getTableReference(NavigablePath navigablePath, ValuedModelPart modelPart, String tableExpression, boolean resolve) Overrides default org.
| |
| getTableReferenceJoins | back to summary |
|---|---|
| public List Implements org.
| |
| isFetched | back to summary |
|---|---|
| public boolean isFetched() Overrides default org.
| |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Overrides default org. Doc from org. If this is a lazy table group, it may report that it is not initialized, which would also mean that a join referring to this table group should not be rendered.
| |
| isLateral | back to summary |
|---|---|
| public boolean isLateral() Overrides default org.
| |
| isRealTableGroup | back to summary |
|---|---|
| public boolean isRealTableGroup() Overrides default org.
| |
| prependTableGroupJoin | back to summary |
|---|---|
| public void prependTableGroupJoin(NavigablePath navigablePath, TableGroupJoin join) Implements org. Doc from org. Adds the given table group join before a join as found via the given navigable path.
| |
| visitNestedTableGroupJoins | back to summary |
|---|---|
| public void visitNestedTableGroupJoins(Consumer<TableGroupJoin> consumer) Implements org.
| |
| visitTableGroupJoins | back to summary |
|---|---|
| public void visitTableGroupJoins(Consumer<TableGroupJoin> consumer) Implements org.
| |