/**
  * Intializer for a table in a FROM list.
  *
  * @param subquery The subquery
  * @param orderByList ORDER BY list if any, or null
  * @param offset OFFSET if any, or null
  * @param fetchFirst FETCH FIRST if any, or null
  * @param hasJDBClimitClause True if the offset/fetchFirst clauses come from JDBC limit/offset
  *     escape syntax
  * @param correlationName The correlation name
  * @param derivedRCL The derived column list
  * @param tableProperties Properties list associated with the table
  */
 public void init(
     Object subquery,
     Object orderByList,
     Object offset,
     Object fetchFirst,
     Object hasJDBClimitClause,
     Object correlationName,
     Object derivedRCL,
     Object tableProperties) {
   super.init(correlationName, tableProperties);
   this.subquery = (ResultSetNode) subquery;
   this.orderByList = (OrderByList) orderByList;
   this.offset = (ValueNode) offset;
   this.fetchFirst = (ValueNode) fetchFirst;
   this.hasJDBClimitClause =
       (hasJDBClimitClause == null) ? false : ((Boolean) hasJDBClimitClause).booleanValue();
   resultColumns = (ResultColumnList) derivedRCL;
 }
Esempio n. 2
0
  /**
   * @param invocation The constructor or static method for the VTI
   * @param correlationName The correlation name
   * @param derivedRCL The derived column list
   * @param tableProperties Properties list associated with the table
   * @param exposedTableName The table name (TableName class)
   * @exception StandardException Thrown on error
   */
  public void init(
      Object invocation,
      Object correlationName,
      Object derivedRCL,
      Object tableProperties,
      Object exposedTableName)
      throws StandardException {
    super.init(correlationName, tableProperties);

    this.methodCall = (MethodCallNode) invocation;

    resultColumns = (ResultColumnList) derivedRCL;
    subqueryList =
        (SubqueryList) getNodeFactory().getNode(NodeTypes.SUBQUERY_LIST, getParserContext());

    /* Cache exposed name for this table.
     * The exposed name becomes the qualifier for each column
     * in the expanded list.
     */
    this.exposedName = (TableName) exposedTableName;
  }