Package org.teiid.core

Examples of org.teiid.core.TeiidRuntimeException


            super.postVisitVisitor(obj);
            ResolverVisitor visitor = (ResolverVisitor)getVisitor();
            try {
        visitor.throwException(false);
      } catch (TeiidException e) {
        throw new TeiidRuntimeException(e);
      }
        }
View Full Code Here


       
        public void visit(GroupSymbol obj) {
            try {
                ResolverUtil.resolveGroup(obj, metadata);
            } catch (TeiidException err) {
                throw new TeiidRuntimeException(err);
            }
        }
View Full Code Here

        CompareCriteria ccrit = (CompareCriteria) transIter.next();
        ElementSymbol element = (ElementSymbol) ccrit.getLeftExpression();
        try {
                    ResolverVisitor.resolveLanguageObject(element, virtualGroup, metadata);
        } catch(QueryResolverException e) {
                    throw new TeiidRuntimeException(e);
        } catch(TeiidComponentException e) {
                    throw new TeiidRuntimeException(e);
        }
        }
      }
    }
View Full Code Here

      while(elmntIter.hasNext()) {
        ElementSymbol virtualElement = (ElementSymbol) elmntIter.next();
                try {
                    ResolverVisitor.resolveLanguageObject(virtualElement, virtualGroup, metadata);
                } catch(QueryResolverException e) {
                    throw new TeiidRuntimeException(e);
                } catch(TeiidComponentException e) {
                    throw new TeiidRuntimeException(e);
                }
      }
      }
    }
View Full Code Here

            command.pushNewResolvingContext(externalGroups);
           
            try {
                QueryResolver.resolveCommand(command, metadata.getMetadata(), false);
            } catch (TeiidException err) {
                throw new TeiidRuntimeException(err);
            }
        }
View Full Code Here

                for (GroupSymbol group : currentGroups) {
                    elementSymbols.addAll(resolveSelectableElements(group));
                }
                obj.setElementSymbols(elementSymbols);
            } catch (TeiidComponentException err) {
                throw new TeiidRuntimeException(err);
            }
        }
View Full Code Here

               
                List<ElementSymbol> elements = resolveSelectableElements(group);
               
                obj.setElementSymbols(elements);
            } catch (TeiidException err) {
                throw new TeiidRuntimeException(err);
            }
        }
View Full Code Here

          LinkedHashSet<GroupSymbol> saved = preTableFunctionReference(obj);
          this.visitNode(obj.getFile());
          try {
        obj.setFile(ResolverUtil.convertExpression(obj.getFile(), DataTypeManager.DefaultDataTypes.CLOB, metadata));
      } catch (QueryResolverException e) {
        throw new TeiidRuntimeException(e);
      }
      postTableFunctionReference(obj, saved);
            //set to fixed width if any column has width specified
            for (TextTable.TextColumn col : obj.getColumns()) {
        if (col.getWidth() != null) {
View Full Code Here

          ResolverVisitor.resolveLanguageObject(column.getDefaultExpression(), metadata);
          Expression ex = ResolverUtil.convertExpression(column.getDefaultExpression(), DataTypeManager.getDataTypeName(column.getSymbol().getType()), metadata);
          column.setDefaultExpression(ex);
        }
      } catch (TeiidException e) {
        throw new TeiidRuntimeException(e);
      }
        }
View Full Code Here

      }
            discoveredGroup(obj.getGroupSymbol());
            try {
                ResolverUtil.addTempGroup(metadata, obj.getGroupSymbol(), obj.getProjectedSymbols(), false);
            } catch (QueryResolverException err) {
                throw new TeiidRuntimeException(err);
            }
            obj.getGroupSymbol().setMetadataID(metadata.getMetadataStore().getTempGroupID(obj.getGroupSymbol().getName()));
            //now resolve the projected symbols
            Set<GroupSymbol> groups = new HashSet<GroupSymbol>();
            groups.add(obj.getGroupSymbol());
            for (ElementSymbol symbol : obj.getProjectedSymbols()) {
                try {
          ResolverVisitor.resolveLanguageObject(symbol, groups, null, metadata);
        } catch (TeiidException e) {
          throw new TeiidRuntimeException(e);
        }       
      }
        }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidRuntimeException

Copyright © 2018 www.massapicom. 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.