You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by John Colvin <jc...@openconnect.ie> on 2001/11/05 17:30:18 UTC

Creating tables at runtime

Hi
I am developing an application where I will be required to drop and create existing tables at runtime. The tables are created on creation of the om classes as usual, but the tables are sometimes dropped and data loaded from csv files. Foreign keys that reference the table must remain so I can not use new IDBROKER generated keys for the newly loaded records, these records will have been unloaded from this table previously and have been hand edited.

Is there a way I can use torque to re-create a table at run-time? I thought I could delete all records and set the corresponding field in the ID_TABLE via an instance of ID_BROKER but I have noticed the updateRow method is private in this class.

Any help would be much appreciated.


Rgrds
John


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 18/09/2001