public class HqlRightJoin extends Object implements Join
RIGHT JOIN <alias.property> <joinedAlias>
to the query.
Throws an UnsupportedOperationException
if
Query.getQueryType()
isn't QueryType.HQL
.
Hql.rightJoin(String, String, String, Restriction)
Modifier and Type | Field and Description |
---|---|
private String |
alias |
private String |
joinedAlias |
private Restriction |
on |
private String |
property |
Constructor and Description |
---|
HqlRightJoin(String alias,
String property,
String joinedAlias,
Restriction on) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
This join is equal to another HqlRightJoin if they
join to the same property with the same alias
and use the same condition.
|
Collection<? extends QueryElement> |
getChildren()
Get the children of this query element or null if it has no children.
|
String |
getThetaJoin(Query query,
DbControl dc) |
String |
getThetaJoinCondition(Query query,
DbControl dc) |
int |
hashCode() |
String |
toQl(Query query,
DbControl dc)
Create a query language string of the query element.
|
String |
toString() |
private final String alias
private final String property
private final String joinedAlias
private final Restriction on
HqlRightJoin(String alias, String property, String joinedAlias, Restriction on)
public String toQl(Query query, DbControl dc) throws BaseException
QueryElement
Query.getQueryType()
method to find out which query language is wanted
in case the element requires different syntax for different languages.toQl
in interface QueryElement
query
- The query that is about to be executeddc
- The DbControl
object used to execute the queryBaseException
- If there is any other errorpublic Collection<? extends QueryElement> getChildren()
QueryElement
AddExpression
has two children, the expression
beeing added.getChildren
in interface QueryElement
public String getThetaJoin(Query query, DbControl dc) throws BaseException
getThetaJoin
in interface Join
BaseException
public String getThetaJoinCondition(Query query, DbControl dc) throws BaseException
getThetaJoinCondition
in interface Join
BaseException
public boolean equals(Object other)