|
||||||||||
| 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.parser.SimpleNode
org.apache.cayenne.exp.parser.ASTPath
public abstract class ASTPath
Generic path expression.
| Field Summary | |
|---|---|
protected String |
path
|
protected Map<String,String> |
pathAliases
|
| Fields inherited from class org.apache.cayenne.exp.parser.SimpleNode |
|---|
children, id, parent |
| Fields inherited from class org.apache.cayenne.exp.Expression |
|---|
ADD, AND, BETWEEN, DB_PATH, DIVIDE, EQUAL_TO, FALSE, GREATER_THAN, GREATER_THAN_EQUAL_TO, IN, LESS_THAN, LESS_THAN_EQUAL_TO, LIKE, LIKE_IGNORE_CASE, LIST, MULTIPLY, NEGATIVE, NOT, NOT_BETWEEN, NOT_EQUAL_TO, NOT_IN, NOT_LIKE, NOT_LIKE_IGNORE_CASE, OBJ_PATH, OR, PRUNED_NODE, SUBTRACT, TRUE, type |
| Method Summary | |
|---|---|
protected CayenneMapEntry |
evaluateEntityNode(Entity entity)
Helper method to evaluate path expression with Cayenne Entity. |
protected String |
getExpressionOperator(int index)
|
Object |
getOperand(int index)
Returns a value of operand at index. |
int |
getOperandCount()
Returns a count of operands of this expression. |
protected String |
getPath()
|
Map<String,String> |
getPathAliases()
Always returns empty map. |
void |
setOperand(int index,
Object value)
Sets a value of operand at index. |
protected void |
setPath(Object path)
|
void |
setPathAliases(Map<String,String> pathAliases)
|
| Methods inherited from class org.apache.cayenne.exp.parser.SimpleNode |
|---|
connectChildren, encodeAsEJBQL, encodeAsEscapedString, encodeAsString, encodeScalarAsString, evaluate, evaluateChild, evaluateNode, expName, flattenTree, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, notExp, pruneNodeForPrunedChild, unwrapChild, wrapChild |
| Methods inherited from class org.apache.cayenne.exp.Expression |
|---|
andExp, deepCopy, encodeAsXML, equals, expWithParameters, expWithParameters, filter, filterObjects, fromString, getType, joinExp, match, orExp, setType, shallowCopy, toEJBQL, toString, transform, transformExpression, traverse, traverse |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String path
protected Map<String,String> pathAliases
| Method Detail |
|---|
public int getOperandCount()
Expression
getOperandCount in class SimpleNodepublic Object getOperand(int index)
Expressionindex. Operand indexing starts at 0.
getOperand in class SimpleNode
public void setOperand(int index,
Object value)
Expressionindex. Operand indexing starts at 0.
setOperand in class SimpleNodeprotected void setPath(Object path)
protected String getPath()
public Map<String,String> getPathAliases()
SimpleNode
getPathAliases in class SimpleNodepublic void setPathAliases(Map<String,String> pathAliases)
protected CayenneMapEntry evaluateEntityNode(Entity entity)
protected String getExpressionOperator(int index)
getExpressionOperator in class SimpleNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||