©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 10 Information Management in Java.

Slides:



Advertisements
Similar presentations
Computer Memory/Storage Device
Advertisements

Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore.
COSC 120 Computer Programming
Component 4: Introduction to Information and Computer Science Unit 1: Basic Computing Concepts, Including History Lecture 1 This material was developed.
File-based Persistence: Serializability COMP53 Dec 7, 2007.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
Computing ESSENTIALS     Copyright 2003 The McGraw-Hill Companies, Inc CHAPTER Information Technology, the Internet, and You computing ESSENTIALS.
Storage.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
7/17: Database Management
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 12 Software Integration and Deployment.
Files and Streams 1 -Based on slides from Deitel & Associates, Inc. - Revised by T. A. Yang.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
What is a storage device? Computer data storage, often called storage or memory, refers to computer components, devices, and recording media that retain.
CIS 270—Application Development II Chapter 14—Files and Streams.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 1 Introduction to Java in the Context of Software Engineering.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
M1G Introduction to Database Development 6. Building Applications.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 6 Introduction to Distributed Computing Concepts.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 13 Java on Various Computer Platforms.
Component 4: Introduction to Information and Computer Science
TheTeacher Computing Data Storage Computing. TheTeacher Computing Primary Storage One of the fundamental properties of a computer is that it can store.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
Chapter 14 - Designing Data Access Classes1 Chapter 14 Designing Data Access Classes.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Aug CMSC 104, LECT-021 Machine Architecture Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY of NORTH CAROLINA.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Calculators are used to increase speed and accuracy of numerical computations The abacus has roots dating back over 5,000 years Mechanical calculators.
 Pearson Education, Inc. All rights reserved Files and Streams.
Input ProcessOutput Data is input.The cpu decides what to do with it is output.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 15 The Unified Modeling Language: a Primer.
The Computer System CS 103: Computers and Application Software.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The concept of Data, Information and Knowledge  The fundamental terms:  Database and database system  Database.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Java Programming, Second Edition Chapter Sixteen File Input and Output.
Databases and SQL CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Senior 3 Computer Studies
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Java Programming: From the Ground Up
Chapter 1 Introduction.
Computer Science II Chapter 1.
The abacus has roots dating back over 5,000 years
Fundamentals & Ethics of Information Systems IS 201
Chapter 13: File Input and Output
The Object-Oriented Thought Process Chapter 12
Database.
MSIS 670: Object-Oriented Software Engineering
Computer Application Waseem Gulsher
Machine Architecture and Number Systems
Chapter 1 Introduction to Database Processing
Computer Storage.
Overview of Computer system
Presentation transcript:

©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 10 Information Management in Java

©2007 · Georges Merx and Ronald J. NormanSlide 2 Agenda Persistent data storage Data hierarchy File input-output (I/O) Serialization Database access Support and maintenance

©2007 · Georges Merx and Ronald J. NormanSlide 3 Primary vs. Secondary Storage Data and results must be permanently storable. In computer systems, we therefore differentiate between primary – volatile – storage in RAM, and persistent secondary storage on any permanent storage device such as a hard disk. When data is stored on disk, it resides in files. You can think of a file as a named data container on disk. Files are organized according to the information structure they contain, but fundamentally, a file is simply a stream of bytes.

©2007 · Georges Merx and Ronald J. NormanSlide 4 File I/O in Object-Oriented Java Programs In object-oriented programs, data (attributes) and executable functions (methods) are combined into the structures known as objects; the processes for extracting the data for persistent storage (serialization) and recreating objects with attributes and methods for programmatic access (deserialization) are built into Java using the interface Serializable

©2007 · Georges Merx and Ronald J. NormanSlide 5 Learning Layout

©2007 · Georges Merx and Ronald J. NormanSlide 6 Learning Connections

©2007 · Georges Merx and Ronald J. NormanSlide 7 Data Hierarchy

©2007 · Georges Merx and Ronald J. NormanSlide 8 Typical Storage Devices CD-ROM/CD-RW disks – DVD- ROM/DVD-RW disks Digital tapes Solid state memory devices, such as USB flash drives and SD-cards Floppy and ZIP disks External hard disks

©2007 · Georges Merx and Ronald J. NormanSlide 9 Storing Information in Files

©2007 · Georges Merx and Ronald J. NormanSlide 10 High-Level Java I/O Fortunately for Java software engineers, the low- level complexity of physical file input-output (I/O) is managed by the JVM and the operating system of the platform where the program is executed. The programmer can perform these file operations using high-level, English-like statements. –Establishing access to a file is described as opening the file. –By opening a file, a logical file identifier is associated with the physical file (or path) name, and all subsequent file I/O operations occur when file operation methods interact with the logical file object. –Note that there is no open keyword in Java like you may find in other languages. –Opening a file in Java results from creating a new (logical) file object from a physical file.

©2007 · Georges Merx and Ronald J. NormanSlide 11 Serialization Serialization therefore takes objects of classes that implement the Serializable interface and writes data files with sufficient metadata to reconstruct the object when it is later reloaded (read) back into memory from the file

©2007 · Georges Merx and Ronald J. NormanSlide 12 Java Files In Java, files are managed for performance reasons as buffered streams of data. Streams and their associated buffers and filters are used for different types of input-output (I/O) operations

©2007 · Georges Merx and Ronald J. NormanSlide 13 Example: class FileReader

©2007 · Georges Merx and Ronald J. NormanSlide 14 FileChooser Dialog

©2007 · Georges Merx and Ronald J. NormanSlide 15 Object I/O Classes FileInputStream, FileOutputStream, ObjectInputStream, and ObjectOutputStream are used to read and write objects –Even arrays of objects can be read/written

©2007 · Georges Merx and Ronald J. NormanSlide 16 Database Access Most modern business applications use relational database technology to store and retrieve data Commercial relational databases emerged in the early 1970s, and some of the more prominent products on the market today include: –Oracle (Oracle Corp) –DB2 (IBM Corp) –Sybase (Sybase Corp) –SQL Server (Microsoft Corp) –Access (Microsoft Corp) –Focus (Information Builders Inc.) –MySQL (Open Source)

©2007 · Georges Merx and Ronald J. NormanSlide 17 Java Support for Relational Database Access Java Data Base Connectivity (JDBC) is used to connect Structured Query Language (SQL) statements can be embedded to interact with the database (tables)

©2007 · Georges Merx and Ronald J. NormanSlide 18 Position in Process the Support and Maintenance phase is often the longest-duration period in a project: the years during which a product is supported and in use by customers or internal users