Package org.teiid.core

Examples of org.teiid.core.TeiidComponentException


        try {
            if (validateSubqueryPushdown(crit, modelID, metadata, capFinder, analysisRecord) == null) {
              markInvalid(crit.getCommand(), "Subquery cannot be pushed down"); //$NON-NLS-1$
            }
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here


                markInvalid(obj.getCommand(), !this.caps.supportsCapability(Capability.QUERY_SUBQUERIES_SCALAR)?
                    "Correlated ScalarSubquery is not supported":"Subquery cannot be pushed down"); //$NON-NLS-1$ //$NON-NLS-2$
              }
            }
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

            if (validateSubqueryPushdown(crit, modelID, metadata, capFinder, analysisRecord) == null) {
              markInvalid(crit.getCommand(), "Subquery cannot be pushed down"); //$NON-NLS-1$
            }
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

            }
            // Check capabilities of the elements
            checkElementsAreSearchable(crit, SupportConstants.Element.SEARCHABLE_COMPARE);                       
                
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }

    }
View Full Code Here

                if (!CriteriaCapabilityValidatorVisitor.canPushLanguageObject(subqueryContainer.getCommand(), critNodeModelID, metadata, capFinder, analysisRecord )) {
                    return null;
                }
            }
        } catch(QueryMetadataException e) {
            throw new TeiidComponentException(e);                 
        }

        // Found no reason why this node is not eligible
        return critNodeModelID;
    }
View Full Code Here

          critNodeModelID = modelID;
        } else if(!CapabilitiesUtil.isSameConnector(critNodeModelID, modelID, metadata, capFinder)) {
            return null;
        }
    } catch(QueryMetadataException e) {
        throw new TeiidComponentException(e, QueryPlugin.Util.getString("RulePushSelectCriteria.Error_getting_modelID")); //$NON-NLS-1$
    }
    return critNodeModelID;
  }
View Full Code Here

                PlanNode setOp = child.getFirstChild();
               
                try {
          pushGroupNodeOverUnion(plan, metadata, capFinder, groupNode, child, groupingExpressions, setOp, context);
        } catch (QueryResolverException e) {
          throw new TeiidComponentException(e);
        }
                continue;
            }
         
            if (child.getType() != NodeConstants.Types.JOIN) {
View Full Code Here

    TempMetadataStore store = new TempMetadataStore();
        TempMetadataAdapter tma = new TempMetadataAdapter(metadata, store);
        try {
      group.setMetadataID(ResolverUtil.addTempGroup(tma, group, virtualElements, false));
    } catch (QueryResolverException e) {
      throw new TeiidComponentException(e);
    }
      List<ElementSymbol> projectedSymbols = ResolverUtil.resolveElementsInGroup(group, metadata);
      SymbolMap symbolMap = SymbolMap.createSymbolMap(projectedSymbols,
        (List<Expression>)NodeEditor.findNodePreOrder(child, NodeConstants.Types.PROJECT).getProperty(NodeConstants.Info.PROJECT_COLS));
    return symbolMap;
View Full Code Here

                Map<AggregateSymbol, Expression> aggMap = buildAggregateMap(aggregates, metadata, newAggs);
                mapExpressions(groupNode.getParent(), aggMap, metadata);
                aggregates.clear();
                aggregates.addAll(newAggs);
            } catch (QueryResolverException err) {
                throw new TeiidComponentException(err);
            }
        }
    }
View Full Code Here

      canThrowComponentException |= TeiidComponentException.class.isAssignableFrom(exceptionClasses[i]);
      canThrowAdminException |= AdminException.class.isAssignableFrom(exceptionClasses[i]);
      canThrowXATransactionException |= XATransactionException.class.isAssignableFrom(exceptionClasses[i]);
        }
        if (canThrowComponentException) {
          return new TeiidComponentException(exception);
        }
        if (canThrowAdminException) {
      if (exception instanceof TeiidProcessingException) {
        return new AdminProcessingException(exception);
      }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidComponentException

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.