/** * Bind the expressions in the underlying ResultSets with tables. * * @exception StandardException Thrown on error */ protected void bindExpressionsWithTables() throws StandardException { FromList fromList = (FromList) getNodeFactory() .getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); /* Bind the expressions under the resultSet */ resultSet.bindExpressionsWithTables(fromList); /* Verify that all underlying ResultSets reclaimed their FromList */ if (SanityManager.DEBUG) SanityManager.ASSERT( fromList.size() == 0, "fromList.size() is expected to be 0, not " + fromList.size() + " on return from RS.bindExpressions()"); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof FromClause) { FromClause sc = (FromClause) obj; return elements.equals(sc.elements); } return false; }
@Override public String toString() { return elements.toString(); }
@Override public int hashCode() { return elements.hashCode(); }
public int count() { return elements.size(); }
public String getAlias(int i) { return elements.getKey(i); }
public String get(String alias) { return elements.get(alias); }
public String get(int i) { return elements.get(i); }
public void add(String element) { elements.add(element, element); }
public void add(String alias, String element) { elements.add(alias, element); }