| Package | com.ericfeminella.rpc.dao |
| Interface | public interface IDAO |
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.
| Method | Defined 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 | ||
| create | () | method |
public function create(obj:*):voidPersists a new object instance into a database
Parametersobj:* |
| Delete | () | method |
public function Delete(id:*):voidRemoves an object from persistent storage in a database
Parametersid:* — id to be used as the primary key
|
| read | () | method |
public function read(id:*):voidRetrieves a previously persisted object from a database using the specified id as primary key
Parametersid:* — id to be used as the primary key
|
| update | () | method |
public function update(obj:*):voidSaves changes made to a previously persistent object
Parametersobj:* — updated persisted object
|