Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problems with sorting datas with db4o using orderderAscend..

 
   Database Forums (Home) -> Object-Oriented RSS
Next:  Interfaces  
Author Message
dricou

External


Since: Dec 06, 2005
Posts: 2



(Msg. 1) Posted: Tue Dec 06, 2005 1:07 am
Post subject: Problems with sorting datas with db4o using orderderAscendin
Archived from groups: comp>databases>object (more info?)

Hi,

I have created a class "result" with several attributes. Then I have
inserted approximately 10000 object result, stored in a yap file.
I can get the data and display them. I'd like to know if it is
possible, using the functions of db4o, to create a request in order to
to get the datas and sort them initially by name (of String type) and,
then, of sorting by num (of int type).
I have tried for example the following code :

Query query = db.query();

query.constrain(Result.class);

query.descend("name").orderDescending();

query.descend("num").orderDescending();
ObjectSet result1 = query.execute();

It works nearly successfully but the data sometimes are not correctly
sorted. Is it a this bug in the functions or is the code not correct?
In the last case, would it be possible to have a correct example ?
How to solve this problem?
Thanks in advance

AC

 >> Stay informed about: Problems with sorting datas with db4o using orderderAscend.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
DB4o - Can't delete object stored in global variable - I have a class Human. A form lists all humans. When the user double clicks on a human, I open another form showing the details of that human. There is a global variable on the detail form called CurrentHuman of type human. When the user double clicks ...

developing a Object Oriented Database -

Aggregation in FastObjects. How to define that in opt file? - Hello, I have theses java classes: - Course <<key>> code : short name : string gratingCurricular : set<Period> - Period <<key>> numPeriod : short anything: set<someThing> * For eac...

Help : How to manage stars in database ? - All, Any help would be gratefully appreciated. I have this trouble : In database in one column I have record like that : 000000001 0*6666**66 005555555 Stars could be anything between '0' and '9' So, if I look for this id : 0166662066, it would be..

How to get return type (Resultset) information from databa.. - Hai, For Example Below are two storeprocedures one returns resultset and other not, how get this information through programmatically. 1)CREATE PROCEDURE dbo.UpdateCustomers ( @CustomerID nchar(5), @CompanyName nvarchar(40), @ContactName..
   Database Forums (Home) -> Object-Oriented All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]