Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:25 am
by Dean Cooper >> Mon, 23 Jun 2008 8:23:49 GMT
JADE doesn't support OQL.
JADE has its own language that is used to manipulate data, so in this sense it is a procedural Data Manipulation Language (DML).
For example, the following JADE code would add 100 to the balance of a customer named "Fred", where customers are held in a dictionary (allCustomers) on a singleton Company object:
vars
coy : Company;
cust : Customer;begin
coy := Company.firstInstance;
cust := coy.allCustomers["Fred"];
beginTransaction;
cust.balance := cust.balance + 100;
commitTransaction;
end;
Dean.