Thursday, June 9, 2011

[android-developers] SODA query throwing exception :-com.db4o.internal.query.ObjectSetFacade

Hi ,

In one of my project i am doing SODA query in db4o, i used this code
to retrieve object of Recipe.

public List<Recipe> getRecipiesByString(String searchValue)
{
List<Recipe> list=null;
Query query=db().query();
query.constrain(Recipe.class);
Constraint constraint=
query.descend("_title").constrain(searchValue).contains();

query.descend("_description").constrain(searchValue).contains().or(constraint);

list= query.execute();
return list;
}


Where "_title" & "_description" are field of Recipe class of type
String.

it has been throwing "com.db4o.internal.query.ObjectSetFacade"
and i am getting zero size of list.
can any one sort out issue? what does it mean "ObjectSetFacade" in
db4o?

Regards
Imran ali

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment