public class JoinImpl extends java.lang.Object implements JoinDefinedByMetadata
| Constructor and Description |
|---|
JoinImpl(QuerySpace leftHandSide,
java.lang.String lhsPropertyName,
QuerySpace rightHandSide,
java.lang.String[] rhsColumnNames,
Type joinedPropertyType,
boolean rightHandSideRequired) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnyAdditionalJoinConditions(java.lang.String rhsTableAlias)
Gets any additional conditions on the right-hand-side of the join using
the specified table alias.
|
java.lang.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.
|
java.lang.String[] |
resolveAliasedLeftHandSideJoinConditionColumns(java.lang.String leftHandSideTableAlias)
Resolves the column names prefixed by the specified alias on the
left-hand-side of the join.
|
java.lang.String[] |
resolveNonAliasedRightHandSideJoinConditionColumns()
Resolves the raw (unaliased) column names on the right-hand-side of the join.
|
public JoinImpl(QuerySpace leftHandSide, java.lang.String lhsPropertyName, QuerySpace rightHandSide, java.lang.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 java.lang.String[] resolveAliasedLeftHandSideJoinConditionColumns(java.lang.String leftHandSideTableAlias)
JoinresolveAliasedLeftHandSideJoinConditionColumns in interface JoinleftHandSideTableAlias - The table alias used to prefix the columns.public java.lang.String[] resolveNonAliasedRightHandSideJoinConditionColumns()
JoinresolveNonAliasedRightHandSideJoinConditionColumns in interface Joinpublic java.lang.String getAnyAdditionalJoinConditions(java.lang.String rhsTableAlias)
JoingetAnyAdditionalJoinConditions in interface JoinrhsTableAlias - The table alias.public java.lang.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-2018 Red Hat, Inc. All Rights Reserved.