I haven't tried the Manager stuff, is it ready for prime time?

-james

On Fri, 2002-05-17 at 14:38, Jon Scott Stevens wrote:
> on 5/17/02 2:27 PM, "James A. Hillyerd" <[EMAIL PROTECTED]> wrote:
> 
> > I have a few options:
> > 
> > 1. Code custom retrieveByXXX methods for each of my Objects, that either
> > duplicate the code in the PK method, or call it and catch the exception.
> > (I don't like either, duplicating code is bad, and so is unnecessary
> > exceptions)
> > 
> > 2. Modify places where I use the PK method to catch the exception. (More
> > unnecessary exceptions)
> > 
> > 3. Modify Torque to return null (or so that it is an option in
> > build.properties).
> > 
> > 
> > I think that each of the above options would take a similar amount of
> > effort to implement.  Can anyone give me reasons for or against
> > modifying Torque?  The only thing I could think of is if Torque uses the
> > retrieveByPK methods internally and depends on them never returning
> > null.
> 
> If you are using the new Managers code, then you just do:
> 
> FooManager.getInstance(Numberkey)
> 
> -jon
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
-- 
[]  James A. Hillyerd <[EMAIL PROTECTED]> - Java Software Engineer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to