|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDataManager
public class DataManager
Classe qui g�re un ensemble de Personne via 3 op�rations.
Field Summary | |
---|---|
protected java.util.Vector<Personne> |
personneVector
Vecteur qui contient les personnes |
Constructor Summary | |
---|---|
DataManager()
|
Method Summary | |
---|---|
int |
addPersonne(Personne p)
Ajoute une personne dans la liste et retourne son identificateur. |
int |
getId(Personne p)
R�cup�re l'identifiant d'une personne. |
Personne |
getPersonne(int id)
R�cup�re une personne dans la liste � partir de son identifiant. |
static void |
main(java.lang.String[] argv)
Programme qui permet de tester le fonctionnement de la classe DataManager et de ses op�rations de gestion de
personnes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<Personne> personneVector
Constructor Detail |
---|
public DataManager()
Method Detail |
---|
public int addPersonne(Personne p)
p
- la personne � ajouter dans la liste
public Personne getPersonne(int id) throws InvalidIdException
id
- l'idenfiant de la personne � r�cup�rer
InvalidIdException
- dans le cas o� l'identifiant
n'est attribu� � aucune personnepublic int getId(Personne p)
p
- la personne dont on veut r�cup�rer l'identifiant
public static void main(java.lang.String[] argv)
DataManager
et de ses op�rations de gestion de
personnes.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |