@Override public OUpdateStatement copy() { OUpdateStatement result = null; try { result = getClass().getConstructor(Integer.TYPE).newInstance(-1); } catch (Exception e) { throw new RuntimeException(e); } result.target = target == null ? null : target.copy(); result.operations = operations == null ? null : operations.stream().map(x -> x.copy()).collect(Collectors.toList()); result.upsert = upsert; result.returnBefore = returnBefore; result.returnAfter = returnAfter; result.returnProjection = returnProjection == null ? null : returnProjection.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.lockRecord = lockRecord; result.limit = limit == null ? null : limit.copy(); result.timeout = timeout == null ? null : timeout.copy(); return result; }
@Override public OStatement copy() { OTraverseStatement result = new OTraverseStatement(-1); result.projections = projections == null ? null : projections.stream().map(x -> x.copy()).collect(Collectors.toList()); result.target = target == null ? null : target.copy(); result.whileClause = whileClause == null ? null : whileClause.copy(); result.limit = limit == null ? null : limit.copy(); result.strategy = strategy; result.maxDepth = maxDepth == null ? null : maxDepth.copy(); return result; }
@Override public OUpdateEdgeStatement copy() { OUpdateEdgeStatement result = new OUpdateEdgeStatement(-1); result.target = target == null ? null : target.copy(); result.operations = operations == null ? null : operations.stream().map(x -> x.copy()).collect(Collectors.toList()); result.upsert = upsert; result.returnBefore = returnBefore; result.returnAfter = returnAfter; result.returnProjection = returnProjection == null ? null : returnProjection.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.lockRecord = lockRecord; result.limit = limit == null ? null : limit.copy(); result.timeout = timeout == null ? null : timeout.copy(); return result; }
@Override public ODeleteStatement copy() { ODeleteStatement result = new ODeleteStatement(-1); result.fromClause = fromClause == null ? null : fromClause.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.returnBefore = returnBefore; result.limit = limit == null ? null : limit.copy(); result.unsafe = unsafe; return result; }
@Override public ODeleteVertexStatement copy() { ODeleteVertexStatement result = new ODeleteVertexStatement(-1); result.from = from; result.fromClause = fromClause == null ? null : fromClause.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.returnBefore = returnBefore; result.limit = limit == null ? null : limit.copy(); result.batch = batch == null ? null : batch.copy(); return result; }
@Override public OSelectStatement copy() { OSelectStatement result = null; try { result = getClass().getConstructor(Integer.TYPE).newInstance(-1); } catch (Exception e) { throw new RuntimeException(e); } result.originalStatement = originalStatement; result.target = target == null ? null : target.copy(); result.projection = projection == null ? null : projection.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.groupBy = groupBy == null ? null : groupBy.copy(); result.orderBy = orderBy == null ? null : orderBy.copy(); result.unwind = unwind == null ? null : unwind.copy(); result.skip = skip == null ? null : skip.copy(); result.limit = limit == null ? null : limit.copy(); result.lockRecord = lockRecord; result.fetchPlan = fetchPlan == null ? null : fetchPlan.copy(); result.letClause = letClause == null ? null : letClause.copy(); result.timeout = timeout == null ? null : timeout.copy(); result.parallel = parallel; result.noCache = noCache; return result; }
public ODeleteVertexExecutionPlanner(ODeleteVertexStatement stm) { this.fromClause = stm.getFromClause() == null ? null : stm.getFromClause().copy(); this.whereClause = stm.getWhereClause() == null ? null : stm.getWhereClause().copy(); this.returnBefore = stm.isReturnBefore(); this.limit = stm.getLimit() == null ? null : stm.getLimit(); }
public ODeleteExecutionPlanner(ODeleteStatement stm) { this.fromClause = stm.getFromClause() == null ? null : stm.getFromClause().copy(); this.whereClause = stm.getWhereClause() == null ? null : stm.getWhereClause().copy(); this.returnBefore = stm.isReturnBefore(); this.limit = stm.getLimit() == null ? null : stm.getLimit(); this.unsafe = stm.isUnsafe(); }
public OUpdateExecutionPlanner(OUpdateStatement oUpdateStatement) { if (oUpdateStatement instanceof OUpdateEdgeStatement) { updateEdge = true; } this.target = oUpdateStatement.getTarget().copy(); this.whereClause = oUpdateStatement.getWhereClause() == null ? null : oUpdateStatement.getWhereClause().copy(); this.operations = oUpdateStatement.getOperations() == null ? null : oUpdateStatement.getOperations().stream().map(x -> x.copy()).collect(Collectors.toList()); this.upsert = oUpdateStatement.isUpsert(); this.returnBefore = oUpdateStatement.isReturnBefore(); this.returnAfter = oUpdateStatement.isReturnAfter(); this.returnCount = !(returnAfter || returnBefore); this.returnProjection = oUpdateStatement.getReturnProjection() == null ? null : oUpdateStatement.getReturnProjection().copy(); this.lockRecord = oUpdateStatement.getLockRecord(); this.limit = oUpdateStatement.getLimit() == null ? null : oUpdateStatement.getLimit().copy(); this.timeout = oUpdateStatement.getTimeout() == null ? null : oUpdateStatement.getTimeout().copy(); }