Hello,

 

 

I need to query a table who's structure is constant but who's name changes
depending on the date and time of day (e.g. Dynamic_06171120 or
Dynamic_06171450).  I've defined a table in Torque schema with the proper
layout but I'm wondering how I can dynamically change the table name of this
base class so it queries the proper table.  I'm thinking about something
like:

 

Criteria c=new Criteria();

c.setTableName("Dynamic_06171450");

c.add(DynamicPeer,ID ,10);

List l=DyanmicPeer.doSelect( c );

 

Can anything like this be done?

 

Thanks!

 

Reply via email to