db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » identity » Query   (RSS)
  • SODA question - querying Lists

    Hello! Can somebody tell me how SODA behaves for querying Lists? Assumed that Foo is a class which got a field (List _bars) which holds Bar-Objects and I want to get all Foos which got a special Bar. Does this Query Query q = _objectContainer.query();q.constrain(Foo.class);q.descend(''_bars'').constrain(special_bar); // special_bar is a ...
    Posted to db4o User Forum (Forum) by Poison on April 24, 2007
  • Re: Query on a non built-in type doesn't appear to work / All objects being activated.

    The following will do the trick: query.Descend(''foo'').Constrain(foo).Identity();   Without calling #Identity() the foo object will be treated as Query-By-Example and all non-null members of the foo object that you use as a constraint will be compared to all the Foo member objects in the database. We have had some people ask us that ...
    Posted to db4o User Forum (Forum) by Carl Rosenberger on December 29, 2006