Phân tích thiết kế hướng đối tượng - Chương 4.3 (HUST) GV.Phạm Ngọc Nam
Chương 4.3 giới thiệu về thiết kế tầng quản lý dữ liệu theo quy trình 4 bước, bao gồm lựa chọn định dạng lưu trữ (tệp, cơ sở dữ liệu quan hệ, hướng đối tượng) và các phương pháp tổ chức dữ liệu. Tài liệu chi tiết về các loại tệp (tuần tự, ngẫu nhiên) và các loại tệp ứng dụng (master files, lookup files, transaction…
Generating preview...
1. Introduction Design of data management layer is four-step process [1] Select format of storage; Alternatives are: Files (Sequential and Random) Relational databases Object-relational databases Object-oriented databases [2] Map problem domain classes to selected storage format Problem domain objects drive object storage design [3] Optimise storage for efficient performance [4] Design appropriate data access classes and manipulation classes to: Separate problem domain classes from storage format Handle all communication with the database 2. Files Files contain lists of data, e.g. bytes, characters, strings, integers, records(which contain fields), etc. Usually supported via programming language-dependent operations, e.g. as defined by methods of pre-defined classes FileInputStream, FileOutputStream for byte streams in Java, FileReader and FileWriter classes character streams in Java, RandomAccessFile in Java. Files may be used as masterfiles, look-up files, transaction files, audit files, history files. Sequential access files are accessed by sequential file operations, e.g. read, write, search Such files are very efficient for sequential processing via sequential operations But are very inefficient for random processing, i.e. on average 50% of contents must be accessed to find desired random record 2.1 Sequential Files May be: Unordered Data is in sequence that it was written to the file, i.e. data is organised serially New data is added to end of file Ordered Data is in sorted order, e.g. ascending order of some component in the data
… Download the original file to read the full document.
- Document name
- Phân tích thiết kế hướng đối tượng - Chương 4.3 (HUST) GV.Phạm Ngọc Nam
- School / Course
- Đại học Bách khoa Hà Nội · Thiết kế hướng đối tượng
- Author (in document)
- GV.Phạm Ngọc Nam
- Content
- Tài liệu mô tả quy trình thiết kế lớp quản lý dữ liệu, tập trung vào các phương pháp lưu trữ dữ liệu như tệp tin và cơ sở dữ liệu quan hệ, cùng với các loại tệp tin ứng dụng.
- Table of contents
- 1. Introduction
- 2. Files
- 2.1 Sequential Files
- 2.2 Random Access Files
- 2.3 Sequential and random processing
- 2.4 Application File Types
- 3. Relational Databases
- Pages
- 48 pages
- Uploaded by
- lienhejb
Frequently asked questions
Is this document free?
Yes. “Phân tích thiết kế hướng đối tượng - Chương 4.3 (HUST) GV.Phạm Ngọc Nam” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 48 pages, for the course Thiết kế hướng đối tượng. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.

Comments (0)
No comments yet. Be the first!