Skip to content
nsdevaraj edited this page Sep 14, 2010 · 7 revisions
Libraries Used:  Swiz, AS3Signals and FoomongerSwizFramework.


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,


  1. Add a valueobject (pojo).

  2. Add a hbm.xml mapping file for the valueobject.

  3. 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

http://github.com/nsdevaraj/SwizDAO

Clone this wiki locally