public UpdateMapping findInsertUpdateMapping(Insert insert, boolean rewrite) throws QueryValidatorException { if (getUnionBranches().isEmpty()) { return findUpdateMapping(insert.getVariables(), true); UpdateMapping mapping = info.findUpdateMapping(variables, true); if (rewrite && mapping != null && !filteredColumns.isEmpty()) { for (ElementSymbol elementSymbol : filteredColumns) {
public UpdateMapping findInsertUpdateMapping(Insert insert, boolean rewrite) throws QueryValidatorException { if (getUnionBranches().isEmpty()) { return findUpdateMapping(insert.getVariables(), true); UpdateMapping mapping = info.findUpdateMapping(variables, true); if (rewrite && mapping != null && !filteredColumns.isEmpty()) { for (ElementSymbol elementSymbol : filteredColumns) {
public UpdateMapping findInsertUpdateMapping(Insert insert, boolean rewrite) throws QueryValidatorException { if (getUnionBranches().isEmpty()) { return findUpdateMapping(insert.getVariables(), true); UpdateMapping mapping = info.findUpdateMapping(variables, true); if (rewrite && mapping != null && !filteredColumns.isEmpty()) { for (ElementSymbol elementSymbol : filteredColumns) {
TeiidComponentException, QueryResolverException, TeiidProcessingException { UpdateMapping mapping = info.findUpdateMapping(update.getChangeList().getClauseMap().keySet(), false); if (mapping == null) { throw new QueryValidatorException(QueryPlugin.Event.TEIID30376, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30376, update.getChangeList().getClauseMap().keySet())); Collection<ElementSymbol> elements = getAllElementsUsed(update, update.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { update.setGroup(mapping.getGroup().clone());
TeiidComponentException, QueryResolverException, TeiidProcessingException { UpdateMapping mapping = info.findUpdateMapping(update.getChangeList().getClauseMap().keySet(), false); if (mapping == null) { throw new QueryValidatorException(QueryPlugin.Event.TEIID30376, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30376, update.getChangeList().getClauseMap().keySet())); Collection<ElementSymbol> elements = getAllElementsUsed(update, update.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { update.setGroup(mapping.getGroup().clone());
TeiidComponentException, QueryResolverException, TeiidProcessingException { UpdateMapping mapping = info.findUpdateMapping(update.getChangeList().getClauseMap().keySet(), false); if (mapping == null) { throw new QueryValidatorException(QueryPlugin.Event.TEIID30376, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30376, update.getChangeList().getClauseMap().keySet())); Collection<ElementSymbol> elements = getAllElementsUsed(update, update.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { update.setGroup(mapping.getGroup().clone());
if (info.isSimple()) { Collection<ElementSymbol> elements = getAllElementsUsed(delete, delete.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { delete.setGroup(mapping.getGroup().clone());
if (info.isSimple()) { Collection<ElementSymbol> elements = getAllElementsUsed(delete, delete.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { delete.setGroup(mapping.getGroup().clone());
if (info.isSimple()) { Collection<ElementSymbol> elements = getAllElementsUsed(delete, delete.getGroup()); UpdateMapping fullMapping = info.findUpdateMapping(elements, false); if (fullMapping != null) { delete.setGroup(mapping.getGroup().clone());
public boolean hasValidUpdateMapping(Collection<ElementSymbol> updateCols) { if (findUpdateMapping(updateCols, false) == null) { return false; } for (UpdateInfo info : this.unionBranches) { if (info.findUpdateMapping(updateCols, false) == null) { return false; } } return true; }
public boolean hasValidUpdateMapping(Collection<ElementSymbol> updateCols) { if (findUpdateMapping(updateCols, false) == null) { return false; } for (UpdateInfo info : this.unionBranches) { if (info.findUpdateMapping(updateCols, false) == null) { return false; } } return true; }
public boolean hasValidUpdateMapping(Collection<ElementSymbol> updateCols) { if (findUpdateMapping(updateCols, false) == null) { return false; } for (UpdateInfo info : this.unionBranches) { if (info.findUpdateMapping(updateCols, false) == null) { return false; } } return true; }