Packagecom.ericfeminella.rpc.dao
Interfacepublic interface IDAO

Defines a Generic DAO client-side CRUD implementation which has been adapted from a Java typesafe AOP DAO.

DAO pattern Implementations vary considerably, users can choose to implement IDAO to provide a generic DAO implementation for maximum flexibility

Each DAO instance is responsible for one primary domain object or entity.

The DAO is responsible for performing CRUD on a domain object:

The DAO may allow queries based on criteria as oppossed to just a primary key. These are referd to as finder methods or finders.



Public Methods
 MethodDefined by
  
create(obj:*):void
Persists a new object instance into a database
IDAO
  
Delete(id:*):void
Removes an object from persistent storage in a database
IDAO
  
read(id:*):void
Retrieves a previously persisted object from a database using the specified id as primary key
IDAO
  
update(obj:*):void
Saves changes made to a previously persistent object
IDAO
Method detail
create()method
public function create(obj:*):void

Persists a new object instance into a database

Parameters
obj:*
Delete()method 
public function Delete(id:*):void

Removes an object from persistent storage in a database

Parameters
id:* — id to be used as the primary key
read()method 
public function read(id:*):void

Retrieves a previously persisted object from a database using the specified id as primary key

Parameters
id:* — id to be used as the primary key
update()method 
public function update(obj:*):void

Saves changes made to a previously persistent object

Parameters
obj:* — updated persisted object