public class JoinImpl extends Object implements JoinDefinedByMetadata
Constructor and Description |
---|
JoinImpl(QuerySpace leftHandSide,
String lhsPropertyName,
QuerySpace rightHandSide,
String[] rhsColumnNames,
Type joinedPropertyType,
boolean rightHandSideRequired) |
Modifier and Type | Method and Description |
---|---|
String |
getAnyAdditionalJoinConditions(String rhsTableAlias)
Gets any additional conditions on the right-hand-side of the join using
the specified table alias.
|
String |
getJoinedPropertyName()
Obtain the name of the property that defines the join, relative to the PropertyMapping
(
QuerySpace.toAliasedColumns(String, String) ) of the left-hand-side
(Join.getLeftHandSide() ) of the join |
Type |
getJoinedPropertyType()
Get the property type of the joined property.
|
QuerySpace |
getLeftHandSide()
Get the
QuerySpace from the left-hand-side of the join. |
QuerySpace |
getRightHandSide()
Get the
QuerySpace from the right-hand-side of the join. |
boolean |
isRightHandSideRequired()
Indicates if the joined attribute is required to be non-null.
|
String[] |
resolveAliasedLeftHandSideJoinConditionColumns(String leftHandSideTableAlias)
Resolves the column names prefixed by the specified alias on the
left-hand-side of the join.
|
String[] |
resolveNonAliasedRightHandSideJoinConditionColumns()
Resolves the raw (unaliased) column names on the right-hand-side of the join.
|
public JoinImpl(QuerySpace leftHandSide, String lhsPropertyName, QuerySpace rightHandSide, String[] rhsColumnNames, Type joinedPropertyType, boolean rightHandSideRequired)
public QuerySpace getLeftHandSide()
Join
QuerySpace
from the left-hand-side of the join.getLeftHandSide
in interface Join
public QuerySpace getRightHandSide()
Join
QuerySpace
from the right-hand-side of the join.getRightHandSide
in interface Join
public boolean isRightHandSideRequired()
Join
isRightHandSideRequired
in interface Join
public String[] resolveAliasedLeftHandSideJoinConditionColumns(String leftHandSideTableAlias)
Join
resolveAliasedLeftHandSideJoinConditionColumns
in interface Join
leftHandSideTableAlias
- The table alias used to prefix the columns.public String[] resolveNonAliasedRightHandSideJoinConditionColumns()
Join
resolveNonAliasedRightHandSideJoinConditionColumns
in interface Join
public String getAnyAdditionalJoinConditions(String rhsTableAlias)
Join
getAnyAdditionalJoinConditions
in interface Join
rhsTableAlias
- The table alias.public String getJoinedPropertyName()
JoinDefinedByMetadata
QuerySpace.toAliasedColumns(String, String)
) of the left-hand-side
(Join.getLeftHandSide()
) of the joingetJoinedPropertyName
in interface JoinDefinedByMetadata
public Type getJoinedPropertyType()
JoinDefinedByMetadata
getJoinedPropertyType
in interface JoinDefinedByMetadata
Copyright © 2016 JBoss by Red Hat. All rights reserved.