File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Language Integrated Query In Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Language Integrated Query In Java" Watch "Language Integrated Query In Java" New topic
Author

Language Integrated Query In Java

Preet Dholabhai
Greenhorn

Joined: Jan 24, 2010
Posts: 19
Hi ,

I came across a situation where I am retrieving records from the database into a collection and provide the data requested by the user from the collection.

Given the scenario and with some knowledge of .NET,
I was wondering if there is any thing in java equivalent or on similar basis of the Language Integrated Query(LINQ) in .NET?


Thanks & regards,
Preet
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

As far as I know I dont think there's anything similar in Java. But I think other JVM based languages like Scala or Groovy or some other JVM based language might support it as a DSL to write SQL queries.


Mohamed Sanaulla | My Blog
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

I was googling around and found this: http://www.querydsl.com/ And I thought this is closely how LINQ facilitates query creation.
Preet Dholabhai
Greenhorn

Joined: Jan 24, 2010
Posts: 19
Thanks.
That seems to be really good.
I'll play around with it a little and find out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Language Integrated Query In Java