Class PrimaryExpression
java.lang.Object
org.datanucleus.store.query.expression.Expression
org.datanucleus.store.query.expression.PrimaryExpression
- All Implemented Interfaces:
Serializable
Expression for a primary object.
This may be a field, or an explicit variable/parameter, or a field invoked on an expression.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.datanucleus.store.query.expression.Expression
Expression.DyadicOperator, Expression.MonadicOperator, Expression.Operator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
The components of the expression.Fields inherited from class org.datanucleus.store.query.expression.Expression
alias, left, op, OP_ADD, OP_AND, OP_BIT_AND, OP_BIT_OR, OP_BIT_XOR, OP_CAST, OP_COM, OP_CONCAT, OP_DISTINCT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_OR, OP_SUB, parent, right, symbol
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryExpression
(List<String> tuples) PrimaryExpression made up of a series of field names.PrimaryExpression
(Expression left, List<String> tuples) PrimaryExpression on an expression. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
tuples
The components of the expression. e.g "a.b.c" will have "a", "b", "c".
-
-
Constructor Details
-
PrimaryExpression
PrimaryExpression made up of a series of field names. e.g "a.b.c"- Parameters:
tuples
- The components of the expression
-
PrimaryExpression
PrimaryExpression on an expression. e.g "((B)a).c" so the left expression is a CastExpression, and the tuples are "c".- Parameters:
left
- The left expressiontuples
- The tuples of the primary
-
-
Method Details
-
getId
Accessor for the expression "id". This will be something like "a.b.c".- Returns:
- The id
-
getTuples
-
bind
Method to bind the expression to the symbol table as appropriate.- Specified by:
bind
in classExpression
- Parameters:
symtbl
- Symbol Table- Returns:
- The symbol for this expression
-
toString
Accessor for string form of the expression. Returns something like "PrimaryExpression {a.b.c}" when left is null, or "PrimaryExpression {ParameterExpression {a}.b.c}" when left is the ParameterExpression
-