db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: OQL Limit Queries
Date Fri, 03 Oct 2003 08:29:20 GMT
hi sukesh,

afaik the limits cannot be defined in the oql-query.
but you can do the following:

            OQLQuery query = odmg.newOQLQuery();
            query.create( "select ....." );
            query.bind( ... );
            ((Query)query).setStartAtIndex(....);

hth
jakob

Sukesh Garg wrote:

>Is there support for "limit" in the OJB's ODMG implementation.
>
>e.g. select * from tableName order by id limit 5
>
>thx,
>sukesh
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Mime
View raw message