Đang chuẩn bị liên kết để tải về tài liệu:
Entity Bean - Chuyên đề Lập trình Java & J2EE (Chương 15)

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

An entity bean represents persistent data stored in one row of a database table . When an entity bean is created, the data is written to the appropriate database table row, and if the data in an entity bean is updated, the data in the appropriate database table row is also updated | Entity Bean Chuyên đề Lập trình Java & J2EE Chương 15 Biên soạn: Th.S Nguyễn văn Lành Concepts An entity bean represents persistent data stored in one row of a database table . When an entity bean is created, the data is written to the appropriate database table row, and if the data in an entity bean is updated, the data in the appropriate database table row is also updated Entity beans differ from session beans in several ways. Entity beans are persistent: entity bean's state exists beyond the lifetime of the application allow shared access: may be shared by multiple clients have primary keys: unique object identifier may participate in relationships with other entity beans When to Use Entity Beans The bean represents a business entity, not a procedure. For example, CreditCardEJB would be an entity bean CreditCardVerifierEJB would be a session bean. The bean's state must be persistent Types of persistent management Bean-Managed Persistence the bean developer takes . | Entity Bean Chuyên đề Lập trình Java & J2EE Chương 15 Biên soạn: Th.S Nguyễn văn Lành Concepts An entity bean represents persistent data stored in one row of a database table . When an entity bean is created, the data is written to the appropriate database table row, and if the data in an entity bean is updated, the data in the appropriate database table row is also updated Entity beans differ from session beans in several ways. Entity beans are persistent: entity bean's state exists beyond the lifetime of the application allow shared access: may be shared by multiple clients have primary keys: unique object identifier may participate in relationships with other entity beans When to Use Entity Beans The bean represents a business entity, not a procedure. For example, CreditCardEJB would be an entity bean CreditCardVerifierEJB would be a session bean. The bean's state must be persistent Types of persistent management Bean-Managed Persistence the bean developer takes responsibility for persistent storage in attributes Container-Managed Persistence 1.1 persistent attributes are defined as attributes of the bean class and given in the deployment descriptor Container-Managed Persistence 2.0/2.1 The bean developer works with an abstract bean class defines abstract access methods for reading and writing of attributes (During deployment the EJB container generates a derived class that implements all the abstract methods ) Constitution of a entity bean Remote interface: defines the business methods of the bean. Home interface: defines the methods that allow a client to create and find an entity bean Enterprise Bean class: provides the implementation for the business methods, finder methods, home methods Primary key class makes it possible to identify all entity bean identities uniquely Deployment Descriptor: This configuration document defines the bean's runtime attributes, such as its transaction or security attributes Helper classes Remote Interface Each .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.