can't find IQueryResults class inbirt-runtime-2.1RC1a.zip [message #162079] |
Wed, 17 May 2006 18:22  |
Eclipse User |
|
|
|
Originally posted by: chaohua.wang.premierata.com
Hi, Folks,
When I compile the following code, There is no these IQueryResults,
IBaseExpression, and IResultIterator classes files with
birt-runtime-2.1RC1a.zip.
It compiled in birt-runtime-2_0_1.zip. I think it is in package import
org.eclipse.birt.data.engine.api.*;
But I can't find it in birt-runtime-2.1RC1a.zip.
Please let me know where I can find the jar files contains IQueryResults,
IBaseExpression, and IResultIterato class in with birt-runtime-2.1RC1a.zip.
Thank you very much
Chaohua
public int DataPreview (IReportRunnable runnable, String datasetName)
throws RemoteException
{
assert runnable != null;
int count = 0;
IDataPreviewTask dataPreviewTask = null;
synchronized ( this.getClass( ) )
{
dataPreviewTask =
engine.createDataPreviewTask ( runnable );
}
IQueryResults actualResultSet =
dataPreviewTask.executeDataSet(datasetName , 1 , null);
try{
if ( actualResultSet != null )
{
//Iterate through results
Collection col =
actualResultSet.getPreparedQuery( ).getReportQueryDefn( ).getRowExpressions(
);
IBaseExpression[]
expressions = (IBaseExpression[])col.toArray( new
IBaseExpression[col.size( )]);
IResultIterator iter =
actualResultSet
|
|
|
Re: can't find IQueryResults class inbirt-runtime-2.1RC1a.zip [message #162625 is a reply to message #162079] |
Thu, 18 May 2006 14:49  |
Eclipse User |
|
|
|
Have you tried this with 2.1 RC2?
It should work.
Jason
"chaohua" <chaohua.wang@premierata.com> wrote in message
news:e4g7sk$i2k$1@utils.eclipse.org...
> Hi, Folks,
>
>
>
> When I compile the following code, There is no these IQueryResults,
> IBaseExpression, and IResultIterator classes files with
> birt-runtime-2.1RC1a.zip.
>
> It compiled in birt-runtime-2_0_1.zip. I think it is in package import
> org.eclipse.birt.data.engine.api.*;
>
> But I can't find it in birt-runtime-2.1RC1a.zip.
>
>
>
> Please let me know where I can find the jar files contains IQueryResults,
> IBaseExpression, and IResultIterato class in with
> birt-runtime-2.1RC1a.zip.
>
>
>
> Thank you very much
>
>
>
> Chaohua
>
>
>
>
>
>
>
> public int DataPreview (IReportRunnable runnable, String datasetName)
> throws RemoteException
>
> {
>
> assert runnable != null;
>
> int count = 0;
>
>
>
> IDataPreviewTask dataPreviewTask = null;
>
> synchronized ( this.getClass( ) )
>
> {
>
> dataPreviewTask =
> engine.createDataPreviewTask ( runnable );
>
> }
>
>
>
> IQueryResults actualResultSet =
> dataPreviewTask.executeDataSet(datasetName , 1 , null);
>
>
>
> try{
>
> if ( actualResultSet != null )
>
> {
>
> //Iterate through results
>
> Collection col =
> actualResultSet.getPreparedQuery( ).getReportQueryDefn( ).getRowExpressions(
> );
>
> IBaseExpression[]
> expressions = (IBaseExpression[])col.toArray( new
> IBaseExpression[col.size( )]);
>
> IResultIterator iter =
> actualResultSet
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06783 seconds