Examples of addUnresolvedSymbol()


Examples of org.teiid.api.exception.query.QueryResolverException.addUnresolvedSymbol()

    private void addDiscoveredGroups() {
      for (GroupSymbol group : discoveredGroups) {
        if (!this.currentGroups.add(group)) {
                  String msg = QueryPlugin.Util.getString("ERR.015.008.0046", group.getName()); //$NON-NLS-1$
                  QueryResolverException qre = new QueryResolverException("ERR.015.008.0046", msg); //$NON-NLS-1$
                  qre.addUnresolvedSymbol(new UnresolvedSymbolDescription(group.toString(), msg));
                  throw new TeiidRuntimeException(qre);
              }
      }
            discoveredGroups.clear();
    }
View Full Code Here

Examples of org.teiid.api.exception.query.QueryResolverException.addUnresolvedSymbol()

        String groupAlias = name.substring(0, index);
        List<GroupSymbol> groupSymbols = ResolverUtil.findMatchingGroups(groupAlias.toUpperCase(), groups, metadata);
        if(groupSymbols.isEmpty() || groupSymbols.size() > 1) {
            String msg = QueryPlugin.Util.getString(groupSymbols.isEmpty()?"ERR.015.008.0047":"SimpleQueryResolver.ambiguous_all_in_group", allInGroupSymbol)//$NON-NLS-1$ //$NON-NLS-2$
            QueryResolverException qre = new QueryResolverException(msg);
            qre.addUnresolvedSymbol(new UnresolvedSymbolDescription(allInGroupSymbol.toString(), msg));
            throw qre;
        }

        return groupSymbols.get(0);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.