Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 68836 invoked from network); 30 Sep 2004 11:17:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Sep 2004 11:17:13 -0000 Received: (qmail 34976 invoked by uid 500); 30 Sep 2004 11:17:08 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 34944 invoked by uid 500); 30 Sep 2004 11:17:07 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 34928 invoked by uid 99); 30 Sep 2004 11:17:07 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 30 Sep 2004 04:17:03 -0700 Received: (qmail 68725 invoked from network); 30 Sep 2004 11:17:02 -0000 Received: from localhost.hyperreal.org (HELO ?127.0.0.1?) (127.0.0.1) by localhost.hyperreal.org with SMTP; 30 Sep 2004 11:17:02 -0000 Message-ID: <415BEB73.2070705@apache.org> Date: Thu, 30 Sep 2004 13:18:11 +0200 From: Armin Waibel User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: [OJB1.1] New Batch handling and Oracle References: <414FF153.4000505@apache.org> <415BE780.1000107@apache.org> In-Reply-To: <415BE780.1000107@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Since it is impossible to mix JDBC-batching and "Oracle-style batching" > I think OJB 1.1 should go for the JDBC-method to enable a consistent > batching-model across all platforms. It's also nice to keep the platform > interface small and clean. ok, thanks Martin! Agree with you. Could you cleanup the Oracle platform classes and remove the superfluously three methods in Platform class? I don't have the heart to modify the oracle specific classes ;-) regards, Armin Martin Kal�n wrote: > Armin Waibel wrote: > >> currently the new OJB1.1 batch handling completely ignore the three >> methods introduced in Platform interface >> >> public void beforeBatch(PreparedStatement stmt) throws >> PlatformException; >> public void addBatch(PreparedStatement stmt) throws >> PlatformException; >> public int[] executeBatch(PreparedStatement stmt) throws >> PlatformException; >> >> to support an Oracle specific batch handling. Do we need these >> specific callback methods for Oracle with new OJB batch package too, >> does Oracle not support the standard batch behavior for >=JDBC2.0? > > > Quotes from Oracle's technet on these issues (snippets from > http://www.oracle.com/technology//products/oracle9i/daily/jun07.html): > > * Standard Update Batching (explicit model) > Recommended when code portability across different database and JDBC > drivers is a higher priority than performance. > > * Oracle Update Batching (implicit and faster model) > Oracle update batching is usually faster than the standard update > batching but only supports PreparedStatement. > > > Since it is impossible to mix JDBC-batching and "Oracle-style batching" > I think OJB 1.1 should go for the JDBC-method to enable a consistent > batching-model across all platforms. It's also nice to keep the platform > interface small and clean. > > Regards, > Martin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org