The only thing that I know of is to modify the templates. As far as I know,
the retriveByPK() is used only in the manager classes, so if you do not use
managers (which is the default), there should not be any side effects.
Thomas
"barak" <[EMAIL PROTECTED]> schrieb am 06.09.2005 10:44:14:
> This is sort of what I'm doing now, but I preferred using something more
> basic if possible.
>
> Thanks
>
> -----Original Message-----
> From: T E Schmitz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 06, 2005 9:24 AM
> To: Apache Torque Users List
> Subject: Re: retrieveByPK
>
>
> barak wrote:
> > Hi all,
> >
> > Is there a way to configure torque so the method "retrieveByPK" in the
>
> > peers will return null instead of an exception if no row matched the
> > primary key?
>
> Why don't you write your own retrieveByPK method in the class that
> extends the peer class?
> Unfortunately, the peer class methods are all static, so you are not
> really overriding the base class' method but masking it.
> Call the perr base class' method, catch the exceptions and return null.
>
> > If it can be done, will this also effect other types of exceptions?
>
>
>
> --
>
>
> Regards/Gruß,
>
> Tarlika Elisabeth Schmitz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]