| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.orange.util.integration.JDBCDAO | +--org.orange.kicsa.integration.employee.EmployeeJDBCDAO
Employee JDBC Data Access Object (DAO)
| Field Summary | |
(package private) EmployeeMemoryDAO | cacheCache |
final static String | EMPLOYEE_UPDATEModification d'un enregistrement d'employé |
final static String | END_DATE |
final static String | ENTITY_NAMEChamp Arianne du nom court (abbréviation) d'une entité |
final static String | ENTITY_URIClé Ariane pour l'entité (ENtité_Id) |
final static String | FIELDSChamps lus systématiquement |
final static String | FIRST_NAME |
final static String | INSERT |
final static String | KEYClé primaire pour KiCsa |
final static String | LAST_NAME |
final static String | REMOVE |
final static String | SELECT_ALL |
final static String | SELECT_BY_KEY |
final static String | SELECT_NEW_KEYRecherche la plus grande clé. |
final static String | TABLE |
final static String | URI |
| 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 | |
Employee | create(Employee someEmployee)Enregistre un nouvel employé |
Map | getAll()Lit tous les employés |
Employee | getByPrimaryKey(EmployeeKey someKey)Get a employé by its reference |
static EmployeeDAO | getInstance() |
boolean | isCacheEnabled() |
Map | readAll()Lit tous les employés |
Employee | readByPrimaryKey(EmployeeKey someKey)Get a employé by its reference |
void | remove(EmployeeKey someEmployeeKey)Supprime un employé. |
Employee | update(Employee someEmployee)Modifie l'enregistrement d'un employé |
| Methods inherited from class org.orange.util.integration.JDBCDAO |
getConnection |
| Field Detail |
EmployeeMemoryDAO cache
public final static String EMPLOYEE_UPDATE
public final static String END_DATE
public final static String ENTITY_NAME
public final static String ENTITY_URI
public final static String FIELDS
public final static String FIRST_NAME
public final static String INSERT
public final static String KEY
public final static String LAST_NAME
public final static String REMOVE
public final static String SELECT_ALL
public final static String SELECT_BY_KEY
public final static String SELECT_NEW_KEY
public final static String TABLE
public final static String URI
| Constructor Detail |
public EmployeeJDBCDAO()
throws org.orange.util.integration.DAOException
| Method Detail |
public Employee create(Employee someEmployee)
throws org.orange.util.integration.DAOException
public Map getAll()
throws org.orange.util.integration.DAOException
public Employee getByPrimaryKey(EmployeeKey someKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.EmployeeNotFoundException
public static EmployeeDAO getInstance()
throws org.orange.util.integration.DAOException
public boolean isCacheEnabled()
public Map readAll()
throws org.orange.util.integration.DAOException
public Employee readByPrimaryKey(EmployeeKey someKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.EmployeeNotFoundException
public void remove(EmployeeKey someEmployeeKey)
throws org.orange.util.integration.DAOException
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.
public Employee update(Employee someEmployee)
throws org.orange.util.integration.DAOException
| Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class org.orange.kicsa.integration.employee.EmployeeMemoryDAO
to Class java.lang.String
to Class java.lang.String
to Class org.orange.kicsa.integration.employee.EmployeeJDBCDAO
| Dependency Links |
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
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||