public static final class HQLPreprocessor.PropertyPair
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name1
The full name of the first (left) property.
|
private java.lang.String |
name2
The full name of the second (right) property.
|
private java.lang.String |
operator
Operator used for joining the properties.
|
Constructor and Description |
---|
PropertyPair(java.lang.String alias1,
java.lang.String property1,
java.lang.String alias2,
java.lang.String property2,
java.lang.String operator)
The constructor initializes all the fields.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLeft()
Obtain the full name of the first (left) property.
|
java.lang.String |
getOperator()
Obtain the operator used for joining the properties..
|
java.lang.String |
getRight()
Obtain the full name of the second (right) property.
|
private final java.lang.String operator
private final java.lang.String name1
private final java.lang.String name2
public PropertyPair(java.lang.String alias1, java.lang.String property1, java.lang.String alias2, java.lang.String property2, java.lang.String operator)
alias1
- The alias (table) of the first (left) property.property1
- The name of the property from first (left) table.alias2
- The alias (table) of the second (right) property.property2
- The name of the property from second (right) table.operator
- The operator which creates a relations between the two fields. We are interested only in
"=" operator, but this leave room for other usages of this class.public java.lang.String getLeft()
public java.lang.String getRight()
public java.lang.String getOperator()