|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.query.AbstractVisitable org.apache.openjpa.persistence.query.ExpressionImpl org.apache.openjpa.persistence.query.AbstractPath
abstract class AbstractPath
An abstract path is formed by two parts : the first part is a parent path. The second part can be an attribute or an operation (e.g. KEY() or VALUE()) or a join type operation. Based on the exact nature of the second part, concrete derivation of this class combines the two constituent parts to arrive at complete path name. For example, a navigation path adds the two part with a navigation '.' operator, while a OperatorPath will combine the parts as KEY(parent). The constituent parts are immutable and supplied at construction. Hence concrete implementations know what exact type they are dealing with, but this receiver maintains it state as more generic type to accommodate concrete types to cast/interpret these state variables.
Field Summary | |
---|---|
protected PathOperator |
_operator
|
protected QueryDefinitionImpl |
_owner
|
protected AbstractPath |
_parent
|
protected Object |
_part2
|
Fields inherited from class org.apache.openjpa.persistence.query.AbstractVisitable |
---|
CLOSE_BRACE, COMMA, EMPTY, OPEN_BRACE, SPACE |
Constructor Summary | |
---|---|
protected |
AbstractPath(QueryDefinitionImpl owner,
AbstractPath parent,
PathOperator op,
Object part2)
|
Method Summary | |
---|---|
Aggregate |
avg()
Specify that the avg operation is to be applied. |
Aggregate |
count()
Specify that the count operation is to be applied. |
Object |
getLastSegment()
Gets the last segment of this path. |
PathOperator |
getOperator()
Gets operator that derived this receiver from its parent. |
(package private) QueryDefinitionImpl |
getOwner()
|
AbstractPath |
getParent()
Gets the parent from which this receiver has been derived. |
Predicate |
isEmpty()
Add a restriction that the path expression must correspond to an association or element collection that is empty (has no elements). |
Aggregate |
max()
Specify that the max operation is to be applied. |
Aggregate |
min()
Specify that the min operation is to be applied. |
Expression |
size()
Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression. |
(package private) LinkedList<AbstractPath> |
split()
|
Aggregate |
sum()
Specify that the sum operation is to be applied. |
Expression |
type()
Return an expression that corresponds to the type of the entity. |
Methods inherited from class org.apache.openjpa.persistence.query.ExpressionImpl |
---|
abs, asc, between, between, between, between, between, between, between, between, between, between, between, between, between, concat, concat, desc, dividedBy, dividedBy, equal, equal, equal, equal, equal, equal, equal, equal, getAliasHint, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, in, in, in, in, in, in, isNull, length, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessThan, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, like, locate, locate, locate, locate, locate, locate, lower, member, minus, minus, minus, mod, mod, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, plus, plus, sqrt, substring, substring, substring, substring, substring, substring, times, times, trim, trim, trim, trim, trim, trim, upper |
Methods inherited from class org.apache.openjpa.persistence.query.AbstractVisitable |
---|
asExpression, asJoinable, asProjection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.persistence.query.PathExpression |
---|
get |
Methods inherited from interface org.apache.openjpa.persistence.query.Expression |
---|
abs, concat, concat, dividedBy, dividedBy, in, in, in, in, in, in, isNull, length, locate, locate, locate, locate, locate, locate, lower, member, minus, minus, minus, mod, mod, plus, plus, sqrt, substring, substring, substring, substring, substring, substring, times, times, trim, trim, trim, trim, trim, trim, upper |
Methods inherited from interface org.apache.openjpa.persistence.query.SelectItem |
---|
asc, desc |
Methods inherited from interface org.apache.openjpa.persistence.query.PredicateOperand |
---|
between, between, between, between, between, between, between, between, between, between, between, between, between, equal, equal, equal, equal, equal, equal, equal, equal, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessThan, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, like, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual |
Methods inherited from interface org.apache.openjpa.persistence.query.Visitable |
---|
asExpression, asJoinable, asProjection |
Field Detail |
---|
protected final AbstractPath _parent
protected final Object _part2
protected final PathOperator _operator
protected final QueryDefinitionImpl _owner
Constructor Detail |
---|
protected AbstractPath(QueryDefinitionImpl owner, AbstractPath parent, PathOperator op, Object part2)
Method Detail |
---|
final QueryDefinitionImpl getOwner()
public AbstractPath getParent()
public PathOperator getOperator()
public Object getLastSegment()
public Aggregate avg()
PathExpression
avg
in interface PathExpression
public Aggregate count()
PathExpression
count
in interface PathExpression
public Predicate isEmpty()
PathExpression
isEmpty
in interface PathExpression
public Aggregate max()
PathExpression
max
in interface PathExpression
public Aggregate min()
PathExpression
min
in interface PathExpression
public Expression size()
PathExpression
size
in interface PathExpression
public Aggregate sum()
PathExpression
sum
in interface PathExpression
public Expression type()
PathExpression
type
in interface PathExpression
LinkedList<AbstractPath> split()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |