• Post Reply Bookmark Topic Watch Topic
  • New Topic

findByPrimaryKey() method in Entity Bean  RSS feed

 
simon kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
does the findByPrimaryKey() method of EntityBean locks a particular row in the table.
if so why?
Thanks & Regards
Srinivas
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could do, depending on how the EJB container runs the query, and depending on how the underlying database is setup.
Is there something specific that you are having trouble with?
Simon
 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will this findByPrimaryKey method pick up data from the cache or fire a new request to the database to get the data??
Thanx,
Prince Of Pune.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!