On Tue, 29 Mar 2005 08:28:58 +0200, SYLVIE PALLUEL
<[EMAIL PROTECTED]> wrote:
> Here's a way to get the sql statement from OQL statement.
>
> public static String traceRequete(OQLQuery oql) {
> String trace = null;
> try {
> if (oql != null) {
> trace = ("Sql query = " +
> ((org.exolab.castor.jdo.engine.OQLQueryImpl) oql).getSQL());
> } else {
> trace = "No query";
> }
> } catch (Exception e) {
> . . .
> }
> return trace;
> }
>
> Hope this will help you.
Or you could just increase the logging level on
org.exolab.castor.jdo.engine.SQLEngine to debug. This will cause the
SQL statements to be output.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://geronimo.apache.org/
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user