opBancaires
Class Client

java.lang.Object
  extended by opBancaires.Client

public class Client
extends java.lang.Object

Author:
Creation 17 Oct 2012

Field Summary
private  Attache attache
          Field attache
Référence de l'attaché client.
private  java.util.ArrayList<CompteAbstract> comptes
          Field comptes
Listes des comptes dont le client est titulaire.
private static int lastId
          Variable de classe.
private  java.lang.String nom
          Nom du client.
private  int numId
          Numéro identifiant du client.
 
Constructor Summary
Client(java.lang.String nom, Attache attache)
          Constructeur.
 
Method Summary
 void addCompte(CompteAbstract compte)
          Ajoute un compte dont le client est titulaire.
 Attache getAttache()
           
 java.util.ArrayList<CompteAbstract> getComptes()
           
static int getLastId()
           
 java.lang.String getNom()
           
 int getNumId()
           
 void setAttache(Attache attache)
           
 void setNom(java.lang.String nom)
           
 void setNumId(int numId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lastId

private static int lastId
Variable de classe. Valeur du dernier identifiant de client utilisé.


numId

private int numId
Numéro identifiant du client.


nom

private java.lang.String nom
Nom du client.


comptes

private java.util.ArrayList<CompteAbstract> comptes
Field comptes
Listes des comptes dont le client est titulaire.


attache

private Attache attache
Field attache
Référence de l'attaché client.

Constructor Detail

Client

public Client(java.lang.String nom,
              Attache attache)
Constructeur.

Parameters:
nom -
attache -
Method Detail

getNumId

public int getNumId()
Returns:
the numId

setNumId

public void setNumId(int numId)
Parameters:
numId - the numId to set

getNom

public java.lang.String getNom()
Returns:
the nom

setNom

public void setNom(java.lang.String nom)
Parameters:
nom - the nom to set

getComptes

public java.util.ArrayList<CompteAbstract> getComptes()
Returns:
the comptes

getAttache

public Attache getAttache()
Returns:
Attache - Returns the attache.

setAttache

public void setAttache(Attache attache)
Parameters:
attache - Attache - The attache to set.

getLastId

public static int getLastId()
Returns:
int - Returns the lastId.

addCompte

public void addCompte(CompteAbstract compte)
Ajoute un compte dont le client est titulaire.

Parameters:
compte -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object