• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getPrimaryKey - In two interfaces? Why?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The getPrimaryKey() function exists in the EJBObject interface AND in the EntityContext interface.

Is this for any particular reason? Where (ie what functions in the Entity Bean lifecycle) would you not be able to call one and therefore need to call the other?

thanks

Xiao
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Xiao Ping,

I have read about this in Ed Romans EJB 3rd Edition book. Please refer to page number 138 - 139 in 3rd edition of the book. There he also explains about how it is being used in EJB Lifecycle as well. Hope this will clear out your confusion.

After going through this, if you are not clear, post your question will try to help you.

Thanks
Shibu
 
Xiao Ping
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

thanks for the reply, however I don't have ready access to that book so do youthink it would be possible to sum up the answer for me? As long as it's not too involved...

cheers

Xiao
[ May 23, 2005: Message edited by: Xiao Ping ]
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic