Object To Relation Mapping

Slides:



Advertisements
Similar presentations
For(int i = 1; i
Advertisements

STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; string LG;
Exercise Exercise3.1 8 Exercise3.1 9 Exercise
Exercise Exercise Exercise Exercise
CS 106 Introduction to Computer Science I 11 / 15 / 2006 Instructor: Michael Eckmann.
Exercise Exercise Exercise Exercise
CS 106 Introduction to Computer Science I 11 / 19 / 2007 Instructor: Michael Eckmann.
Exercise Exercise6.1 7 Exercise6.1 8 Exercise6.1 9.
1 times table 2 times table 3 times table 4 times table 5 times table
Inheritance Chapter 14. What is inheritance?  The ability to create a class from another class, the “parent” class, extending the functionality and state.
Distributed Systems Lab Lecture -1-.  It is extremely simplified application will be realized with the aid of various middleware technologies.  It allows.
Grade 6 Module 1 Lesson 14. Exercise 1 Create a table to show the time it will take Kelli and her team to travel from Yonkers to each town listed in the.
` $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200.
Data Persistence CS 340. Persistence Strategies  There are many strategies a program can use for persisting its in-memory object model  Approach #1.
Burapha University, 2003 Object-Oriented Analysis Basic of Object Mapping to Relational Database.
Topic : Hibernate 3:Advanced ORM Kaster Nurmukan.
Sub. :- Mathematics Unitary Method Std. :- 5 th Chapter no. 4.
1 CPS216: Advanced Database Systems Notes 05: Operators for Data Access (contd.) Shivnath Babu.
Nested for loops.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
A: A: double “4” A: “34” 4.
1 Persistence. 2 Persistence Usage Scalability –disk cheaper than memory Fault recovery –last known state maintained through recovery Parallel processing.
Tables Learning Support
Web services. The SOAP Data Model, Schema Validation, and Introduction to WSDL. February 16, 2006.
© 2006 Pearson Addison-Wesley. All rights reserved Arrays of Greater Dimension One-dimensional arrays are linear containers. Multi-dimensional Arrays.
1 BUILDING JAVA PROGRAMS CHAPTER 2 PRIMITIVE DATA AND DEFINITE LOOPS.
REPORTING A CHANGED ACCOUNTING EQUATION ON A BALANCE SHEET.
Banking Service class BankingService { LinkedList accounts; LinkedList customers; double getBalance(int forAcctNum) { for (Account acct:accounts) { if.
The Visitor Design Pattern. What’s It All About? Allows for new operations to be defined and used on elements of an object structure with out changing.
` $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200.
 =   –  + ++= = = = = CALCULATING FEDERAL INCOME TAX Lesson 25-3, page 647.
Designing Classes Lab. The object that you brought to class Put it in the basket we will exchange them now.
3.1 – Exponential Functions and Their Graphs Ch. 3 – Exponential and Logarithmic Functions.
2-Oct-16 Basic Object-Oriented Concepts. 2 Concept: An object has behaviors In old style programming, you had: data, which was completely passive functions,
ACC 561 Week 2 Learning Team Assignment To purchase this material click below link 2-Learning-Team-Assignment.
Extending Financial Statement Information on a Work Sheet
Java Persistence: Object Inheritance Mapping
Relational Databases CS 240.
Adding.
BALANCE SHEET INFORMATION ON A WORK SHEET
EXTENDING BALANCE SHEET ACCOUNT BALANCES ON A WORK SHEET
Click on the HOME button to return to this page at any time
Computing with C# and the .NET Framework
Hire Toyota Innova in Delhi for Outstation Tour
Times Tables.
Notes Over 4.2 Is a Solution Verifying Solutions of an Equation
ACCOUNTING FOR A BUSINESS
BALANCE SHEET INFORMATION ON A WORK SHEET
BALANCE SHEET INFORMATION ON A WORK SHEET
CSC 205 Java Programming II
Review Operation Bingo
Data Types and Abstraction
2012 סיכום מפגש 2 שלב המשכי תהליך חזוני-אסטרטגי של המועצה העליונה של הפיזיותרפיה בישראל.
Objective- To graph horizontal and vertical lines.
Dee1 View from back of back plate
Extending Financial Statement Information on a Work Sheet
9.2 Representing Linear Functions
LESSON 6-3 Extending Financial Statement Information on a Work Sheet
Lesson 8-2 (GJ) BALANCE SHEET Lesson 8-2, page 181.
CS 240 – Advanced Programming Concepts
Assets = Liabilities + Owner’s Equity
Extending Financial Statement Information on a Work Sheet
Extending Financial Statement Information on a Work Sheet
3 times tables.
6 times tables.
Relation (a set of ordered pairs)
Motivation Contemporary big data tools such as MapReduce and graph processing tools have fixed data abstraction and support a limited set of communication.
Extending Financial Statement Information on a Work Sheet
Extended Registration KS3
Presentation transcript:

Object To Relation Mapping

Data Structure Owner String name; String taxId; Account[] accounts; Account – is abstract String id; double balance; InterestBearingAccount extends Account double rate; int termDays; CheckingAccount extends Account double checkFee

1:1 and 1:many Mappings in the Data Model Owner – name : one to many Owner – taxId : one to one Owner – Account : one to many Account – id : one to one IntBearAcct – rate : ??? IntBearAcct – termDays: ??? intBearAcct – minBal : ??? CheckingAcct – checkFee: ???

Horizontal Partitioning Each concrete class is mapped to a table Owner String name; String taxId; Account[] accounts; Account – is abstract String id; double balance; InterestBearingAccount extends Account double rate; int termDays; CheckingAccount extends Account double checkFee

Vertical Partitioning Each class is mapped to a table Owner String name; String taxId; Account[] accounts; Account – is abstract String id; double balance; InterestBearingAccount extends Account double rate; int termDays; CheckingAccount extends Account double checkFee

Unification Each sub-class is mapped to the same table Owner String name; String taxId; Account[] accounts; Account – is abstract String id; double balance; InterestBearingAccount extends Account double rate; int termDays; CheckingAccount extends Account double checkFee

Chalk Board Exercise Assume that not only can an Owner have many Accounts, but an Account can have many Owners How does this change the data model? How Does It change database design?