public class JoinExpression
extends DataSourceExpression
implements DataSourceHolder
Represents join expression
| Modifiers | Name | Description |
|---|---|---|
static String |
INNER_HASH_JOIN |
Clause name for an inner hash join. |
static String |
INNER_JOIN |
Clause name for a regular inner join. |
static List<String> |
JOIN_NAME_LIST |
All supported join clause names. |
static String |
LEFT_HASH_JOIN |
Clause name for a left hash join. |
static String |
SMART_INNER_JOIN |
Clause name for a smart inner join. |
| Fields inherited from class | Fields |
|---|---|
class DataSourceExpression |
aliasExpr, dataSourceExpr |
class Expression |
EMPTY_ARRAY |
| Constructor and description |
|---|
JoinExpression(String joinName, Expression aliasExpr, Expression dataSourceExpr)Creates a join clause. |
| Type Params | Return Type | Name and description |
|---|---|---|
<R> |
public R |
accept(GinqAstVisitor<R> visitor)Accepts a visitor for this clause. |
|
public DataSourceExpression |
getDataSourceExpression()Returns the preceding data-source expression. |
|
public String |
getJoinName()Returns the join keyword. |
|
public OnExpression |
getOnExpression()Returns the optional on clause. |
|
public String |
getText()Returns the textual GINQ form of this clause. |
|
public boolean |
isCrossJoin()Indicates whether this clause is a cross join. |
|
public boolean |
isInnerHashJoin()Indicates whether this clause is an inner hash join. |
|
public boolean |
isInnerJoin()Indicates whether this clause is an inner join. |
|
public static boolean |
isJoinExpression(String methodName)Checks whether the supplied method name denotes a join clause. |
|
public boolean |
isLeftHashJoin()Indicates whether this clause is a left hash join. |
|
public boolean |
isLeftJoin()Indicates whether this clause is a left join. |
|
public boolean |
isSmartInnerJoin()Indicates whether this clause is a smart inner join. |
|
public void |
setDataSourceExpression(DataSourceExpression dataSourceExpression)Sets the preceding data-source expression. |
|
public void |
setOnExpression(OnExpression onExpression)Sets the optional on clause. |
|
public String |
toString()Returns the textual form of this clause. |
| Methods inherited from class | Name |
|---|---|
class DataSourceExpression |
getAliasExpr, getDataSourceExpr, setDataSourceExpr |
class AbstractGinqExpression |
accept, transformExpression, visit |
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Clause name for an inner hash join.
Clause name for a regular inner join.
Clause name for a left hash join.
Clause name for a smart inner join.
Creates a join clause.
joinName - the join keywordaliasExpr - the join aliasdataSourceExpr - the join data sourceAccepts a visitor for this clause.
visitor - the visitor to acceptR - the visit result typeReturns the preceding data-source expression.
Returns the join keyword.
Returns the optional on clause.
on clause, or nullReturns the textual GINQ form of this clause.
Indicates whether this clause is a cross join.
true for a cross joinIndicates whether this clause is an inner hash join.
true for an inner hash joinIndicates whether this clause is an inner join.
true for an inner joinChecks whether the supplied method name denotes a join clause.
methodName - the method name to testtrue if the method name is a join clauseIndicates whether this clause is a left hash join.
true for a left hash joinIndicates whether this clause is a left join.
true for a left joinIndicates whether this clause is a smart inner join.
true for a smart inner joinSets the preceding data-source expression.
dataSourceExpression - the preceding data source Sets the optional on clause.
onExpression - the clause to setReturns the textual form of this clause.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.