cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <hal...@pvv.ntnu.no>
Subject Re: SQL statements from merge token
Date Tue, 26 Aug 2008 08:24:48 GMT
Hello.

The modeler does this to be able to display the sql before executing  
it. Create a subclass of MergerContext and override its   
executeSql(String).

  - Tore.

On Aug 26, 2008, at 9:51 , Øyvind Harboe wrote:

> The merge stuff can produce some pretty wicked stuff.
>
> However, I would like to have the ability to extract the SQL  
> statements
> that a merge token results in.
>
> The database administrator can then manually verify that column X and
> table Y should indeed be deleted... :-)
>
> Do I just upcast to AbstractToDbToken and invoke createSql() directly?
>
> -- 
> Øyvind Harboe
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 XScale Cortex
> JTAG debugger and flash programmer
>


Mime
View raw message