[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object query language?



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?

Thanks,
Phillip