public MoveVertexStep(OIdentifier targetClass, OCluster targetCluster, OCommandContext ctx, boolean profilingEnabled) { super(ctx, profilingEnabled); this.targetClass = targetClass == null ? null : targetClass.getStringValue(); if (targetCluster != null) { this.targetCluster = targetCluster.getClusterName(); if (this.targetCluster == null) { this.targetCluster = ctx.getDatabase().getClusterNameById(targetCluster.getClusterNumber()); } } }
targetClusterNames.add(c.getClusterName()); } else { String clusterName = db.getClusterNameById(c.getClusterNumber()); if (clusterName == null) { throw new OCommandExecutionException("Cluster not found: " + c.getClusterNumber());
Integer clusterId = cluster.getClusterNumber(); if (clusterId == null) { clusterId = db.getClusterIdByName(cluster.getClusterName()); for (int i = 0; i < clusters.size(); i++) { OCluster cluster = clusters.get(i); Integer clusterId = cluster.getClusterNumber(); if (clusterId == null) { clusterId = db.getClusterIdByName(cluster.getClusterName());
String name = cluster.getClusterName(); if (name == null) { name = ctx.getDatabase().getClusterNameById(cluster.getClusterNumber());
Integer clusterId = cluster.getClusterNumber(); if (name == null) { name = db.getClusterNameById(clusterId); Integer clusterId = cluster.getClusterNumber(); if (clusterId == null) { clusterId = db.getClusterIdByName(cluster.getClusterName()); for (int i = 0; i < clusters.size(); i++) { OCluster cluster = clusters.get(i); Integer clusterId = cluster.getClusterNumber(); if (clusterId == null) { clusterId = db.getClusterIdByName(cluster.getClusterName());
String name = item.getCluster().getClusterName(); if (name == null) { name = db.getClusterNameById(item.getCluster().getClusterNumber()); String name = cluster.getClusterName(); if (name == null) { name = db.getClusterNameById(cluster.getClusterNumber());
clusterId = db.getClusterIdByName(cluster.getClusterName()); } else { clusterId = cluster.getClusterNumber(); if (db.getClusterNameById(clusterId) == null) { throw new OCommandExecutionException("Cluster not found: " + clusterId);
public OInsertExecutionPlan createExecutionPlan(OCommandContext ctx, boolean enableProfiling) { OInsertExecutionPlan result = new OInsertExecutionPlan(ctx); if (targetIndex != null) { result.chain(new InsertIntoIndexStep(targetIndex, insertBody, ctx, enableProfiling)); } else { if (selectStatement != null) { handleInsertSelect(result, this.selectStatement, ctx, enableProfiling); } else { handleCreateRecord(result, this.insertBody, ctx, enableProfiling); } handleTargetClass(result, targetClass, ctx, enableProfiling); handleSetFields(result, insertBody, ctx, enableProfiling); if (targetCluster != null) { String name = targetCluster.getClusterName(); if (name == null) { name = ctx.getDatabase().getClusterNameById(targetCluster.getClusterNumber()); } handleSave(result, new OIdentifier(name), ctx, enableProfiling); } else { handleSave(result, targetClusterName, ctx, enableProfiling); } handleReturn(result, returnStatement, ctx, enableProfiling); } return result; }