Hi there,
I have to databases, and I need to extract data from
two tables, one from the first database and the other from the
second.
For example:
I have sigdb database and in it a table users with pk
userid. Also I have a second database workdata with table
worklog with column
I read inb the doc but I didn't understood what the batch mode=true means.
Can someone explain it to me ?
Tx !
-Message d'origine-
De : Armin Waibel [mailto:[EMAIL PROTECTED]
Envoyé : mardi 21 octobre 2003 22:58
À : OJB Users List
Objet : Re: problems with batch-mode=true
Hi Bonnie,
OJB team,
Thank you for the great work on OJB. I have a suggestion regarding
source organization of OJB. Currently most of the sample/test programs
are put into the same package as the core OJB API classes, which is a
bit confusing. Even though source files for test classes are separated
Hi Matthias,
I am seeing an AbstractMethodError (partial stack trace below) in my
logs whenever OJB first initializes a JDBC connection from the DB2
JDBC driver. Obviously OJB is checking for batch support even if
batch-mode=false is set in repository.xml. However, in my case the
error is
Hi,
I have problem with prefetched relationship for m:n nondecomposed
collection.
I got ArrayIndexOutOfBoundException in
CollectionPrefetcher.buildPrefetchCriteriaMultipleKeys method, because:
FieldDescriptor fkFields[] =
cds.getForeignKeyFieldDescriptors(getItemClassDescriptor());
in method
Hi all,
I have a simple 1:n relation between Offer and OfferPosition objects.
However, given an Offer with two positions, when I delete the first and
change the remaining position, the test fails with a
KeyConstraintViolatedException. This happens both with ManageableVector
and
Hi Mitch,
On Tue, 21 Oct 2003 13:14:59 -0500, Mitch Norby
[EMAIL PROTECTED] wrote:
Gerhard,
Sorry. I should have said inclusive instead of non-exclusive. Just for
the record, some terms exist even though they may have been removed from the
current, popular methodologies and languages.
Prior
Please ignore my previous message. I've found the causing mistake in my
repository.xml shortly after posting the message. I promise to
investigate more sincere before posting to the mailing list next time.
Juergen
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Hi,
On Wed, 22 Oct 2003 09:29:09 +0200, Gerhard Grosse
[EMAIL PROTECTED] wrote:
Hi Matthias,
I am seeing an AbstractMethodError (partial stack trace below) in my
logs whenever OJB first initializes a JDBC connection from the DB2
JDBC driver. Obviously OJB is checking for batch support even if
Hi Armin,
Your suggestion sounds good to me...
Cheers,
Gerhard
On Wed, 22 Oct 2003 12:12:53 +0200, Armin Waibel
[EMAIL PROTECTED] wrote:
Hi,
On Wed, 22 Oct 2003 09:29:09 +0200, Gerhard Grosse
[EMAIL PROTECTED] wrote:
Hi Matthias,
I am seeing an AbstractMethodError (partial stack trace
Hi,
Is there a way within OJB to prefetch a 1:1:1 relationship?
The contents of this email are confidential to the intended recipient at the email
address to which it has been addressed. It may not be disclosed to or used by anyone
other than this addressee, nor may it be copied in any way.
Title: RE: problems with batch-mode=true
Hi,
Here is the code that I tested. You can
see that setBatchMode is called before I start
the tx.
try
{
broker.serviceConnectionManager().setBatchMode(true);
broker.beginTransaction();
for (int i = 0; i 100; i++)
{
CustomerInterface
If I am understanding it correctly, it is supposed to be
a way to interface with the underlying batch mode in JDBC.
There, you add insert statements to a batch, and then
execute them all at once. It should save on overhead.
We have to migrate a large customer database, so we
need any overhead
Thanks a lot Bonnie.
-Message d'origine-
De : Bonnie MacKellar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 22 octobre 2003 15:05
À : OJB Users List
Objet : RE: RE : problems with batch-mode=true
If I am understanding it correctly, it is supposed to be
a way to interface with the
Hello everybody.
I am new to OJB and I don't know how to deploy OJB in J2EE reference implementation
(1.3.1).
The only informations I find on the web deals with OJB deployment with JBoss. But
nothing
concerning J2EE RI.
Any help is welcomed.
Thanks.
Jérôme
I am trying to access an Oracle 8i DB via OJB.
Here is my repository def:
!-- This repository file is generated by the impart OJB Generator --
!-- www.impart.ch [EMAIL PROTECTED]--
!--created at 22 Oct 2003 12:37:29 GMT --
!--
I had a look at the odmg tutorial, and found the bit about updateing
persistent objects outside of a transaction very useful! However, i cant
get it to work.
Where is TransactionExt ??? I cant find it in the source or documentation
(RC4).
Is this a new and as yet unreleased feature? if so, when
Hello,
From: oliver . matz
It just seems odd that by removing an item from a collection that it
performs a delete on the object that is in the collection.
This is the behaviour of
org.apache.ojb.broker.util.collections.RemovalAwareCollection,
which is the default collection-class. You can
Hi,
TransactionExt was introduced after rc4 - so yes, new-and-unreleased. No
idea to the latter.
If you cast to TransactionImpl (as opposed to Ext), you should be able to
access the markDirty method, as this has been available for some time.
Cheers,
Charles
-Original Message-
From:
Hi,
I try to execute a query with JDO API but I get a
java.lang.StackOverflowError Exception at runtime.
Any idea about it ?
Thanks.
My code :
-
javax.jdo.PersistenceManager pm = null;
javax.jdo.Extent ext = null;
javax.jdo.Query q = null;
String filter
As nobody else seems to respond some comments from a user's experience
with OJB's ODMG implementation:
On Fri, 17 Oct 2003 10:26:52 -0400, Weaver, Scott
[EMAIL PROTECTED] wrote:
1. Should collections for 1:n relationships be updated automatically?
Example: I have a class foo which has a
I just discovered that ((TransactionExt) tx).flush() might solve a lot
of my problems...
On Tue, 21 Oct 2003 16:57:30 +0200, Gerhard Grosse
[EMAIL PROTECTED] wrote:
Hi,
I just wonder what strategies others employ to avoid RI constraint
violations. It seems to me that these inevitably occur in
Hi Gerhard,
Could you elaborate? I've always run without constraints, but never
thought that it was a good idea to do so.
Phil
Gerhard Grosse wrote:
I just discovered that ((TransactionExt) tx).flush() might solve a lot
of my problems...
On Tue, 21 Oct 2003 16:57:30 +0200, Gerhard Grosse
Hi Phil,
Using CVS Head and ODMG, you can cast the ODMG Transaction object to
TransactionExt, which provides a flush method. flush() sends out any
pending SQL to the RDBMS without committing the transaction. That way
you gain some coarse control on the order of SQL statements, which
helps to
Hello Goncalo,
-Original Message-
From: Goncalo Luiz [mailto:[EMAIL PROTECTED]
I set all debug levels to FATAL but I still getting info
messages. The
logger I'm using is
org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
My application is text-based and I, obviously, don't
On Wednesday, October 22, 2003, at 10:51 AM, Gerhard Grosse wrote:
As nobody else seems to respond some comments from a user's experience
with OJB's ODMG implementation:
We are all users =) Don't discount your knowledge of it because you
haven't written it ;-) You know ODMG's behavior better
Greetings,
I'm currently working on a Java client/server app that supports
multiple databases. We're trying to utilize SQLServer 2000's transaction
support, and so far, it has been fighting us. SQLServer 2k has a
transaction policy of locking rows and not allowing for queries to read
the
Hi,
can you tell, which
- jdbc driver you use (THIN or the one that uses Oracle Net) - maybe the connection
descriptor wourd be helpful
- with which character set did you create your database
- how does the CREATE TABLE statement look like (esp. the datatype in the database)
- (well, and maybe
Guys,
Right now, when I call PersistenceBroker.store() it does extra DB lookup to determine
if object is new or not.
... from PersistenceBrokerImpl.store (Object obj) ver.1.0RC4 ...
// check if update or insert is needed
boolean doInsert = false;
// lookup
In looking at the documentation, there isn't really anything descriptive
regarding this attribute on collections/references. I'd like to turn it
off, but I'm afraid. Should I be? Can someone help me understand this
a little better so that I know what's going on? Is this a cache thing?
-andy
All my tests run fine with batch-mode off. As soon as I turn it on,
BOOM... I get a IllegalClassCastException.
I'm using Orcle 9.2 and ojdbc4.jar
-andy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Christophe.Demarey dijo:
Hi,
I wonder if OJB implements JDO Queries (with extents) !
There is no example of JDO Queries at
http://db.apache.org/ojb/query.html#JDO%20queries;.
If JDO Queries are implemented, can someone tell me the good way to
write it? Is there specific OJB operations ?
I
Yep, sorry I forgot to include this information here it is:
descriptor-repository version=1.0 isolation-level=read-uncommitted
jdbc-connection-descriptor
jcd-alias=
default-connection=true
platform=Oracle
jdbc-level=2.0
driver=oracle.jdbc.driver.OracleDriver
33 matches
Mail list logo