Package org.jfree.report

Examples of org.jfree.report.DataSourceException


            }
            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

        {
            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

      }
    }

    if (resultSet.first() == false)
    {
      throw new DataSourceException("Unable to reset the dataset.");
    }
    cursor = 0;
  }
View Full Code Here

  public boolean setCursorPosition(final int row) throws DataSourceException
  {
    if (row < 0)
    {
      throw new DataSourceException("Negative row number is not valid");
    }
    if (row > rowCount)
    {
      return false;
      // throw new DataSourceException("OutOfBounds:");
    }

    try
    {
      if (cursor == 0)
      {
        resultSet.beforeFirst();
        return true;
      }

      if (resultSet.absolute(row))
      {
        cursor = row;
        return true;
      }
      return false;
      //throw new DataSourceException("Unable to scroll the resultset.");
    }
    catch (SQLException e)
    {
      throw new DataSourceException("Failed to move the cursor: ", e);
    }
  }
View Full Code Here

        return false;
      }
    }
    catch (SQLException e)
    {
      throw new DataSourceException("Failed to move the cursor: ", e);
    }
  }
View Full Code Here

    {
      resultSet.close();
    }
    catch (SQLException e)
    {
      throw new DataSourceException("Failed to close the resultset: ", 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.