org.orange.kicsa.integration.employee
Class EmployeeJDBCDAO

org.orange.util.integration.JDBCDAO
  |
  +--org.orange.kicsa.integration.employee.EmployeeJDBCDAO

public class EmployeeJDBCDAO
extends JDBCDAO
implements EmployeeDAO

Employee JDBC Data Access Object (DAO)

Author:
Field Summary
 (package private) EmployeeMemoryDAOcache
          Cache
 final static StringEMPLOYEE_UPDATE
          Modification d'un enregistrement d'employé
 final static StringEND_DATE
           
 final static StringENTITY_NAME
          Champ Arianne du nom court (abbréviation) d'une entité
 final static StringENTITY_URI
          Clé Ariane pour l'entité (ENtité_Id)
 final static StringFIELDS
          Champs lus systématiquement
 final static StringFIRST_NAME
           
 final static StringINSERT
           
 final static StringKEY
          Clé primaire pour KiCsa
 final static StringLAST_NAME
           
 final static StringREMOVE
           
 final static StringSELECT_ALL
           
 final static StringSELECT_BY_KEY
           
 final static StringSELECT_NEW_KEY
          Recherche la plus grande clé.

 final static StringTABLE
           
 final static StringURI
           

Fields inherited from class org.orange.util.integration.JDBCDAO
AND, CONNECTION_FACTORY_CLASS_NAME, CONNECTION_FACTORY_CLASS_NAME_DEFAULT, DELETE_FROM, DISTINCT, EQUAL_PARAMETER, FROM, IN, INSERT_INTO, LIKE, NOT, OR, ORDER_BY, SELECT, SET, UPDATE, VALUES, WHERE

Constructor Summary
EmployeeJDBCDAO()
           

Method Summary
 Employeecreate(Employee someEmployee)
          Enregistre un nouvel employé
 MapgetAll()
          Lit tous les employés
 EmployeegetByPrimaryKey(EmployeeKey someKey)
          Get a employé by its reference
 static EmployeeDAOgetInstance()
           
 booleanisCacheEnabled()
           
 MapreadAll()
          Lit tous les employés
 EmployeereadByPrimaryKey(EmployeeKey someKey)
          Get a employé by its reference
 voidremove(EmployeeKey someEmployeeKey)
          Supprime un employé.
 Employeeupdate(Employee someEmployee)
          Modifie l'enregistrement d'un employé

Methods inherited from class org.orange.util.integration.JDBCDAO
getConnection

Field Detail

cache

EmployeeMemoryDAO cache
Cache
supplierQualifier cache

EMPLOYEE_UPDATE

public final static String EMPLOYEE_UPDATE
Modification d'un enregistrement d'employé

END_DATE

public final static String END_DATE

ENTITY_NAME

public final static String ENTITY_NAME
Champ Arianne du nom court (abbréviation) d'une entité

ENTITY_URI

public final static String ENTITY_URI
Clé Ariane pour l'entité (ENtité_Id)

FIELDS

public final static String FIELDS
Champs lus systématiquement

FIRST_NAME

public final static String FIRST_NAME

INSERT

public final static String INSERT

KEY

public final static String KEY
Clé primaire pour KiCsa

LAST_NAME

public final static String LAST_NAME

REMOVE

public final static String REMOVE

SELECT_ALL

public final static String SELECT_ALL

SELECT_BY_KEY

public final static String SELECT_BY_KEY

SELECT_NEW_KEY

public final static String SELECT_NEW_KEY
Recherche la plus grande clé.

Utilisé pour déterminer la clé d'un nouvel enregistrement : max + 1

TABLE

public final static String TABLE

URI

public final static String URI
Constructor Detail

EmployeeJDBCDAO

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

create

public Employee create(Employee someEmployee)
throws org.orange.util.integration.DAOException
Enregistre un nouvel employé
Parameters:
L'employé à enregistrer

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

isCacheEnabled

public boolean isCacheEnabled()

readAll

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

readByPrimaryKey

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

remove

public void remove(EmployeeKey someEmployeeKey)
throws org.orange.util.integration.DAOException
Supprime un employé.


Cette méthode ne prend pas en compte l'intégrité référentielle (effacer des données liées qui n'auront plus de sens si l'employé a disparu).
Celle-ci est soit mise en oeuvre par la base, soit au niveau de la couche service.


update

public Employee update(Employee someEmployee)
throws org.orange.util.integration.DAOException
Modifie l'enregistrement d'un employé
Parameters:
L'employé modifié

Association Links

to Class java.lang.String

to Class java.lang.String

Clé primaire pour KiCsa

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

Clé Ariane pour l'entité (ENtité_Id)

to Class java.lang.String

to Class java.lang.String

Champ Arianne du nom court (abbréviation) d'une entité

to Class java.lang.String

Champs lus systématiquement

to Class java.lang.String

to Class java.lang.String

Recherche la plus grande clé.

Utilisé pour déterminer la clé d'un nouvel enregistrement : max + 1

to Class java.lang.String

to Class java.lang.String

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

Cache

Supplier Qualifier cache

to Class java.lang.String

to Class java.lang.String

Modification d'un enregistrement d'employé

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

Supplier Role instance

Dependency Links

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

to Class org.orange.util.integration.JDBCDAO

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

to Class java.lang.String

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 org.orange.util.Assert

to Class java.sql.Connection

to Class java.sql.PreparedStatement

to Class java.sql.ResultSet

to Class java.sql.SQLException

to Class java.sql.Date

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

to Class java.util.Date

to Class java.util.Map

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

to Class java.util.HashMap

to Class java.lang.StringBuffer

to Class java.lang.Class

to Class java.lang.Throwable

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.util.integration

to Class Diagram org.orange.util

to Class Diagram org.orange

to Class Diagram org

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.kicsa.business.employee

to Class Diagram org.orange.kicsa.business