Am Freitag, 21. März 2014 03:18:26 UTC+1 schrieb Martin Grajcar:
>
> On Friday, November 30, 2012 1:49:57 PM UTC+1, Thomas Mueller wrote:
>
>> Hi,
>>
>> I think it's worth to revive it once Java 8 is available, using closures 
>> for conditions. So instead of:
>>
>
> Now that Java 8 is out, is it time to resurect?
>  
>
>> Product p = new Product();
>> List<Product> restock = db.from(p).
>>     where(p.unitsInStock).is(0).
>>     select();
>>
>> it would be:
>>
>> List<Product> restock = db.
>>     select(Person p -> p.unitsInStock == 0);
>>
>
> This surely looks much better, but I can imagine that the old ugly 
> expression is much easier to transform into a prepared statement, isn't 
> it?
>

Coincidentally, here's an interesting read for those of you guys who'd like 
to think about LINQesque APIs in Java:
http://blog.jooq.org/2014/03/21/java-8-friday-java-8-will-revolutionize-database-access/

On our side, we're evaluating a JINQ-to-jOOQ integration, which could 
leverage the best of both worlds: functional-style Java 8 Streams APIs and 
almost-SQL ASTs that can be transformed by jOOQ's many SPIs. Dr. Ming-Yee 
Iu has formally proven how bytecode rewriting (what he calls "symbolic 
execution") can rewrite both imperative and functional expressions into 
SQL. This knowledge could be useful for JaQu as well, if you plan to keep 
it alive.

In the light of this, it would be interesting to hear what JaQu's future 
plans are, now that Java 8 is out!

Cheers
Lukas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to