public OInsertExecutionPlanner(OInsertStatement statement) { this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.targetCluster = statement.getTargetCluster() == null ? null : statement.getTargetCluster().copy(); this.targetIndex = statement.getTargetIndex() == null ? null : statement.getTargetIndex().copy(); this.insertBody = statement.getInsertBody() == null ? null : statement.getInsertBody().copy(); this.returnStatement = statement.getReturnStatement() == null ? null : statement.getReturnStatement().copy(); this.selectStatement = statement.getSelectStatement() == null ? null : statement.getSelectStatement().copy(); }
public OModifier copy() { OModifier result = new OModifier(-1); result.squareBrackets = squareBrackets; result.arrayRange = arrayRange == null ? null : arrayRange.copy(); result.condition = condition == null ? null : condition.copy(); result.arraySingleValues = arraySingleValues == null ? null : arraySingleValues.copy(); result.rightBinaryCondition = rightBinaryCondition == null ? null : rightBinaryCondition.copy(); result.methodCall = methodCall == null ? null : methodCall.copy(); result.suffix = suffix == null ? null : suffix.copy(); result.next = next == null ? null : next.copy(); return result; }
public OCreateVertexExecutionPlanner(OCreateVertexStatement statement) { this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.targetCluster = statement.getTargetCluster() == null ? null : statement.getTargetCluster().copy(); if (this.targetClass == null && this.targetCluster == null && this.targetClusterName == null) { this.targetClass = new OIdentifier("V"); } this.insertBody = statement.getInsertBody() == null ? null : statement.getInsertBody().copy(); this.returnStatement = statement.getReturnStatement() == null ? null : statement.getReturnStatement().copy(); }
@Override public OMoveVertexStatement copy() { OMoveVertexStatement result = new OMoveVertexStatement(-1); result.source = source.copy(); result.targetClass = targetClass == null ? null : targetClass.copy(); result.targetCluster = targetCluster == null ? null : targetCluster.copy(); result.updateOperations = updateOperations == null ? null : updateOperations.copy(); result.batch = batch == null ? null : batch.copy(); return result; }
@Override public ONotInCondition copy() { ONotInCondition result = new ONotInCondition(-1); result.operator = operator == null ? null : (OBinaryCompareOperator) operator.copy(); result.left = left == null ? null : left.copy(); result.rightMathExpression = rightMathExpression == null ? null : rightMathExpression.copy(); result.rightStatement = rightStatement == null ? null : rightStatement.copy(); result.rightParam = rightParam == null ? null : rightParam.copy(); result.right = right == null ? null : right; return result; }
@Override public int hashCode() { int result = source.hashCode(); result = 31 * result + (targetCluster != null ? targetCluster.hashCode() : 0); result = 31 * result + (targetClass != null ? targetClass.hashCode() : 0); result = 31 * result + (updateOperations != null ? updateOperations.hashCode() : 0); result = 31 * result + (batch != null ? batch.hashCode() : 0); return result; }
public OOrderByItem copy() { OOrderByItem result = new OOrderByItem(); result.alias = alias; result.modifier = modifier == null ? null : modifier.copy(); result.recordAttr = recordAttr; result.rid = rid == null ? null : rid.copy(); result.type = type; result.collate = this.collate == null ? null : collate.copy(); return result; }
@Override public ORightBinaryCondition copy() { ORightBinaryCondition result = new ORightBinaryCondition(-1); result.operator = operator == null ? null : operator.copy(); result.not = not; result.inOperator = inOperator == null ? null : inOperator.copy(); result.right = right == null ? null : right.copy(); return result; }
public OProjectionItem copy() { OProjectionItem result = new OProjectionItem(-1); result.all = all; result.alias = alias == null ? null : alias.copy(); result.expression = expression == null ? null : expression.copy(); result.nestedProjection = nestedProjection == null ? null : nestedProjection.copy(); result.aggregate = aggregate; return result; }
private OSelectStatement buildSelectStatement(String className, OWhereClause oWhereClause) { OSelectStatement stm = new OSelectStatement(-1); stm.whereClause = oWhereClause; stm.target = new OFromClause(-1); stm.target.item = new OFromItem(-1); stm.target.item.identifier = new OIdentifier(className); return stm; }
@Override public int hashCode() { int result = left != null ? left.hashCode() : 0; result = 31 * result + (operator != null ? operator.hashCode() : 0); result = 31 * result + (condition != null ? condition.hashCode() : 0); result = 31 * result + (expression != null ? expression.hashCode() : 0); return result; }
/** Constructor with user supplied CharStream. */ public OrientSql(CharStream stream) { token_source = new OrientSqlTokenManager(stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 415; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); }
@Override public OAlterSequenceStatement copy() { OAlterSequenceStatement result = new OAlterSequenceStatement(-1); result.name = name == null ? null : name.copy(); result.start = start == null ? null : start.copy(); result.increment = increment == null ? null : increment.copy(); result.cache = cache == null ? null : cache.copy(); return result; }
@Override public OBinaryCondition copy() { OBinaryCondition result = new OBinaryCondition(-1); result.left = left.copy(); result.operator = (OBinaryCompareOperator) operator.copy(); result.right = right.copy(); return result; }
public OCreatePropertyAttributeStatement copy() { OCreatePropertyAttributeStatement result = new OCreatePropertyAttributeStatement(-1); result.settingName = settingName == null ? null : settingName.copy(); result.settingValue = settingValue == null ? null : settingValue.copy(); return result; }
public void extractSubQueries(SubQueryCollector collector) { if (mathExpression != null) { mathExpression.extractSubQueries(collector); } if (arrayConcatExpression != null) { arrayConcatExpression.extractSubQueries(collector); } if (json != null) { json.extractSubQueries(collector); } }
@Override public OAlterPropertyStatement copy() { OAlterPropertyStatement result = new OAlterPropertyStatement(-1); result.className = className == null ? null : className.copy(); result.propertyName = propertyName == null ? null : propertyName.copy(); result.customPropertyName = customPropertyName == null ? null : customPropertyName.copy(); result.customPropertyValue = customPropertyValue == null ? null : customPropertyValue.copy(); result.settingName = settingName == null ? null : settingName.copy(); result.settingValue = settingValue == null ? null : settingValue.copy(); return result; }
@Override public OMatchesCondition copy() { OMatchesCondition result = new OMatchesCondition(-1); result.expression = expression == null ? null : expression.copy(); result.right = right; result.rightParam = rightParam == null ? null : rightParam.copy(); result.rightExpression = rightExpression == null ? null : rightExpression.copy(); return result; }
public OTraverseProjectionItem copy() { OTraverseProjectionItem result = new OTraverseProjectionItem(-1); result.base = base == null ? null : base.copy(); result.modifier = modifier == null ? null : modifier.copy(); return result; }