What is the findByPrimaryKey() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the findByPrimaryKey() method?
Rating:
The findByPrimaryKey() method is used by a client to get the reference of an entity bean. A developer is required to declare this method in the entity bean home interface. This method can be used only on an existing bean instance. The findByPrimaryKey() method has the remote component as its return type. It takes an object as its parameter that represents an entity in a database.
Rating:
Was this information helpful?
Other articles
- What are the operations that can be performed using the setEntityContext() method?
- What is IllegalStateException in EJB?
- What is a JMS topic?
- What is the ejbRemove() method of a session bean?
- Describe the life cycle of an entity bean.