Skip to content

An example of the DAO (Data Access Object) design pattern in the context of Exercise 1

Notifications You must be signed in to change notification settings

csc301-fall2014/DAOExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Access Object

This repo is an example of the DAO (Data Access Object) design pattern in the context of Exercise 1. It is very similar to what we talked about in class during week 4.

DAO

We use the DAO pattern when:

  • We want to use multiple data storages.
  • We want to write code that will work for all of them.

That is, we abstract the details of the underlying data storage, and define a unified way of accessing the data.


In class, I talked about in-memory vs. remote-database DAO implementation. In this example, I chose to implement something a little simpler:

  1. In-memory DAO - Keeps everything in memory.
  2. Local-file DAO - Data is saved/loaded to/from a local file.

About

An example of the DAO (Data Access Object) design pattern in the context of Exercise 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages