Package org.teiid.query.validator

Examples of org.teiid.query.validator.ValidationVisitor$PositiveIntegerConstraint


    String cacheString = "transformation/" + container.getClass().getSimpleName().toUpperCase(); //$NON-NLS-1$
    Command c = (Command)metadata.getFromMetadataCache(metadataId, cacheString);
    if (c == null) {
      c = QueryResolver.expandCommand(container, metadata, analysisRecord);
      if (c != null) {
            Request.validateWithVisitor(new ValidationVisitor(), metadata, c);
            metadata.addToMetadataCache(metadataId, cacheString, c.clone());
      }
    } else {
      c = (Command)c.clone();
      if (c instanceof CreateUpdateProcedureCommand) {
View Full Code Here


            if (bindings != null && !bindings.isEmpty()) {
              QueryResolver.resolveWithBindingMetadata(result, qmi, qnode, true);
            } else {
              QueryResolver.resolveCommand(result, qmi, false);
            }
          Request.validateWithVisitor(new ValidationVisitor(), qmi, result);
           
          validateProjectedSymbols(virtualGroup, qmi, result);
            cachedNode = new QueryNode(qnode.getQuery());
            cachedNode.setCommand((Command)result.clone());
         
View Full Code Here

      validateDynamicCommand(procEnv, command);

      // create a new set of variables including vars
      Map<ElementSymbol, Expression> nameValueMap = createVariableValuesMap(localContext);
            nameValueMap.putAll(QueryResolver.getVariableValues(parentProcCommand.getUserCommand(), false, metadata));
            ValidationVisitor visitor = new ValidationVisitor();
            visitor.setUpdateProc(parentProcCommand);
            Request.validateWithVisitor(visitor, metadata, command);

            if (dynamicCommand.getAsColumns() != null
          && !dynamicCommand.getAsColumns().isEmpty()) {
            command = QueryRewriter.createInlineViewQuery(new GroupSymbol("X"), command, metadata, dynamicCommand.getAsColumns()); //$NON-NLS-1$
View Full Code Here

       
    private void validateQuery(Command command)
        throws QueryValidatorException, TeiidComponentException {
               
        // Create generic sql validation visitor
        AbstractValidationVisitor visitor = new ValidationVisitor();
        validateWithVisitor(visitor, metadata, command);
    }
View Full Code Here

      Command newCommand = QueryParser.getQueryParser().parseCommand(query, parseInfo);
          QueryResolver.resolveCommand(newCommand, metadata);           
         
          List<Reference> references = ReferenceCollectorVisitor.getReferences(newCommand);
         
          AbstractValidationVisitor visitor = new ValidationVisitor();
          Request.validateWithVisitor(visitor, metadata, newCommand);
          Determinism determinismLevel = copy.resetDeterminismLevel();
          newCommand = QueryRewriter.rewrite(newCommand, metadata, copy);
          AnalysisRecord record = new AnalysisRecord(false, false);
          ProcessorPlan plan = QueryOptimizer.optimizePlan(newCommand, metadata, idGenerator, finder, record, copy);
View Full Code Here

TOP

Related Classes of org.teiid.query.validator.ValidationVisitor$PositiveIntegerConstraint

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.