Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Querying

< EclipseLink‎ | UserGuide‎ | JPA‎ | Advanced JPA Development‎ | NoSQL
Revision as of 10:29, 2 May 2012 by Unnamed Poltroon (Talk) (New page: {{EclipseLink_UserGuide |info=y |toc=n |eclipselink=y |eclipselinktype=JPA |nativeapi=y |nativeapis= *[http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/eis/EISInteract...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

EclipseLink JPA


Querying

Querying in NoSQL is dependent on the NoSQL platform. Some NoSQL data-sources may support dynamic querying through their own query language, others may not support querying at all. EclipseLink does its best to support as much of JPQL and the Criteria API on a NoSQL platform as possible. Almost all NoSQL platforms allow querying by Id, so find() can be used to look-up objects by Id. Most NoSQL platforms also allow a find everything operation, this allows EclipseLink to support JPQL and Criteria queries that are by Id, of have no where clause.

For example:

SELECT o FROM ORDER o
<SOURCE lang="sql">
<SOURCE lang="sql">
SELECT o FROM ORDER o WHERE o.id = :id
<SOURCE lang="sql">
 
 
 
<blockquote>
MongoDB - JPQL AND Criteria are supported WITH SOME restrictions.  Joins, sub-selects AND certain DATABASE functions are NOT supported.
</blockquote>
 
<blockquote>
Oracle NoSQL - find() AND JPQL AND Criteria BY Id OR WITH no WHERE clause are supported.
</blockquote>
 
 
 
<br> 
<br> 
 
{{EclipseLink_JPA
|previous=[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Mappings|Mappings]] 
|up=[[EclipseLink/UserGuide/JPA/NoSQL|NoSQL]]
|NEXT=[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Transactions|Transactions]] 
|version=2.4.0 DRAFT}}

Back to the top