public Query getProjectedQuery() { if (leftQuery instanceof SetQuery) { return ((SetQuery)leftQuery).getProjectedQuery(); } return (Query)leftQuery; }
public Query getProjectedQuery() { if (leftQuery instanceof SetQuery) { return ((SetQuery)leftQuery).getProjectedQuery(); } return (Query)leftQuery; }
public Query getProjectedQuery() { if (leftQuery instanceof SetQuery) { return ((SetQuery)leftQuery).getProjectedQuery(); } return (Query)leftQuery; }
void setSourceHint(SourceHint sourceHint, Command command) { if (sourceHint != null) { if (command instanceof SetQuery) { ((SetQuery)command).getProjectedQuery().setSourceHint(sourceHint); } else { command.setSourceHint(sourceHint); } } }
void setSourceHint(SourceHint sourceHint, Command command) { if (sourceHint != null) { if (command instanceof SetQuery) { ((SetQuery)command).getProjectedQuery().setSourceHint(sourceHint); } else { command.setSourceHint(sourceHint); } } }
void setSourceHint(SourceHint sourceHint, Command command) { if (sourceHint != null) { if (command instanceof SetQuery) { ((SetQuery)command).getProjectedQuery().setSourceHint(sourceHint); } else { command.setSourceHint(sourceHint); } } }
/** * Get the ordered list of all elements returned by this query. These elements * may be ElementSymbols or ExpressionSymbols but in all cases each represents a * single column. * @return Ordered list of SingleElementSymbol */ public List getProjectedSymbols() { Query query = getProjectedQuery(); List projectedSymbols = query.getProjectedSymbols(); if (projectedTypes != null) { return getTypedProjectedSymbols(projectedSymbols, projectedTypes, metadata); } return projectedSymbols; }
/** * Get the ordered list of all elements returned by this query. These elements * may be ElementSymbols or ExpressionSymbols but in all cases each represents a * single column. * @return Ordered list of SingleElementSymbol */ public List getProjectedSymbols() { Query query = getProjectedQuery(); List projectedSymbols = query.getProjectedSymbols(); if (projectedTypes != null) { return getTypedProjectedSymbols(projectedSymbols, projectedTypes, metadata); } return projectedSymbols; }
/** * Get the ordered list of all elements returned by this query. These elements * may be ElementSymbols or ExpressionSymbols but in all cases each represents a * single column. * @return Ordered list of SingleElementSymbol */ public List getProjectedSymbols() { Query query = getProjectedQuery(); List projectedSymbols = query.getProjectedSymbols(); if (projectedTypes != null) { return getTypedProjectedSymbols(projectedSymbols, projectedTypes, metadata); } return projectedSymbols; }
/** * Get hashcode for query. WARNING: This hash code relies on the hash codes of the * Select and Criteria clauses. If the query changes, it's hash code will change and * it can be lost from collections. Hash code is only valid after query has been * completely constructed. * @return Hash code */ public int hashCode() { // For speed, this hash code relies only on the hash codes of its select // and criteria clauses, not on the from, order by, or option clauses int myHash = 0; myHash = HashCodeUtil.hashCode(myHash, this.operation); myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery()); return myHash; }
/** * Get hashcode for query. WARNING: This hash code relies on the hash codes of the * Select and Criteria clauses. If the query changes, it's hash code will change and * it can be lost from collections. Hash code is only valid after query has been * completely constructed. * @return Hash code */ public int hashCode() { // For speed, this hash code relies only on the hash codes of its select // and criteria clauses, not on the from, order by, or option clauses int myHash = 0; myHash = HashCodeUtil.hashCode(myHash, this.operation); myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery()); return myHash; }
/** * Get hashcode for query. WARNING: This hash code relies on the hash codes of the * Select and Criteria clauses. If the query changes, it's hash code will change and * it can be lost from collections. Hash code is only valid after query has been * completely constructed. * @return Hash code */ public int hashCode() { // For speed, this hash code relies only on the hash codes of its select // and criteria clauses, not on the from, order by, or option clauses int myHash = 0; myHash = HashCodeUtil.hashCode(myHash, this.operation); myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery()); return myHash; }
}else if(command instanceof SetQuery) { SetQuery union = (SetQuery) command; group = getQueryGroup(union.getProjectedQuery()); } else if (command instanceof StoredProcedure) { Object id = ((StoredProcedure) command).getProcedureID();
SetQuery query = (SetQuery)command; SourceHint previous = this.sourceHint; this.sourceHint = SourceHint.combine(previous, query.getProjectedQuery().getSourceHint());
SetQuery query = (SetQuery)command; SourceHint previous = this.sourceHint; this.sourceHint = SourceHint.combine(previous, query.getProjectedQuery().getSourceHint());
SetQuery query = (SetQuery)command; SourceHint previous = this.sourceHint; this.sourceHint = SourceHint.combine(previous, query.getProjectedQuery().getSourceHint());