Hi,
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.
Sylvie
___________________
CREDI RA
Sylvie Palluel
[EMAIL PROTECTED]
___________________
> -----Message d'origine-----
> De�: Eric Anderson [mailto:[EMAIL PROTECTED]
> Envoy�: lundi 28 mars 2005 19:13
> ��: [email protected]
> Objet�: [castor-user] JDO: How to translate OQL to SQL
>
>
>
> Is there a oql fucntion that will output the corisponding slq
> statement?
>
>
> http://castor.exolab.org/api/org/exolab/castor/jdo/oql/package-
> summary.html
> is down.
>
> Thanks
> Eric
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user