I implemented the filtering support for iterable queries, so the old
support we dropped is back.
I also moved the newQuery(iterable<T>) from QueryBuilderFactory to
QueryBuilder (same place as the "standard" newQuery).

What is still to be done is support for ManyAssociation traversing as
in the following testcase (that is supported by RDF indexing):

        QueryBuilder<Person> qb = qbf.newQueryBuilder( Person.class );
        Person personTmpl = templateFor( Person.class );
        Domain personInterestsTmpl = oneOf( personTmpl.interests() );
        qb.where( eq( personInterestsTmpl.name(), "Cars" ) );

        Query<Person> query = qb.newQuery( Network.persons() );

I will work on this by tomorrow.

On Tue, Aug 26, 2008 at 12:19 PM, Niclas Hedhman <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 26, 2008 at 10:54 AM, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:
>> I have the following test:
>>
>>        QueryBuilder<Person> qb = qbf.newQueryBuilder( Person.class );
>>        Male male = templateFor( Male.class );
>>        qb.where(
>>            isNull( male.wife() )
>>        );
>>        Query<Person> query = qb.newQuery( Network.persons() );
>>
>> where Male is a Person and has a wife association.
>>
>> The question is: what should happen while executing the query
>> regarding the fact that the where clause is expressed against an
>> association that does not exist on all Persons, only on Males.
>> The RDF indexing behavior is that in the case above all the Persons
>> that are not Male are considered to match the where clause and for
>> Males only those that do not have a wife association set.
>
> I think the implicit result of the above is;
>
> where( item instanceof Male && isNull( ((Male) item).wife() ) )
>
> and 'item' referring to the entries in the Iterable.
>
>
> Cheers
> Niclas
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://malaysia.jayway.net - New Energy for Projects - Great People
working on Great Projects at Great Places

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to