portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Rothrock <mich...@michaelrothrock.com>
Subject Re: Multiple Torque Adapters
Date Fri, 21 Mar 2003 19:41:07 GMT
Not to leave you without any recourse, I will point out that you can do the
equivalent with the Peer classes.  The retrieveByPK methods have versions
that work within a transaction.  Thus, if you specify your DB when you start
the transaction, you can then use the Peers to grab the objects as expected.

You'd have to implement your own caching mechanism to get the equivalent
Manager functionality.

-- Michael

On 3/21/03 11:36 AM, "Michael Rothrock" <michael@michaelrothrock.com> wrote:

> Ah, right.  When I looked into that initially, I read the first paragraph of
> the introduction and noted the line "usage by the brave is encouraged."
> 
> I'm not brave.
> 
> Sorry!
> 
> -- Michael
> 
> On 3/20/03 2:43 PM, "McIntyre, Kevin" <kmcintyr@probation.nyc.gov> wrote:
> 
>> 
>> Which managers?
>> 
>> The ObjectManagers.
>> 
>> TableNameManager.getInstance(key).  Fails.
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: Michael Rothrock [mailto:michael@michaelrothrock.com]
>> Sent: Thursday, March 20, 2003 5:40 PM
>> To: Jetspeed Users List
>> Subject: Re: Multiple Torque Adapters
>> 
>> 
>> On 3/20/03 8:58 AM, "McIntyre, Kevin" <kmcintyr@probation.nyc.gov> wrote:
>>> Jetspeed must be the default adapter.
>>> A second adapter can be used but Criteria must specify the adapters name
>>> upon construction.
>> 
>> The example I gave, setDbName, can be called after Criteria construction.
>> Another alternative: you can name the DB when starting a transaction.
>> 
>> 
>>> Here is my last hurdle.  The managers won't work.  The use the default
>>> adapter.
>> 
>> Which managers?
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 


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


Mime
View raw message