void parseTableInfo(BatchItem batchItem, UpdateNode statementNode) { /** 获取当前sql的数据库表信息 */ NodeAnalyzer<QueryTreeNode, AnalyzeResult> analyzer = Analyzers.get(statementNode.getNodeType()); AnalyzeResult result = analyzer.analyze(statementNode); batchItem.setAnalyzeResult(result); }
void parseTableInfo(BatchItem batchItem, InsertNode statementNode) { /** 获取当前sql的数据库表信息 */ NodeAnalyzer<QueryTreeNode, AnalyzeResult> analyzer = Analyzers.get(statementNode.getNodeType()); AnalyzeResult result = analyzer.analyze(statementNode); result.getConditionColumns().addAll(result.getResultColumns()); batchItem.setAnalyzeResult(result); }