Day 24
Day 24
CHAPTER IN BOOK- 11
DAY- 24
-K. Indhu
SYLLABUS COVERED HERE
• Multidatabase Systems
• Designing Access layer classes
17-MAR-14 K. INDHU 2
GOALS
1. Multidatabase Systems
i. Federated Multi-Database Systems
ii. Pictorial Representation of MDBS
iii. Characteristics of MDBS
2. Open Database Connectivity
3. Advantages of Open Database Connectivity
4. Pictorial Representation of ODBC
17-MAR-14 K. INDHU 3
MULTI-DATABASE SYSTEMS
• A different approach for integrating-
– Object-Oriented Data Environment
– (with)
– Relational Data Environments
– (is)-> Multi-database Systems,
– (or)
– Heterogeneous Database Systems.
14-MAR-14 K. INDHU 4
MULTI-DATABASE SYSTEMS
• Federated Multi-Database systems provide a
solution to the problem of interoperating
heterogeneous data systems.
14-MAR-14 K. INDHU 5
MULTI-DATABASE SYSTEMS
14-MAR-14 K. INDHU 6
CHARACTERISTICS OF MDBS
• The distinctive characteristics of Multi-database systems are:-
14-MAR-14 K. INDHU 7
OPEN DATABASE CONNECTIVITY
• Open Database Connectivity(ODBC) is an
– application programming interface(API)
– that provides solutions to the multi-database programming
problem.
– that is a Programming Solution with APIs.
• This means that Batch can read database formats like Microsoft
Access, Paradox, dBase and FoxPro; spreadsheets like Microsoft
Excel; and connect to external database servers such as Oracle,
Informix or Microsoft SQL Server.
• ODBC and the other APIs provide standard database access through
a common client-side interface.
17-MAR-14 K. INDHU 9
UNDERSTANDING->
OPEN DATABASE CONNECTIVITY
• The Open Database Connectivity (ODBC) interface-
– > allows front-end applications
– > to access back-end data
– > from various database management systems (DBMS).
17-MAR-14 K. INDHU 10
OPEN DATABASE CONNECTIVITY-
DEVICE DRIVER MODEL
• ODBC is based on the device driver model, where the
driver encapsulates the logic needed to convert a standard
set of commands and functions into the specific calls
required by the underlying system.
17-MAR-14 K. INDHU 11
OPEN DATABASE CONNECTIVITY
17-MAR-14 K. INDHU 12
OPEN DATABASE CONNECTIVITY-
BRIDGING CONFIGURATIONS
• A bridge is a special kind of driver-> a driver that uses another
driver-based technology.
17-MAR-14 K. INDHU 13
OPEN DATABASE CONNECTIVITY
17-MAR-14 K. INDHU 14
ADVANTAGES OF ODBC
1. It allows software developers to write desktop
applications without the burden of learning multiple
database APIs.
17-MAR-14 K. INDHU 15
DESIGNING ACCESS LAYER CLASSES
• The place where the data actually reside is called as DATA
SOURCE.
17-MAR-14 K. INDHU 16
DESIGNING ACCESS LAYER CLASSES
• TWO IMPORTANT DUTIES OF ACCESS LAYER:-
1. The access classes must be able to translate any data-
related requests from the business layer into the
appropriate protocol for data access.
17-MAR-14 K. INDHU 17
DESIGNING ACCESS LAYER CLASSES
• Access layer performs BELOW major tasks:-
1. Translate the request:-
– Data-Request--->
– FROM Business Layer--->
– TO Access Layer[converts data-request into proper query-language]--->
– [Query interacts with] Data-Store--->
– [Fetches data from Data-Store] Data-Results
17-MAR-14 K. INDHU 18
DESIGNING ACCESS LAYER CLASSES
• ADVANTAGES OF THIS APPROACH:-
1. The front-end- design is not tied to any database-
engine.
17-MAR-14 K. INDHU 19
DESIGNING ACCESS LAYER CLASSES
• ADVANTAGES OF THIS APPROACH:-
17-MAR-14 K. INDHU 20
DESIGNING ACCESS LAYER CLASSES
17-MAR-14 K. INDHU 21
DESIGNING ACCESS LAYER CLASSES-
THE PROCESS
• The access layer design process consists of these following
activities:-
• 1. For every business class identified <---> Create one access
class in the access layer package.
• That is, For every business class that has been identified &
created
<--->
• MIRROR the Business – Class – Package into Access – Class –
Package.
17-MAR-14 K. INDHU 22
DESIGNING ACCESS LAYER CLASSES-
THE PROCESS
• 3. Simplify classes and relationships. The main goal here is
to eliminate redundant or unnecessary classes or structures.
In most cases, we can combine simple access classes and
simplify the super-sub class structures.
– 3.1. Redundant classes:- If you have more than one class that
provides similar services, simply select one and eliminate the
other(s).
– 3.2. Method classes:- Revisit the classes that consist of only one or
two methods to see if they can be eliminated or combined with
existing classes.
17-MAR-14 K. INDHU 23
DESIGNING ACCESS LAYER CLASSES-
THE PROCESS
17-MAR-14 K. INDHU 24
17-MAR-14 K. INDHU 25
17-MAR-14 K. INDHU 26
17-MAR-14 K. INDHU 27
CLASS DIAGRAM OF ATM
17-MAR-14 K. INDHU 28
HAPPY LEARNING!!!