-
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
nsdevaraj edited this page Sep 14, 2010
·
7 revisions
Objective:
To create GenericDAO framework, like IBM Generic DAO (Java /Spring/ Hibernate)
About GenericDAO:
DAO is the Object which manages to perform CRUD Operation and other Common
Operations to be done over a ValueObject ( known as Pojo in Java ).
GenericDAO is a reusable DAO class which can be used generically.
Goal:
In IBM GenericDAO, to add a new DAO, the steps to be done is simply,
- Add a valueobject (pojo).
- Add a hbm.xml mapping file for the valueobject.
- Add the 10-line Spring configuration file for the DAO.
Similarly, in AS3 Project Swiz DAO. We want to attain a similar feet of achievement.
Client Side GenericDAO model:
As we were working on a Client Side language, also we should be managing a persistent object Collection (for every valueObject) .
Usage:
<swiz:Prototype name=“personDAO”
constructorArguments=”{[‘person’,personProcessor]}” type=”{AbstractDAO}”
singleton=“true”/>
Github:
Files used: How Swiz DAO Works