Package org.pentaho.reporting.engine.classic.core.util

Examples of org.pentaho.reporting.engine.classic.core.util.CloseableTableModel


      final PrintStream ps = new PrintStream(sw, true, "UTF-8");
      final TableModel tableModel = dataFactory.queryDesignTimeStructure(getLogicalQueryForNextTest(), getParameterForNextTest());
      generateCompareText(ps, tableModel);
      if (tableModel instanceof CloseableTableModel)
      {
        final CloseableTableModel ctm = (CloseableTableModel) tableModel;
        ctm.close();
      }
      return sw.toString("UTF-8");
    }
    catch (UnsupportedEncodingException e)
    {
View Full Code Here


        final DataSchema dataSchema = dataSchemaCompiler.compile
            (reportData, expressions, parameterRow, parameterDefinitions, masterReport.getReportEnvironment());
        // this.columnNames = collectColumnNames(reportData, parameterRow, expressions);
        if (reportData instanceof CloseableTableModel)
        {
          final CloseableTableModel ctm = (CloseableTableModel) reportData;
          ctm.close();
        }
        return dataSchema;
      }
      finally
      {
View Full Code Here

      }
      finally
      {
        if (reportData instanceof CloseableTableModel)
        {
          final CloseableTableModel ctm = (CloseableTableModel) reportData;
          ctm.close();
        }
      }
    }
    if (offlineTableModel == null)
    {
View Full Code Here

   */
  public void close()
  {
    if (parentTableModel instanceof CloseableTableModel)
    {
      final CloseableTableModel closeableTableModel = (CloseableTableModel) parentTableModel;
      closeableTableModel.close();
    }
  }
View Full Code Here

      mondrianDataFactory.setQuery("default", query, null, null);
      mondrianDataFactory.initialize(new DesignTimeDataFactoryContext());

      final ParameterDataRow parameters = new ParameterDataRow(new String[]{"sLine"},
          new String[]{"[Product].[All Products].[Classic Cars]"});
      final CloseableTableModel tableModel = (CloseableTableModel) mondrianDataFactory.queryData("default",
          parameters);
      tableModel.close();
    }
    finally
    {

      mondrianDataFactory.close();
View Full Code Here

     */
    public void close()
    {
      if (metaTableModel instanceof CloseableTableModel)
      {
        final CloseableTableModel ctm = (CloseableTableModel) metaTableModel;
        ctm.close();
      }
    }
View Full Code Here

  public void close()
  {
    if (tableModel instanceof CloseableTableModel)
    {
      final CloseableTableModel ct = (CloseableTableModel) tableModel;
      ct.close();
    }
    dataFactory.close();
  }
View Full Code Here

  public void close()
  {
    if (tableModel instanceof CloseableTableModel)
    {
      final CloseableTableModel ct = (CloseableTableModel) tableModel;
      ct.close();
    }
    dataFactory.close();
  }
View Full Code Here

     */
    public void close()
    {
      if (metaTableModel instanceof CloseableTableModel)
      {
        final CloseableTableModel ctm = (CloseableTableModel) metaTableModel;
        ctm.close();
      }
    }
View Full Code Here

  public void closeTables() {
    // this is the old implementation of 'close'
    for ( TableModel model : tables.values() ) {
      if ( model instanceof CloseableTableModel ) {
        final CloseableTableModel closeableTableModel = (CloseableTableModel) model;
        closeableTableModel.close();
      }
    }
    tables.clear();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.CloseableTableModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.