For your first question, I am using this to get java.sql.Connection:
        DatabaseRegistry.getDatabaseRegistry(jdo.getDatabaseName()
).createConnection();

I guess it is the official way. :-))

Regards
------------
Zhongling "Alex" Li


-----Original Message-----
From: Geir Ove Gr�nmo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Storing transaction changes (without committing)



Hi all!

There are two things that I would very much like your input on. The
first - is there a way to execute arbitrary SQL statements in the
database without going via the
org.exolab.castor.jdo.engine.DatabaseImpl.getConnection() method?

Secondly, I've been trying to find a way to store the changes in the
current transaction in the database without commiting the
transaction. This would be extremely useful in the application I'm
developing. I found the
org.exolab.castor.persist.TransactionContext.prepare() method, which
seems to similiar things.

Is there an existing way to do this in Castor? If not, could you
Castor wizards out there please comment on the difficulty of adding
such support?

All the best,
Geir O.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to