JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
Entity Beans
«Prev
Next»
Entity Beans
EJB Distributed Transactions
Overview EJB Transactions
Transactions Remote Objects
Management Distributed Transactions
Java Transaction API
Client Managed Transaction
Container Managed Transactions
Bean interactions Transaction Controls
EJB Transaction Exception
Choosing Differen Management Schemes
Entity Bean Components
Entity Bean Architecture
Primary Key Object Identity
Locating Entity Bean
Container Managed Persistence
Entity Bean Life Cycle
Client View Bean
Creating Entity Instance
Find Bean using Key
Comparing Entity Instances
Entity Bean Client Conclusion
Bean Managed Persistence
Entity Bean clients - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which of the following statements are true for the
findByPrimaryKey()
method?
Please select all the correct answers.
A.
The return is the home interface.
B.
It takes a single argument, which is a class in the java.lang package.
C.
It finds the data and associates it with a bean instance.
D.
It creates an EJBObject associated with the primary key.
2.
Which of the following statements are true for the
create()
method?
Please select all the correct answers.
A.
It returns a remote reference to the EJBObject of the created bean.
B.
It creates both the instance and the underlying data.
C.
It throws the NoSuchObjectException if the arguments cannot map to a single data entity.
D.
It takes multiple arguments that map to a single underlying data entity.
E.
There can be 0 or more create methods.