Thomas,

Is there any equivalent features in ODMG api?

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: 08 August 2003 14:15
>To: OJB Users List
>Subject: [FAQ] Re: Why select by insert?
>
>
>Hi,
>
>pb.store(obj) must check if obj is already stored in the db or not to 
>choose an UPDATE or an INSERT.
>that check done with the select.
>
>You can get rid of this additional select by using hints.
>broker.store(obj,ObjectModificationDefaultImpl.INSERT) forces 
>an INSERT.
>broker.store(obj,ObjectModificationDefaultImpl.UPDATE) forces 
>an UPDATE.
>
>
>Thomas
>
>lyl wrote:
>> Thanks for oliver, but I just used PB.store()! I used p6spy on front 
>> of Mysql Driver, there's one select statement preceding each insert 
>> statement. I wonder what's for? Does this really necessary? Can I 
>> disable that ?
>> 
>> thanx
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to