[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Object query language?
On Fri, 17 Mar 2000, you wrote:
> Is there any query facility in ozone?
>
> For example, if I have a List of objects of class type Product, how would I
> return the subset of all products that might have a certain attribute
> value?
>
> class Product{
> public String name;
> }
>
> //return arraylist of products that have "wood" as a substring in the name
> or description
> List list = ProductFactory.getInstance().findProducts("wood");
>
> //would return list of products
>
> name="Wood Chair"
> name="Hickory Wood Pipe"
>
> I know I can loop through an Iterator and do the search, but that would be
> a time killer. Any other ideas?
We started out making ozone to avoid the impedance mismatch between database
and application programming. I'm a Java programmer, I don't want the need of
learning another language when it comes to database programming. So we started
ozone to find out if its possible to make an pure Java, pure OO database
system. Take a look at application code that uses ozone, it's hard to say what
is 'database' and what is 'application' code. That's great IMO.
Anyway, ozone of course is not suited for all kind of Java database
application. If you think that a special query lang is *really* needed for
your application, then ozone is probably not the right choice for you.
Falko
--
______________________________________________________________________
Falko Braeutigam mailto:falko@softwarebuero.de
softwarebuero m&b (SMB) http://www.softwarebuero.de