Nguyễn Minh Trang * Phạm Thị Xuân Lộc

* Tác giả liên hệ (nguyenminhtrang_toasoanctu@gmail.com)

Abstract

The article uses the metadata as an effective tool to remedy that defect, and illustrates it by a small software. There will be many choices for every attribute. Integrity constraints are verified appropriately to the context. All of this are always described, stored and updated automatically in the metadata. From metadata, the software automatically forms various method kinds for any class. These kinds satisfy most user requirements for an information system. In each kind, the software introduces multiple signatures that users can select to match  with class structure and the reality applying such database. The solution is general so the idea and software presented here can be applied to the other platforms and contexts. Hence, the approach is effective in raising adaptation and reuse for designing and programming.
Keywords: Metadata, object-oriented database, adaptable, class, attribute, method

Tóm tắt

Nowadays, the object-oriented database management systems do not support design and execution in details to make them the most convenient. Concretely, the biggest challenge in transforming each class from the conceptual level to the new structure is the creation of its methods. This requires a lot of experiences and efforts because it has to be performed manually but the results are often difficult to reuse. Các hệ quản trị cơ sở dữ liệu (CSDL) hướng đối tượng hiện nay chưa hỗ trợ việc thiết kế và thực thi chi tiết sao cho tiện lợi nhất. Cụ thể là phải chuyển mỗi lớp từ mức quan niệm sang thành cấu trúc mới. Việc này đòi hỏi nhiều kinh nghiệm, công sức vì phải thực hiện thủ công nhưng kết quả khó tái sử dụng. Bài viết dùng metadata như công cụ hữu hiệu để khắc phục khiếm khuyết đó và minh họa bằng một phần mềm nhỏ. Sẽ có nhiều chọn lựa cho thuộc tính được đưa ra. Các ràng buộc toàn vẹn được kiểm tra chặt chẽ. Tất cả đều được mô tả trong metadata, luôn được tự động lưu trữ và cập nhật. Từ các metadata, phần mềm tự động hình thành đủ loại phương thức cho bất kỳ lớp nào. Các loại này được đề xuất khá phong phú, đáp ứng hầu hết các yêu cầu người dùng đối với một hệ thống thông tin. Ở mỗi loại, phần mềm giới thiệu nhiều định dạng (signature) để người dùng lựa chọn phù hợp với cấu trúc lớp và thực tiễn áp dụng CSDL đó. Cách giải quyết là tổng quát nên ý tưởng và phần mềm có thể áp dụng cho các ngữ cảnh và platform khác. Cách tiếp cận mang lại hiệu quả không nhỏ trong việc nâng cao tính thích nghi, tính tái sử dụng của thiết kế và lập trình.  
Từ khóa: Metadata, cơ sở dữ liệu hướng đối tượng, tính thích nghi, lớp, thuộc tính, phương thức

Article Details

Tài liệu tham khảo

Đinh Khắc Quyền, bài giảng “Phân tích hệ thống”, Khoa Công nghệ Thông tin & Truyền thông, Trường Đại học Cần Thơ, 2000.

Phạm Thị Xuân Lộc, bài giảng “Phân tích thiết kế hướng đối tượng”, Khoa Công nghệ Thông tin & Truyền thông, Trường Đại học Cần Thơ, 2009.

Abdelsalam Amraga Maatuk, “Migrating Relational Databases Into Object Based And Xml Databases”, the School of Computing, Engineering and Information Sciences, Newcastle, 2009.

Phạm Thị Cao Ngân, luận văn Cao học “Xây dựng bộ công cụ chuyển đổi trong ORACLE một cơ sở dữ liệu quan hệ sang một cơ sở dữ liệu hướng đối tượng”, Khoa Công nghệ Thông tin & Truyền thông, Trường Đại học Cần Thơ, 2011.

Bulusu Lakshman, “Using Java Database Connectivity (JDBC) with oracle”, 2002.

Demix de Champeaux, Douglas Lea, Penelope Faure, “Object-Oriented System Development”, 1994.

Eric Belden, Janis Greenberg, Sundeep Abraham, Shashaanka Agrawal Geeta Arota, Yi Feng, Chandrasekharan Iyer, Geoff Lee, Bryn Llewellyn, Anand Manikutty, Valarie Moore, Magdi Morsi, Helen Yeh, Adiel Yoaz, Qin Yu. Oracle Database Object-Oriented Developer‟s Guide, 11g Release 1 (11.1), Oracle Corporation, 2008.

Geeta Arota, Eric Belden, Chandrasekharan Iyer, Geoff Lee, Anand Manikutty, Valarie Moore, Magdi Morsi, Helen Yeh, Adiel Yoaz, Qin Yu. Oracle Database Application Developer‟s Guide – Object-Relational Feature 10g Release 2 (10.1), Oracle Corporation, 2005.

Thomas M. Connolly, Carolyn E. Begg, Database systems: a practical approach to Design, Implementation and Management, (4E), Addison-Wesley, USA, 2005.

Lex de Haan, Sundeep Abraham, Drew Adams, Patrick, Oracle Database SQL Reference, 10g Release 2 (10.2), Oracle Corporation, 2005.

http://docs.oracle.com/cd/B19306_01/server.102/b14215/metadata_api.htm