I have a BMP bean that stores, as one of it's instance variables, it's
primary key (String personID) . Now, if I need to access that key from one
of the beans methods, I have one of two ways of accessing it:

ps.setString(1, this.personId);

or

ps.setString(1, this.entityContext.getPrimaryKey() );

What is the reasoning behind using one over the other?

Thanks in advance.

Dave

===========================================================================
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".

Reply via email to