/** * Get name of this clause. * @return Name of clause */ public String getName() { return this.symbol.getName(); }
/** * Get name of this clause. * @return Name of clause */ public String getName() { return this.symbol.getName(); }
/** * Get name of this clause. * @return Name of clause */ public String getName() { return this.symbol.getName(); }
/** * Get name of this clause. * @return Name of clause */ public String getName() { return this.symbol.getName(); }
/** * Get name of this clause. * @return Name of clause */ public String getName() { return this.symbol.getName(); }
public String getNonCorrelationName() { if (this.definition == null) { return this.getName(); } return this.getDefinition(); }
/** * @see org.teiid.query.sql.LanguageVisitor#visit(org.teiid.query.sql.symbol.GroupSymbol) */ @Override public void visit(GroupSymbol obj) { this.namingContext.renameGroup(obj, this.namingContext.getGroupName(obj.getName())); }
public String getNonCorrelationName() { if (this.definition == null) { return this.getName(); } return this.getDefinition(); }
/** * @see org.teiid.query.sql.LanguageVisitor#visit(org.teiid.query.sql.symbol.GroupSymbol) */ @Override public void visit(GroupSymbol obj) { this.namingContext.renameGroup(obj, this.namingContext.getGroupName(obj.getName())); }
private Map<Integer, Object> createXMLColumnMetadata(Query xmlCommand) { GroupSymbol doc = xmlCommand.getFrom().getGroups().get(0); Map<Integer, Object> xmlMetadata = getDefaultColumn(doc.getName(), XML_COLUMN_NAME, XMLType.class); // Override size as XML may be big xmlMetadata.put(ResultsMetadataConstants.DISPLAY_SIZE, JDBCSQLTypeInfo.XML_COLUMN_LENGTH); return xmlMetadata; }
@Override public String getName() { if (this.groupSymbol != null) { return this.groupSymbol.getName() + Symbol.SEPARATOR + this.getShortName(); } return super.getName(); }
private static GroupSymbol resolveAllInGroup(MultipleElementSymbol allInGroupSymbol, Set<GroupSymbol> groups, QueryMetadataInterface metadata) throws QueryResolverException, QueryMetadataException, TeiidComponentException { String groupAlias = allInGroupSymbol.getGroup().getName(); List<GroupSymbol> groupSymbols = ResolverUtil.findMatchingGroups(groupAlias, 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; } allInGroupSymbol.setGroup(groupSymbols.get(0).clone()); return groupSymbols.get(0); }
private static GroupSymbol resolveAllInGroup(MultipleElementSymbol allInGroupSymbol, Set<GroupSymbol> groups, QueryMetadataInterface metadata) throws QueryResolverException, QueryMetadataException, TeiidComponentException { String groupAlias = allInGroupSymbol.getGroup().getName(); List<GroupSymbol> groupSymbols = ResolverUtil.findMatchingGroups(groupAlias, 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; } allInGroupSymbol.setGroup(groupSymbols.get(0).clone()); return groupSymbols.get(0); }
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(QueryPlugin.Event.TEIID30115, msg); qre.addUnresolvedSymbol(new UnresolvedSymbolDescription(group.toString(), msg)); throw new TeiidRuntimeException(qre); } } discoveredGroups.clear(); }
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(QueryPlugin.Event.TEIID30115, msg); qre.addUnresolvedSymbol(new UnresolvedSymbolDescription(group.toString(), msg)); throw new TeiidRuntimeException(qre); } } discoveredGroups.clear(); }
public static void resolveImplicitTempGroup(TempMetadataAdapter metadata, GroupSymbol symbol, List symbols) throws TeiidComponentException, QueryResolverException { if (symbol.isImplicitTempGroupSymbol()) { if (metadata.getMetadataStore().getTempElementElementIDs(symbol.getName())==null) { addTempGroup(metadata, symbol, symbols, true); } ResolverUtil.resolveGroup(symbol, metadata); } }
public static Command createDeleteProcedure(Delete delete, QueryMetadataInterface metadata, CommandContext context) throws QueryResolverException, QueryMetadataException, TeiidComponentException, TeiidProcessingException { QueryRewriter rewriter = new QueryRewriter(metadata, context); Criteria crit = delete.getCriteria(); Query query = new Query(new Select(), new From(Arrays.asList(new UnaryFromClause(delete.getGroup()))), crit, null, null); return rewriter.createDeleteProcedure(delete, query, delete.getGroup(), delete.getGroup().getName()); }
public void updateSymbolMapDependentValues() { // based on the symbol map modify the getalias name if (getAliasResultName() != null) { GroupSymbol newGroup = getMappedSymbol(new GroupSymbol(getAliasResultName())); setAliasResultName(newGroup.getName()); } ElementSymbol mappingClassSymbol = this.getResultSetInfo().getMappingClassSymbol(); if (mappingClassSymbol != null) { this.getResultSetInfo().setMappingClassSymbol(getMappedSymbol(mappingClassSymbol)); } }