Package org.teiid.query.sql.symbol

Examples of org.teiid.query.sql.symbol.ElementSymbol.clone()


            ElementSymbol varSymbol = varIter.next().clone();
           
            varSymbol.getGroupSymbol().setName(ProcedureReservedWords.CHANGING);
            result.put(varSymbol, new Constant(Boolean.TRUE));
            if (!changingOnly) {
              varSymbol = varSymbol.clone();
              varSymbol.getGroupSymbol().setName(ProcedureReservedWords.INPUTS);
              result.put(varSymbol, (Expression)valIter.next());
            }
        }
       
View Full Code Here


            varSymbol.getGroupSymbol().setName(ProcedureReservedWords.CHANGING);
            result.put(varSymbol, new Constant(Boolean.FALSE));
           
            if (!changingOnly) {
                Expression value = ResolverUtil.getDefault(varSymbol, metadata);
              varSymbol = varSymbol.clone();
              varSymbol.getGroupSymbol().setName(ProcedureReservedWords.INPUTS);
              result.put(varSymbol, value);
            }
        }
       
View Full Code Here

        for (Entry<ElementSymbol, Expression> entry : changing.entrySet()) {
          ElementSymbol leftSymbol = entry.getKey().clone();
            leftSymbol.getGroupSymbol().setName(ProcedureReservedWords.CHANGING);
            result.put(leftSymbol, new Constant(Boolean.TRUE));
            if (!changingOnly) {
              leftSymbol = leftSymbol.clone();
              leftSymbol.getGroupSymbol().setName(ProcedureReservedWords.INPUTS);
              result.put(leftSymbol, entry.getValue());
            }
        }
       
View Full Code Here

          }
          ElementSymbol elementSymbol = (ElementSymbol)ses;
          ResolverVisitor.resolveLanguageObject(elementSymbol, metadata);
          elementSymbol.setIsExternalReference(true);
          if (!positional) {
            symbolMap.put(new ElementSymbol(ProcedureReservedWords.INPUT + ElementSymbol.SEPARATOR + name), elementSymbol.clone());
            symbolMap.put(new ElementSymbol(ProcedureReservedWords.INPUTS + ElementSymbol.SEPARATOR + name), elementSymbol.clone());
            elementSymbol.setShortName(name);
          }
            elements.add(elementSymbol);
        }
View Full Code Here

          ElementSymbol elementSymbol = (ElementSymbol)ses;
          ResolverVisitor.resolveLanguageObject(elementSymbol, metadata);
          elementSymbol.setIsExternalReference(true);
          if (!positional) {
            symbolMap.put(new ElementSymbol(ProcedureReservedWords.INPUT + ElementSymbol.SEPARATOR + name), elementSymbol.clone());
            symbolMap.put(new ElementSymbol(ProcedureReservedWords.INPUTS + ElementSymbol.SEPARATOR + name), elementSymbol.clone());
            elementSymbol.setShortName(name);
          }
            elements.add(elementSymbol);
        }
        if (positional) {
View Full Code Here

            OrderBy by = rs.getOrderBy();
            if (by == null) {
                by = new OrderBy();
            }
            ElementSymbol mappedSymbol = (ElementSymbol)sourceNode.getSymbolMap().get(new ElementSymbol(elementNode.getNameInSource()));
            by.addVariable((ElementSymbol)mappedSymbol.clone(), ((Boolean)types.get(i)).booleanValue());
            rs.setOrderBy(by);
    }
  }
       
}
View Full Code Here

        variable.setGroupSymbol(variables);
        TempMetadataID id = new TempMetadataID(variable.getName(), variable.getType());
        id.setUpdatable(true);
        variable.setMetadataID(id);
        //TODO: this will cause the variables group to loose it's cache of resolved symbols
        metadata.getMetadataStore().addElementToTempGroup(ProcedureReservedWords.VARIABLES, (ElementSymbol)variable.clone());
    }

    private void handleUnresolvableDeclaration(ElementSymbol variable, String description) throws QueryResolverException {
        UnresolvedSymbolDescription symbol = new UnresolvedSymbolDescription(variable.toString(), description);
        QueryResolverException e = new QueryResolverException(symbol.getDescription());
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.