Đang chuẩn bị liên kết để tải về tài liệu:
Teach Yourself J2EE in 21 Days phần 4

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

Đầu tiên, nếu khách hàng của bạn có một tham chiếu đến một đậu kỳ họp không quốc tịch, mặc dù nó nên gọi khi nó được hoàn tất với các EJB, cuộc gọi phương pháp này không thực sự làm đặc biệt là nhiều. Đặc biệt, nó sẽ không phát hành bất kỳ tài nguyên đậu riêng của mình, như thể hiện rõ ràng bởi các sơ đồ biểu đồ nhà nước trong hình 5.3. | 314 Day 7 and the entity element defined as ELEMENT entity description display-name small-icon large-icon ejb-name home remote local-home local ejb-class persistence-type prim-key-class reentrant cmp-version abstract-schema-name cmp-field primkey-field env-entry ejb-ref ejb-local-ref security-role-ref security-identity resource-ref resource-env-ref query Looking first at the entity element much of it will be unchanged. What needs to be specified for a CMP entity are cmp-version Always set to 2.0. The value 1.1 is supported only for legacy CMP Entity beans written to the EJB 1.1 specification. abstract-schema-name Any unique name this defines the name used to identify the bean in EJB QL queries. It makes sense to base this on the name of the bean. In the case study the JobBean bean has a schema with the name of Job. cmp-field One for each cmp-field but not cmr-fields . In the Job bean the cmp-fields are ref customer and description. The location and skills fields are cmr-fields representing relations to the Location and Skill beans respectively and so do not appear. primkey-field This optional field is used when the primkey-class element does not identify a custom primary key class. It is not specified for the Job bean but for the Location bean for example it is specified and is set to name. query Defines an EJB QL query associating it with a finder or select method. Listing 7.12 shows the entity element for the Job bean. Listing 7.12 Job Bean s entity Element 1 entity 2 display-name JobBean display-name 3 ejb-name JobBean ejb-name 4 local-home data.JobLocalHome local-home 5 local data.JobLocal local 6 ejb-class data.JobBean ejb-class 7 persistence-type Container persistence-type CMP and EJB QL 315 Listing 7.12 Continued 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 prim-key-class data.JobPK prim-key-class reentrant False reentrant cmp-version 2.x cmp-version .

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.