public SQLPropertyExpr(SQLExpr owner, String name, long nameHashCod64){ setOwner(owner); this.name = name; this.nameHashCod64 = nameHashCod64; }
public SQLPropertyExpr(SQLExpr owner, String name){ setOwner(owner); this.name = name; }
public void setOwner(String owner) { this.setOwner(new SQLIdentifierExpr(owner)); }
public boolean visit(SQLPropertyExpr x) { String ownerName = x.getOwnernName(); if (ownerName == null) { return super.visit(x); } for (SQLObject parent = x.getParent(); parent != null; parent = parent.getParent()) { if (parent instanceof SQLSelectQueryBlock) { SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) parent; SQLTableSource tableSource = queryBlock.findTableSource(ownerName); if (tableSource == null) { continue; } String alias = tableSource.computeAlias(); if (tableSource != null && ownerName.equalsIgnoreCase(alias) && !ownerName.equals(alias)) { x.setOwner(alias); } break; } } return super.visit(x); } }
public void setSchema(String schema) { if (expr instanceof SQLIdentifierExpr) { if (schema == null) { return; } String ident = ((SQLIdentifierExpr) expr).getName(); this.setExpr(new SQLPropertyExpr(schema, ident)); } else if (expr instanceof SQLPropertyExpr) { SQLPropertyExpr propertyExpr = (SQLPropertyExpr) expr; if (schema == null) { setExpr(new SQLIdentifierExpr(propertyExpr.getName())); } else { propertyExpr.setOwner(schema); } } }
public SQLPropertyExpr(SQLExpr owner, String name, long nameHashCod64){ setOwner(owner); this.name = name; this.nameHashCod64 = nameHashCod64; }
public SQLPropertyExpr(SQLExpr owner, String name){ setOwner(owner); this.name = name; }
propertyExpr.setOwner(((SQLExprTableSource) allColumnTableSource).getExpr().clone()); propertyExpr = propertyExpr.clone(); if (redirectTableSource instanceof SQLExprTableSource) { propertyExpr.setOwner(((SQLExprTableSource) redirectTableSource).getExpr().clone()); propertyExpr.setOwner(tableSourceExpr); expr = propertyExpr; break;
public void setOwner(String owner) { this.setOwner(new SQLIdentifierExpr(owner)); }
public boolean visit(SQLPropertyExpr x) { String ownerName = x.getOwnernName(); if (ownerName == null) { return super.visit(x); } for (SQLObject parent = x.getParent(); parent != null; parent = parent.getParent()) { if (parent instanceof SQLSelectQueryBlock) { SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) parent; SQLTableSource tableSource = queryBlock.findTableSource(ownerName); if (tableSource == null) { continue; } String alias = tableSource.computeAlias(); if (tableSource != null && ownerName.equalsIgnoreCase(alias) && !ownerName.equals(alias)) { x.setOwner(alias); } break; } } return super.visit(x); } }
public void setSchema(String schema) { if (expr instanceof SQLIdentifierExpr) { if (schema == null) { return; } String ident = ((SQLIdentifierExpr) expr).getName(); this.setExpr(new SQLPropertyExpr(schema, ident)); } else if (expr instanceof SQLPropertyExpr) { SQLPropertyExpr propertyExpr = (SQLPropertyExpr) expr; if (schema == null) { setExpr(new SQLIdentifierExpr(propertyExpr.getName())); } else { propertyExpr.setOwner(schema); } } }
propertyExpr.setOwner(((SQLExprTableSource) allColumnTableSource).getExpr().clone()); propertyExpr = propertyExpr.clone(); if (redirectTableSource instanceof SQLExprTableSource) { propertyExpr.setOwner(((SQLExprTableSource) redirectTableSource).getExpr().clone()); propertyExpr.setOwner(tableSourceExpr); expr = propertyExpr; break;