db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Salgado <salgado...@04web.com>
Subject Re: Data object Class Implementation
Date Tue, 16 Mar 2004 20:06:26 GMT

  Why donĀ¹t you use a regular java bean and populate it with the values
retrieved from the model (database)? Fetch the data using the DAO and then
pass it to the bean... Something like:


Pedro Salgado

On 15/03/2004 19:57, "Sica, David (David)" <dsica@avaya.com> wrote:

> I want to create a new data object, save it to the database and then
> "pass it around" to other classes/methods for READ-ONLY use.  I don't
> want any other accesses to the database from this object to be required
> after I've saved the object.
> In other words, I want to ensure that downstream classes/methods will be
> able to use this data object even if the database is down.  Is this
> possible or will Torque requery/require the database to be active to act
> on this data object in a read-only manner?
> Thanks,
> David Sica

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

View raw message