|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.cayenne.exp.Expression
org.apache.cayenne.exp.BinaryExpression
public class BinaryExpression
Generic binary expression. Describes an expression in a form: "leftoperand operation rightoperand".
SQL has a lot of binary expressions, for example AND, OR, =, etc.
| Field Summary | |
|---|---|
protected java.lang.Object |
leftOperand
Deprecated. |
protected java.lang.Object |
rightOperand
Deprecated. |
| Fields inherited from class org.apache.cayenne.exp.Expression |
|---|
ADD, ALL, AND, ANY, AVG, BETWEEN, COUNT, DB_PATH, DIVIDE, EQUAL_TO, EXISTS, GREATER_THAN, GREATER_THAN_EQUAL_TO, IN, LESS_THAN, LESS_THAN_EQUAL_TO, LIKE, LIKE_IGNORE_CASE, LIST, MAX, MIN, MULTIPLY, NEGATIVE, NOT, NOT_BETWEEN, NOT_EQUAL_TO, NOT_IN, NOT_LIKE, NOT_LIKE_IGNORE_CASE, OBJ_PATH, OR, POSITIVE, PRUNED_NODE, RAW_SQL, SOME, SUBQUERY, SUBTRACT, SUM, type |
| Constructor Summary | |
|---|---|
BinaryExpression()
Deprecated. |
|
BinaryExpression(int type)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
encodeAsString(java.io.PrintWriter pw)
Deprecated. Stores a String representation of Expression using a provided PrintWriter. |
java.lang.Object |
evaluate(java.lang.Object o)
Deprecated. Calculates expression value with object as a context for path expressions. |
protected void |
flattenTree()
Deprecated. Restructures expression to make sure that there are no children of the same type as this expression. |
java.lang.Object |
getOperand(int index)
Deprecated. Returns a value of operand at index. |
int |
getOperandCount()
Deprecated. Returns a count of operands of this expression. |
Expression |
notExp()
Deprecated. Returns a logical NOT of current expression. |
protected boolean |
pruneNodeForPrunedChild(java.lang.Object prunedChild)
Deprecated. Returns true if this node should be pruned from expression tree in the event a child is removed. |
void |
setOperand(int index,
java.lang.Object value)
Deprecated. Sets a value of operand at index. |
Expression |
shallowCopy()
Deprecated. Creates a copy of this expression node, without copying children. |
| Methods inherited from class org.apache.cayenne.exp.Expression |
|---|
andExp, deepCopy, encodeAsXML, equals, expName, expWithParameters, expWithParameters, filter, filterObjects, fromString, getType, joinExp, match, orExp, setType, toString, transform, transformExpression, traverse, traverse |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object leftOperand
protected java.lang.Object rightOperand
| Constructor Detail |
|---|
public BinaryExpression()
public BinaryExpression(int type)
| Method Detail |
|---|
protected void flattenTree()
Expression
flattenTree in class Expressionprotected boolean pruneNodeForPrunedChild(java.lang.Object prunedChild)
Expression
pruneNodeForPrunedChild in class Expressionpublic final int getOperandCount()
Expression
getOperandCount in class Expressionpublic java.lang.Object evaluate(java.lang.Object o)
Expression
evaluate in class Expressionpublic Expression shallowCopy()
shallowCopy in class Expressionpublic Expression notExp()
Expression
notExp in class Expressionpublic java.lang.Object getOperand(int index)
Expressionindex. Operand indexing starts at 0.
getOperand in class Expression
public void setOperand(int index,
java.lang.Object value)
Expressionindex. Operand indexing starts at 0.
setOperand in class Expressionpublic void encodeAsString(java.io.PrintWriter pw)
Expression
encodeAsString in class Expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||