JavaDeploy
SiteMap
JSP - Servlets
JDBC
CDI Beans
JPA Tx
Entity Beans
«Prev
Next»
Entity Beans
EJB Distributed Transactions
Overview EJB Transactions
Transactions Remote Objects
Management Distributed Transactions
Java Transaction API
Client Managed Transaction
Bean Managed Transactions
Container Managed Transactions
Bean interactions Transaction Controls
Session Beans Transactions
EJB Transaction Exception
Choosing Differen Management Schemes
EJB Distributed Transaction
Entity Bean Components
Entity Bean Architecture
Entity Bean Characteristics
Primary Key Object Identity
Locating Entity Bean
Bean Managed Persistence
Container Managed Persistence
Entity Bean Life Cycle
Entity Bean Conclusion
Client View Bean
Creating Entity Instance
Find Bean using Key
Using Removing Bean Instance
Comparing Entity Bean Instances
Complete Code Customer Client
Entity Bean Client Conclusion
Intro Java Persistence Api
Entity Bean Home Interface
Creating Finding Entities Jpa
Ejb Post Create Method
Jpa Find Primary Key
Entity Bean Ejb Object
Callbacks Set Entity Context
Callbacks Ejb Load
Callbacks Ejb Activate
Callbacks Ejb Remove
Entity Bean Lifecycle
BeanManaged Persistence Conclusion
Finding Entity Bean - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which of the following statements regarding entity beans are true?
Please select all the correct answers.
A.
Entity bean clients have a one-to-one relationship with entity beans.
B.
Entity beans have a one-to-one relationship with the underlying data.
C.
When you delete the entity bean instance, the data it represents is deleted.
D.
Entity beans are discarded when the container crashes.
2.
Which of the following statements are true for the primary key?
Please select all the correct answers.
A.
The primary key relates to the bean and not the underlying data.
B.
The primary key can be any valid Java class.
C.
The primary key can be found from the EJBObject.
D.
The primary key is used to find the bean instance.
3.
What is the return from the
findByPrimaryKey()
?
Please select the best answer.
A.
The home object reference
B.
The EJBObject reference
C.
Void
D.
The primary key