org.orange.kicsa.integration.employee
Class EmployeeMemoryDAO


public class EmployeeMemoryDAO
implements EmployeeDAO

Version de test :
+ ne nécessite pas de base de données
- Retourne des données limitées et invariables

Author:
Jérôme Beau pour Orange (c) 2002
Version: 0.1, Initiale
Stereotype singleton
testcase test.org.orange.kicsa.integration.employee.TestEmployeeJDBCDAO

Constructor Summary
EmployeeMemoryDAO()
           

Method Summary
 Employeecreate(Employee someEmployee)
           
 Abilitycreate(Ability someAbility)
           
 CollectiongetAbilities(EmployeeKey someKey)
           
 MapgetAll()
          Lit tous les employés
 EmployeegetByPrimaryKey(EmployeeKey someKey)
          Get a employé by its reference
 static EmployeeDAOgetInstance()
           
 voidremove(EmployeeKey someKey)
           
 voidsetAll(Map someAll)
           
 voidsetByPrimaryKey(EmployeeKey someKey, Employee someEmployee)
          Get a employé by its reference
 Employeeupdate(Employee someEmployee)
           

Constructor Detail

EmployeeMemoryDAO

public EmployeeMemoryDAO()
throws org.orange.util.integration.DAOException
Method Detail

create

public Employee create(Employee someEmployee)
throws org.orange.util.integration.DAOException

create

public Ability create(Ability someAbility)
throws org.orange.util.integration.DAOException

getAbilities

public Collection getAbilities(EmployeeKey someKey)

getAll

public Map getAll()
throws org.orange.util.integration.DAOException
Lit tous les employés

getByPrimaryKey

public Employee getByPrimaryKey(EmployeeKey someKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.EmployeeNotFoundException
Get a employé by its reference

getInstance

public static EmployeeDAO getInstance()
throws org.orange.util.integration.DAOException

remove

public void remove(EmployeeKey someKey)
throws org.orange.util.integration.DAOException

setAll

public void setAll(Map someAll)

setByPrimaryKey

public void setByPrimaryKey(EmployeeKey someKey, Employee someEmployee)
throws org.orange.util.integration.DAOException
Get a employé by its reference

update

public Employee update(Employee someEmployee)
throws org.orange.util.integration.DAOException

Association Links

to Class java.util.Map

to Class org.orange.kicsa.integration.employee.EmployeeMemoryDAO

Supplier Role instance

to Class java.util.Map

to Class java.util.Map

Dependency Links

to Class test.org.orange.kicsa.integration.employee.TestEmployeeJDBCDAO

to Class org.orange.kicsa.integration.employee.EmployeeDAO

to Class org.orange.util.integration.DAOException

to Class org.orange.kicsa.business.employee.Employee

to Class org.orange.kicsa.business.employee.EmployeeKey

to Class org.orange.kicsa.EmployeeNotFoundException

to Class java.util.Map

to Class java.lang.Class

to Class java.util.HashMap

to Class java.util.Collection

to Class java.util.ArrayList

to Class org.orange.kicsa.business.ability.Ability

to Class java.lang.RuntimeException

to Class Diagram test.org.orange.kicsa.integration.employee

to Class Diagram test.org.orange.kicsa.integration

to Class Diagram test.org.orange.kicsa

to Class Diagram test.org.orange

to Class Diagram test.org

to Class Diagram test

to Class Diagram <default>

to Class Diagram org.orange.kicsa.integration.employee

to Class Diagram org.orange.kicsa.integration

to Class Diagram org.orange.kicsa

to Class Diagram org.orange

to Class Diagram org

to Class Diagram org.orange.util.integration

to Class Diagram org.orange.util

to Class Diagram org.orange.kicsa.business.employee

to Class Diagram org.orange.kicsa.business

to Class Diagram org.orange.kicsa.business.ability