This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

findByPrimaryKey() method in Entity Bean

 
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.
 
The moustache of a titan! The ad of a flea:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!