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]>
