Assignment 4: Technologies and Patterns for Data Access

This is one of the choices for Assignment 4.

Data Access Object (DAO) Pattern

Objectives: This assignment focuses on DAO pattern, understanding the DAO pattern and manual DAO implementations. As a conceptual background, all concepts related to data access technologies of different levels of abstraction and data access patterns must be known (Lectures weeks 9,10,11).

Assignment 4 variant: Manual implementation of DAO pattern

Standard Requirements

Design a Horoscope application, which calculates the horoscope of students.

The students can be read from different data sources (SQL database or some structured file format such as XML).

Use the Data Acces Object pattern to decouple between the business logic and the data source. The choice of the data source (XML file or SQL database) is done at runtime. The application can consider that the data source (XML file, SQL database) already exists and it does not need to be updated.

The business logic (the horoscope algorithm) predicts if a student will have a good day, according to following algorithm: if the number of vowels in the student name is a divisor of the current day, then the student will have a good day.

Deadlines and Grading

The deadline for this assignment is in Week 13. See the Grading Policy on CV for PASSC and DACSS.

Frameworks/technologies to use

Resources