db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Vatkov" <bvat...@globaltech-bg.com>
Subject Re: snapshot database view
Date Mon, 15 Dec 2003 12:10:07 GMT
Criteria criteria = new Criteria();
List alist = YourTableClassPeer.doSelect(criteria);
  and list holds all your table represented by the YourTableClass

((YourTableClass)list.get(index)).getMyField ....

----- Original Message ----- 
From: <Javier.Olcina@uv.es>
To: <torque-user@db.apache.org>
Sent: Monday, December 15, 2003 13:41
Subject: snapshot database view


   I wonder if it is possible to get a kind of snapshot view of some 
tables of the database with Torque.
   I would like to load the content of a table as objects at the 
beginning of my application, and access them without generating new 
selects to the database.

   Has anybody solved this case? I think it would be a very interesting 
feature for a lot of applications.

   Thanks in advance.

Javi


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message