Modifier and Type | Method and Description |
---|---|
static Comparison |
create(Expression leftColumnOrExpression,
String comparator,
Expression rightColumnOrExpression)
|
boolean |
equals(Object obj)
|
String |
getComparator() |
Expression |
getLeft() |
Expression |
getRight() |
int |
hashCode()
Generate a hash code from this
Segment . |
Condition |
not()
|
String |
toString()
Return a SQL string representation of this
Segment . |
void |
visit(Visitor visitor)
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static Comparison create(Expression leftColumnOrExpression, String comparator, Expression rightColumnOrExpression)
leftColumnOrExpression
- the left Expression
.comparator
- the comparator.rightColumnOrExpression
- the right Expression
.Comparison
condition.public Expression getLeft()
Expression
.public String getComparator()
public Expression getRight()
Expression
.public String toString()
Segment
Segment
.
The representation is intended for debugging purposes and an approximation to the generated SQL. While it might
work in the context of a specific dialect, you should not that the Segment.toString()
representation works across
multiple databases.public int hashCode()
Segment
Segment
.
Hashcode typically derives from the Segment.toString()
representation so two Segment
s yield the same
Segment.hashCode()
if their Segment.toString()
representation matches.public boolean equals(Object obj)
Segment
Segment
is equal to another Segment
.
Equality is typically given if the Segment.toString()
representation matches.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.