/**
   * 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()");
  }
Example #2
0
 @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;
 }
Example #3
0
 @Override
 public String toString() {
   return elements.toString();
 }
Example #4
0
 @Override
 public int hashCode() {
   return elements.hashCode();
 }
Example #5
0
 public int count() {
   return elements.size();
 }
Example #6
0
 public String getAlias(int i) {
   return elements.getKey(i);
 }
Example #7
0
 public String get(String alias) {
   return elements.get(alias);
 }
Example #8
0
 public String get(int i) {
   return elements.get(i);
 }
Example #9
0
 public void add(String element) {
   elements.add(element, element);
 }
Example #10
0
 public void add(String alias, String element) {
   elements.add(alias, element);
 }