JDOQL
JDOQL est le langage d'interrogation spécifié par la norme JDO (Java Data Object). Le langage reprend la syntaxe de Java. Il prend en compte l'héritage et permet une navigation trÚs simple.
Exemple 1 de requĂȘte JDOQL
- JDOQL
Employee.class, âsalary>boss.salaryâ
- Equivalent SQL
SELECT Employee.* FROM Employee INNER JOIN Employee AS Boss ON Employee.boss = Boss.ID WHERE ((Employee.salary)>[boss].[salary]);
Exemple 2 de requĂȘte JDOQL
- JDOQL
Employee.class, â(salary>boss.salary) && (adr.city==boss.adr.city)â
- Equivalent SQL
SELECT Employee.* FROM ((Employee INNER JOIN Employee AS Boss ON Employee.boss = Boss.ID) INNER JOIN Address AS AddressEmployee ON Employee.adr = AddressEmployee.ID) INNER JOIN Address AS AddressBoss ON Boss.adr = AddressBoss.ID WHERE (((Employee.salary)>[boss].[salary]) AND ((AddressEmployee.City)=[AddressBoss].[City]));
Cet article est issu de wikipedia. Text licence: CC BY-SA 4.0, Des conditions supplĂ©mentaires peuvent sâappliquer aux fichiers multimĂ©dias.