private void checkForUpdates(AtomicResultsMessage results, Command command, EventDistributor distributor, int commandIndex, long ts) { if (!RelationalNodeUtil.isUpdate(command) || !(command instanceof ProcedureContainer)) { return; } ProcedureContainer pc = (ProcedureContainer)command; GroupSymbol gs = pc.getGroup(); Integer zero = Integer.valueOf(0); if (results.getResults().length <= commandIndex || zero.equals(results.getResults()[commandIndex].get(0))) { return; } Object metadataId = gs.getMetadataID(); if (metadataId == null) { return; } if (!(metadataId instanceof Table)) { if (metadataId instanceof TempMetadataID) { TempMetadataID tid = (TempMetadataID)metadataId; if (tid.getTableData().getModel() != null) { tid.getTableData().dataModified((Integer)results.getResults()[commandIndex].get(0)); } } return; } Table t = (Table)metadataId; t.setLastDataModification(ts); if (distributor != null) { distributor.dataModification(this.workItem.getDqpWorkContext().getVdbName(), this.workItem.getDqpWorkContext().getVdbVersion(), t.getParent().getName(), t.getName()); } }
private void checkForUpdates(AtomicResultsMessage results, Command command, EventDistributor distributor, int commandIndex, long ts) { if (!RelationalNodeUtil.isUpdate(command) || !(command instanceof ProcedureContainer)) { return; } ProcedureContainer pc = (ProcedureContainer)command; GroupSymbol gs = pc.getGroup(); Integer zero = Integer.valueOf(0); if (results.getResults().length <= commandIndex || zero.equals(results.getResults()[commandIndex].get(0))) { return; } Object metadataId = gs.getMetadataID(); if (metadataId == null) { return; } if (!(metadataId instanceof Table)) { if (metadataId instanceof TempMetadataID) { TempMetadataID tid = (TempMetadataID)metadataId; if (tid.getTableData().getModel() != null) { tid.getTableData().dataModified((Integer)results.getResults()[commandIndex].get(0)); } } return; } Table t = (Table)metadataId; t.setLastDataModification(ts); if (distributor != null) { distributor.dataModification(this.workItem.getDqpWorkContext().getVdbName(), this.workItem.getDqpWorkContext().getVdbVersion(), t.getParent().getName(), t.getName()); } }
private void checkForUpdates(AtomicResultsMessage results, Command command, EventDistributor distributor, int commandIndex, long ts) { if (!RelationalNodeUtil.isUpdate(command) || !(command instanceof ProcedureContainer)) { return; } ProcedureContainer pc = (ProcedureContainer)command; GroupSymbol gs = pc.getGroup(); Integer zero = Integer.valueOf(0); if (results.getResults().length <= commandIndex || zero.equals(results.getResults()[commandIndex].get(0))) { return; } Object metadataId = gs.getMetadataID(); if (metadataId == null) { return; } if (!(metadataId instanceof Table)) { if (metadataId instanceof TempMetadataID) { TempMetadataID tid = (TempMetadataID)metadataId; if (tid.getTableData().getModel() != null) { tid.getTableData().dataModified((Integer)results.getResults()[commandIndex].get(0)); } } return; } Table t = (Table)metadataId; t.setLastDataModification(ts); if (distributor != null) { distributor.dataModification(this.workItem.getDqpWorkContext().getVdbName(), this.workItem.getDqpWorkContext().getVdbVersion(), t.getParent().getName(), t.getName()); } }
return true; if (transactionalReads || RelationalNodeUtil.isUpdate(command) || (command instanceof StoredProcedure && ((StoredProcedure)command).getUpdateCount() != 0)) { if ((multiSource && connectorBindingExpression == null)) { return true;
return true; if (transactionalReads || RelationalNodeUtil.isUpdate(command) || (command instanceof StoredProcedure && ((StoredProcedure)command).getUpdateCount() != 0)) { if ((multiSource && connectorBindingExpression == null)) { return true;
return true; if (transactionalReads || RelationalNodeUtil.isUpdate(command) || (command instanceof StoredProcedure && ((StoredProcedure)command).getUpdateCount() != 0)) { if ((multiSource && connectorBindingExpression == null)) { return true;
isUpdate = RelationalNodeUtil.isUpdate(command);
isUpdate = RelationalNodeUtil.isUpdate(command);
isUpdate = RelationalNodeUtil.isUpdate(command);
Command command = aqr.getCommand(); int commandIndex = 0; if (RelationalNodeUtil.isUpdate(command)) { long ts = System.currentTimeMillis(); checkForUpdates(results, command, dtm.getEventDistributor(), commandIndex, ts);
Command command = aqr.getCommand(); int commandIndex = 0; if (RelationalNodeUtil.isUpdate(command)) { long ts = System.currentTimeMillis(); checkForUpdates(results, command, dtm.getEventDistributor(), commandIndex, ts);
Command command = aqr.getCommand(); int commandIndex = 0; if (RelationalNodeUtil.isUpdate(command)) { long ts = System.currentTimeMillis(); checkForUpdates(results, command, dtm.getEventDistributor(), commandIndex, ts);
List projectedSymbols = (message.getCommand()).getProjectedSymbols(); List[] results = createResults(projectedSymbols, rows, useIntCounter); if (RelationalNodeUtil.isUpdate(message.getCommand())) { results = new List[] {Arrays.asList(1)};
} else { ProcessorPlan plan = FrameUtil.getNestedPlan(root); if (plan != null && (command == null || !RelationalNodeUtil.isUpdate(command))) {
} else { ProcessorPlan plan = FrameUtil.getNestedPlan(root); if (plan != null && (command == null || !RelationalNodeUtil.isUpdate(command))) {
} else { ProcessorPlan plan = FrameUtil.getNestedPlan(root); if (plan != null && (command == null || !RelationalNodeUtil.isUpdate(command))) {