Example #1
0
  /**
   * The constructor.
   *
   * @param setHandle the data set handle
   * @param setDesign the data set design
   */
  ResultSetsAdapter(OdaDataSetHandle setHandle, DataSetDesign setDesign) {
    this.setHandle = setHandle;
    this.setDesign = setDesign;

    filterAdapter = new ResultSetCriteriaAdapter(setHandle, setDesign);

    Iterator tmpIterator = setHandle.resultSetIterator();
    setDefinedResults = new ArrayList();
    while (tmpIterator.hasNext()) setDefinedResults.add(tmpIterator.next());

    tmpIterator = setHandle.columnHintsIterator();
    setDefinedColumnHints = new ArrayList();
    while (tmpIterator.hasNext()) setDefinedColumnHints.add(tmpIterator.next());

    designFactory = ODADesignFactory.getFactory();
  }
  /**
   * Updates a ROM result set definition. To make sure that convertNativeTypeToROMDataType() will be
   * called. So that can verify blob conversion.
   *
   * @param param
   */
  private void updateResultSetDefinition2(OdaDataSetHandle setHandle) throws SemanticException {
    Iterator iter1 = setHandle.resultSetIterator();
    OdaResultSetColumnHandle column = (OdaResultSetColumnHandle) iter1.next();

    column.setNativeDataType(new Integer(10));
  }