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()
JoinQuerySpace from the left-hand-side of the join.getLeftHandSide in interface Joinpublic QuerySpace getRightHandSide()
JoinQuerySpace from the right-hand-side of the join.getRightHandSide in interface Joinpublic boolean isRightHandSideRequired()
JoinisRightHandSideRequired in interface Joinpublic String[] resolveAliasedLeftHandSideJoinConditionColumns(String leftHandSideTableAlias)
JoinresolveAliasedLeftHandSideJoinConditionColumns in interface JoinleftHandSideTableAlias - The table alias used to prefix the columns.public String[] resolveNonAliasedRightHandSideJoinConditionColumns()
JoinresolveNonAliasedRightHandSideJoinConditionColumns in interface Joinpublic String getAnyAdditionalJoinConditions(String rhsTableAlias)
JoingetAnyAdditionalJoinConditions in interface JoinrhsTableAlias - The table alias.public String getJoinedPropertyName()
JoinDefinedByMetadataQuerySpace.toAliasedColumns(String, String)) of the left-hand-side
(Join.getLeftHandSide()) of the joingetJoinedPropertyName in interface JoinDefinedByMetadatapublic Type getJoinedPropertyType()
JoinDefinedByMetadatagetJoinedPropertyType in interface JoinDefinedByMetadataCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.