The point of this contract is to allow "unique-ing" of SqlSelectable references in a query to a single SqlSelection reference - effectively a caching of SqlSelection instances keyed by the SqlSelectable (+ qualifier when applicable) that it refers to.
Note also that the returns can be a specialized Expression represented by
org.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public static SqlExpressionResolver. | createColumnReferenceKey(String tableExpression, String columnExpression, JdbcMapping jdbcMapping)
Helper for generating an expression key for a column reference. |
| public static SqlExpressionResolver. | createColumnReferenceKey(TableReference tableReference, String columnExpression, JdbcMapping jdbcMapping)
Helper for generating an expression key for a column reference. |
| public static SqlExpressionResolver. | createColumnReferenceKey(TableReference tableReference, SelectablePath selectablePath, JdbcMapping jdbcMapping)
|
| public static SqlExpressionResolver. | |
| public static SqlExpressionResolver. | |
| public static SqlExpressionResolver. | createColumnReferenceKey(String tableExpression, SelectableMapping selectable)
Convenience form for creating a key from table expression and SelectableMapping |
| public static SqlExpressionResolver. | createColumnReferenceKey(TableReference tableReference, SelectableMapping selectable)
Convenience form for creating a key from TableReference and SelectableMapping |
| public default Expression | |
| public Expression | resolveSqlExpression(SqlExpressionResolver.
Given a qualifier + a qualifiable |
| public SqlSelection | resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)
Resolve the SqlSelection for the given expression |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. Helper for generating an expression key for a column reference.
| |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. Helper for generating an expression key for a column reference.
| |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. | |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. | |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. | |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. Convenience form for creating a key from table expression and SelectableMapping | |
| createColumnReferenceKey | back to summary |
|---|---|
| public static SqlExpressionResolver. Convenience form for creating a key from TableReference and SelectableMapping | |
| resolveSqlExpression | back to summary |
|---|---|
| public default Expression resolveSqlExpression(TableReference tableReference, SelectableMapping selectableMapping) | |
| resolveSqlExpression | back to summary |
|---|---|
| public Expression resolveSqlExpression(SqlExpressionResolver. Given a qualifier + a qualifiable | |
| resolveSqlSelection | back to summary |
|---|---|
| public SqlSelection resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration) Resolve the SqlSelection for the given expression | |
| Modifier and Type | Field and Description |
|---|---|
| private final JdbcMapping | |
| private final SelectablePath | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| jdbcMapping | back to summary |
|---|---|
| private final JdbcMapping jdbcMapping | |
| selectablePath | back to summary |
|---|---|
| private final SelectablePath selectablePath | |
| tableQualifier | back to summary |
|---|---|
| private final String tableQualifier | |
| ColumnReferenceKey | back to summary |
|---|---|
| public ColumnReferenceKey(String tableQualifier, SelectablePath selectablePath, JdbcMapping jdbcMapping) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |