Package org.jfree.report

Examples of org.jfree.report.DataSourceException


    {
      throw dse;
    }
    catch (Exception e)
    {
      throw new DataSourceException("Failed to evaluate expression", e);
    }
    finally
    {
      expression.setRuntime(null);
    }
View Full Code Here


  public Object get(final String col) throws DataSourceException
  {
    final Integer colIdx = (Integer) nameCache.get(col);
    if (colIdx == null)
    {
      throw new DataSourceException
          ("Invalid name specified. There is no such column.");
    }

    return data[colIdx.intValue()].getValue();
  }
View Full Code Here

  public DataFlags getFlags(final String col) throws DataSourceException
  {
    final Integer colIdx = (Integer) nameCache.get(col);
    if (colIdx == null)
    {
      throw new DataSourceException
          ("Invalid name specified. There is no such column.");
    }

    return data[colIdx.intValue()];
  }
View Full Code Here

      if (reportData.getCursorPosition() != cursor)
      {
        // directly go to the position we need.
        if (reportData.setCursorPosition(cursor + 1) == false)
        {
          throw new DataSourceException("Unable to advance cursor position");
        }
      }
      else
      {
        if (reportData.next() == false)
        {
          throw new DataSourceException("Unable to advance cursor position");
        }
      }
      return new ReportDataRow(reportData, this);
    }
  }
View Full Code Here

      }
      return edr;
    }
    catch (CloneNotSupportedException e)
    {
      throw new DataSourceException("Cloning failed", e);
    }
  }
View Full Code Here

    {
      return new ExpressionDataRow(master, this);
    }
    catch (CloneNotSupportedException e)
    {
      throw new DataSourceException("Cloning failed", e);
    }
  }
View Full Code Here

            }
            return ret;
        }
        catch (com.sun.star.report.DataSourceException e)
        {
            throw new DataSourceException("Failed to move cursor", e);
        }
    }
View Full Code Here

        {
            dataSource.close();
        }
        catch (com.sun.star.report.DataSourceException e)
        {
            throw new DataSourceException("Failed to close datasource", e);
        }
    }
View Full Code Here

            }
            return false;
        }
        catch (com.sun.star.report.DataSourceException e)
        {
            throw new DataSourceException("Failed to move cursor", e);
        }
    }
View Full Code Here

    public Object get(final int column)
            throws DataSourceException
    {
        if (!isReadable())
        {
            throw new DataSourceException("Failed to query column.");
        }

        try
        {
            return dataSource.getObject(column + 1);
        }
        catch (com.sun.star.report.DataSourceException e)
        {
            throw new DataSourceException("Failed to query column.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jfree.report.DataSourceException

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.