Looking into things a bit more...they have a Java API which is somewhat
similar to Torque...

Toplink:

Employee emp = new Employee();
emp.setFirstName(�Bob�);
emp.setLastName(�Smith�);
QueryByExamplePolicy policy = new QueryByExamplePolicy();
employees = session.executeQuery(new ReadAllQuery(emp, policy);

Torque:

Employee emp = new Employee();
emp.setFirstName(�Bob�);
emp.setLastName(�Smith�);
Vector employees = EmployeePeer.doSelect(EmployeePeer.buildCriteria(emp));

Toplink:

ExpressionBuilder emp = new ExpressionBuilder();
Expression richEmployees = emp.get(�salary�).greaterThan(250000);
employees = session.readAllObjects(Employee.class, richEmployees);

Torque:

Criteria crit = new Criteria();
crit.add(EmployeePeer.SALARY, 250000, Criteria.GREATER_THAN);
Vector employees = EmployeePeer.doSelect(crit);


Probably the main difference is that their methodology of specifying the
Criteria for building up the queries looks slightly better, but as soon as
we replace the Criteria object with something more powerful, we will be
there as well.

They also have a bunch of GUI tools which claim to do the brunt of the work
for you. I have yet to see a decent GUI tool which lives up to these claims.

Cost is also a major factor. Torque will never go up in price and will never
go out of business. :-)

thanks,

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to