Package org.jfree.report

Examples of org.jfree.report.DataSourceException


      }
      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() == false)
    {
      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

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

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

    {
      return (Function) clone();
    }
    catch (CloneNotSupportedException e)
    {
      throw new DataSourceException("Unable to derive a new instance");
    }
  }
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

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.