Isn't it better to add ODMG or JDO layer on top of the Torque for those
who prefer to work only with UML model.
i.e.

ODMG::beginTransaction()
ODMG::create(id)->object
ODMG::bind(object, id)
ODMG:;delete(object)
ODMG::commitTransaction()

It will leave Torque as nice database access library as it is now. 


Ilia

-----Original Message-----
From: Fedor Karpelevitch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:13 AM
To: 'Turbine Developers List'
Subject: RE: transaction management (RE: cvs commit:
jakarta-turbine-torque NO TES)


> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 9:22 AM
> To: Turbine Developers List
> Subject: Re: transaction management (RE: cvs commit:
> jakarta-turbine-torque NO TES)
> 
> 
> On 10/31/01 12:16 PM, "Eric Dobbs" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > On Wednesday, October 31, 2001, at 08:44  AM, Jason van Zyl wrote:
> > 
> >> On 10/31/01 10:19 AM, "Fedor Karpelevitch"
> >> <[EMAIL PROTECTED]>
> >> wrote:
> >> 
> >>> I understand Jason's point. However I believe we still need
> >>> save(DBConnection) (or replacement) type of methods.
> >> 
> >> Sure, it's required now because we haven't implemented a 
> replacement or
> >> redesigned it but the interface an OM object adheres to 
> should be as
> >> simple
> >> as possible. Do we really need more than save()/update()/delete()?
> > 
> > or even just save() and delete()
> 
> yes!

AND their transactional counterparts save(Tran) & delete(Tran) too.

I also still believe that although it is correct that developer should
not
HAVE to know anything about DB he should still be ABLE to do db specific
things like multirow updates, selects with complex criteria etc... That
is
what I like about Torque nopw and I'd like to keep it. I have a number
of
ideas on how to make this work, but still need to write them all down
and
share for discussion.

fedor.

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


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

Reply via email to