Entity Beans  «Prev  Next»

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.