Hi,
I just saw a bea slide which recommends to implement ejbFindByPrimaryKey by
just returning the parameter:
String ejbFindByPrimaryKey(String pk)
{
return pk;
}
This code does not perfom a database lookup.
The above coding has consequences:
1. if a bean with the specified pk does not exist, ejbFindByPrimaryKey will
not throw a FinderException. Instead, ejbLoad will fail (in which case a
FinderException can be thrown).
2. No database lock is set to the tuple with the pk.
Has someone out there experiences with the optimized code?
Thanks,
Marc Volz
TLC, Germany
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".