Programming Tutorials

Interview Question: What is the difference between find and select methods in EJB?

By: Ash in Interview Tutorials on 2008-08-13  

Question:What is the difference between find and select methods in EJB?

Answer:

A select method can return a persistent field (or a collection thereof) of a related entity bean. A finder method can return only a local or remote interface (or a collection of interfaces).

Because it is not exposed in any of the local or remote interfaces, a select method cannot be invoked by a client. It can be invoked only by the methods implemented within the entity bean class. A select method is usually invoked by either a business or a home method.

A select method is defined in the entity bean class. For bean-managed persistence, a finder method is defined in the entity bean class, but for container-managed persistence it is not.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Question: What is a Hidden Comment in JSP?

What types of comments are available in the JSP?

Tell me something about J2EE component?

The output of System.out.println(5<<2) in Java

Interview Question: Do ActionForms have to be true JavaBeans?

What is Collection API?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

What is the difference between jsp:include page and @ include file?

Name the containers which uses Border Layout as their default layout?

What is the difference between JTS and JTA?

Interview Question: What is abstract schema?

What is the difference between Session Bean and Entity Bean?

Why J2EE is suitable for the development of distributed multi-tiered enterprise applications?

What is J2EE Connector architecture?

What is the difference between jsp:forward and response.sendRedirect(url)

Latest Articles (in Interview)