Package com.arcadedb.query.sql.parser
Class UpdateItem
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.UpdateItem
-
- All Implemented Interfaces:
Node
public class UpdateItem extends SimpleNode
-
-
Field Summary
Fields Modifier and Type Field Description protected Identifier
left
protected Modifier
leftModifier
protected int
operator
static int
OPERATOR_EQ
static int
OPERATOR_MINUSASSIGN
static int
OPERATOR_PLUSASSIGN
static int
OPERATOR_SLASHASSIGN
static int
OPERATOR_STARASSIGN
protected Expression
right
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description UpdateItem(int id)
UpdateItem(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyOperation(ResultInternal doc, Identifier attrName, Object rightValue, CommandContext ctx)
void
applyUpdate(ResultInternal doc, CommandContext ctx)
UpdateItem
copy()
boolean
equals(Object o)
Identifier
getLeft()
Modifier
getLeftModifier()
int
getOperator()
Expression
getRight()
int
hashCode()
void
setLeft(Identifier left)
void
setLeftModifier(Modifier leftModifier)
void
setOperator(int operator)
void
setRight(Expression right)
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString, toString
-
-
-
-
Field Detail
-
OPERATOR_EQ
public static final int OPERATOR_EQ
- See Also:
- Constant Field Values
-
OPERATOR_PLUSASSIGN
public static final int OPERATOR_PLUSASSIGN
- See Also:
- Constant Field Values
-
OPERATOR_MINUSASSIGN
public static final int OPERATOR_MINUSASSIGN
- See Also:
- Constant Field Values
-
OPERATOR_STARASSIGN
public static final int OPERATOR_STARASSIGN
- See Also:
- Constant Field Values
-
OPERATOR_SLASHASSIGN
public static final int OPERATOR_SLASHASSIGN
- See Also:
- Constant Field Values
-
left
protected Identifier left
-
leftModifier
protected Modifier leftModifier
-
operator
protected int operator
-
right
protected Expression right
-
-
Constructor Detail
-
UpdateItem
public UpdateItem(int id)
-
UpdateItem
public UpdateItem(SqlParser p, int id)
-
-
Method Detail
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
copy
public UpdateItem copy()
- Overrides:
copy
in classSimpleNode
-
applyUpdate
public void applyUpdate(ResultInternal doc, CommandContext ctx)
-
applyOperation
public void applyOperation(ResultInternal doc, Identifier attrName, Object rightValue, CommandContext ctx)
-
getLeft
public Identifier getLeft()
-
setLeft
public void setLeft(Identifier left)
-
getLeftModifier
public Modifier getLeftModifier()
-
setLeftModifier
public void setLeftModifier(Modifier leftModifier)
-
getOperator
public int getOperator()
-
setOperator
public void setOperator(int operator)
-
getRight
public Expression getRight()
-
setRight
public void setRight(Expression right)
-
-