Class OUpdateItem
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OUpdateItem
- All Implemented Interfaces:
Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OIdentifierprotected OModifierprotected intstatic final intstatic final intstatic final intstatic final intstatic final intprotected OExpressionFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOperation(OResultInternal doc, OIdentifier attrName, Object rightValue, OCommandContext ctx) voidapplyUpdate(OResultInternal doc, OCommandContext ctx) static ObjectcleanValue(Object newValue) static booleancontainsOResult(Collection value) static ObjectconvertResultToDocument(Object value) static ObjectconvertToPropertyType(OResultInternal res, OIdentifier attrName, Object newValue, OCommandContext ctx) copy()booleangetLeft()intgetRight()inthashCode()voidsetLeft(OIdentifier left) voidsetLeftModifier(OModifier leftModifier) voidsetOperator(int operator) voidsetRight(OExpression right) voidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString, toString
-
Field Details
-
OPERATOR_EQ
public static final int OPERATOR_EQ- See Also:
-
OPERATOR_PLUSASSIGN
public static final int OPERATOR_PLUSASSIGN- See Also:
-
OPERATOR_MINUSASSIGN
public static final int OPERATOR_MINUSASSIGN- See Also:
-
OPERATOR_STARASSIGN
public static final int OPERATOR_STARASSIGN- See Also:
-
OPERATOR_SLASHASSIGN
public static final int OPERATOR_SLASHASSIGN- See Also:
-
left
-
leftModifier
-
operator
protected int operator -
right
-
-
Constructor Details
-
OUpdateItem
public OUpdateItem(int id) -
OUpdateItem
-
-
Method Details
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
applyUpdate
-
applyOperation
public void applyOperation(OResultInternal doc, OIdentifier attrName, Object rightValue, OCommandContext ctx) -
cleanValue
-
convertToPropertyType
public static Object convertToPropertyType(OResultInternal res, OIdentifier attrName, Object newValue, OCommandContext ctx) -
convertResultToDocument
-
containsOResult
-
getLeft
-
setLeft
-
getLeftModifier
-
setLeftModifier
-
getOperator
public int getOperator() -
setOperator
public void setOperator(int operator) -
getRight
-
setRight
-