Hi,
We all have an intuitive understanding of how to translate LINQ into
Java, but I found an extended example (elaborated one step at a time)
to be quite useful. The presentation below does just that (not of my
authorship :)
http://www.alfdemometrica.com/reflectionemit/LINQforJava.ppt
In general, a structured exposition of the translation rules would
make a lot of sense (I'm not there yet, I've focused first in writing
a generator of the fluent interfaces that a Java embedding of LINQ
would require, but that's not LINQ-specific :
http://bugs.eclipse.org/234003
)
The above has to do with building ASTs for LINQ queries. How to
process them (translation to JPQL, query over in-memory objects) feels
like a sub-project on its own. For the in-memory case, know-how like
this might be useful:
Darren Willis, David J. Pearce and James Noble.
Caching and Incrementalization for the Java Query Language.
http://homepages.mcs.vuw.ac.nz/~djp/files/WPN07.pdf
regards,
Miguel
http://www.sts.tu-harburg.de/~mi.garcia