Condition
, QueryObject
public final class Comparison extends AbstractCondition
Modifier and Type | Field | Description |
---|---|---|
static ComparisonOperator |
EQUAL |
Equal comparison operator.
|
static ComparisonOperator |
GREATER_EQUAL |
Greater equal comparison operator.
|
static ComparisonOperator |
GREATER_THAN |
Greater than comparison operator.
|
static ComparisonOperator |
LESS_EQUAL |
Less equal comparison operator.
|
static ComparisonOperator |
LESS_THAN |
Less than comparison operator.
|
static ComparisonOperator |
NOT_EQUAL |
Not equal comparison operator.
|
Constructor | Description |
---|---|
Comparison(ComparisonOperator operator) |
Construct new comparison.
|
Modifier and Type | Method | Description |
---|---|---|
Expression |
getLeftSide() |
Get left side expression of comparison condition.
|
ComparisonOperator |
getOperator() |
Get comarison operator of comparison condition.
|
Expression |
getRightSide() |
Get right side expression of comparison condition.
|
Condition |
not() |
NOT condition of condition query object.
|
void |
setLeftSide(Expression expression) |
Set left side expression of comparison condition.
|
void |
setRightSide(Expression expression) |
Set right side expression of comparison condition.
|
java.lang.StringBuilder |
toString(java.lang.StringBuilder sb) |
Append a string representation of the object to the given
StringBuilder . |
and, or
toString
public static final ComparisonOperator EQUAL
public static final ComparisonOperator NOT_EQUAL
public static final ComparisonOperator LESS_THAN
public static final ComparisonOperator LESS_EQUAL
public static final ComparisonOperator GREATER_EQUAL
public static final ComparisonOperator GREATER_THAN
public Comparison(ComparisonOperator operator)
operator
- Comparison operator for the comparison.public Condition not()
public ComparisonOperator getOperator()
public Expression getLeftSide()
public void setLeftSide(Expression expression)
expression
- Left side expression of comparison condition.public Expression getRightSide()
public void setRightSide(Expression expression)
expression
- Right side expression of comparison condition.public java.lang.StringBuilder toString(java.lang.StringBuilder sb)
StringBuilder
.
In general, the toString method for query objects appends a string that textually
represents this object. The result should be a query string that complies to EJB QL
specification as long as the query object represents a syntay element of it. It is
required that all subclasses override this method.
The toString method defined at class Object is overwritten and calls this method.sb
- StringBuilder to append the string representation of this object to.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com