|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.genealogie.arbre.defaut.ChargementArbreAscImpl
Classe de bibliothŠque de fonctions de chargement d'un arbre ascendant en un nombre minimum de requˆte.
| Field Summary | |
private FactoryDAO |
factory
|
private java.util.Hashtable |
generations
|
private boolean |
hommeRacine
|
private int |
idRacine
|
private int |
nbGenerations
|
private EltArbreAsc |
racine
|
| Constructor Summary | |
ChargementArbreAscImpl()
|
|
| Method Summary | |
void |
chargerArbre()
Cette m‚thode permet de charger un arbre ascendant. |
void |
chargerArbreFromArbre(ChargementArbreAsc ca)
Cette m‚thode permet de charger un arbre ascendant … partir d'un autre arbre. |
java.util.Vector |
chargerFiches(int numeroBase,
int generationBase)
Cette m‚thode permet de r‚cup‚rer la liste des fiches des personnes d'un arbre. |
private void |
construireGenerations()
|
private void |
convertirArbre(EltAsc r,
java.util.Hashtable personnes)
|
private EltArbreAsc |
convertirElement(EltAsc elt,
java.util.Hashtable listeElts)
|
EltArbreAsc |
getElement(int id)
|
private java.util.Vector |
getElements(EltAsc elt)
|
private java.util.Vector |
getElements(java.util.Vector liste,
EltAsc elt)
|
private void |
getElementsPourGeneration(EltArbreAsc elt,
int position,
int noGeneration)
|
private java.util.Vector |
getExtremites(java.util.Vector liste,
EltAsc elt,
int noGeneration)
|
private java.util.Vector |
getFeuillesMax(EltAsc r)
|
private java.util.Vector |
getFeuillesMax(java.util.Vector elements)
|
java.util.Vector |
getGeneration(int numeroGeneration)
Cette m‚thode permet de r‚cup‚rer la liste des personnes d'une g‚n‚ration identifi‚e par un num‚ro. |
int |
getNbGenerations()
Cette m‚thode permet de r‚cup‚rer le nombre de g‚n‚rations charg‚es. |
EltArbreAsc |
getRacine()
Cette m‚thode permet de r‚cup‚rer la racine de l'arbre. |
void |
init(FactoryDAO factory,
int idRacine,
boolean hommeRacine)
|
void |
init(FactoryDAO factory,
int idRacine,
boolean hommeRacine,
int nbGenerations)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private FactoryDAO factory
private int nbGenerations
private int idRacine
private boolean hommeRacine
private EltArbreAsc racine
private java.util.Hashtable generations
| Constructor Detail |
public ChargementArbreAscImpl()
| Method Detail |
public void init(FactoryDAO factory,
int idRacine,
boolean hommeRacine)
throws JGeneaException
init in interface ChargementArbreAsc
public void init(FactoryDAO factory,
int idRacine,
boolean hommeRacine,
int nbGenerations)
throws JGeneaException
init in interface ChargementArbreAsc
private java.util.Vector getExtremites(java.util.Vector liste,
EltAsc elt,
int noGeneration)
private java.util.Vector getElements(java.util.Vector liste,
EltAsc elt)
private java.util.Vector getElements(EltAsc elt)
private java.util.Vector getFeuillesMax(EltAsc r)
private java.util.Vector getFeuillesMax(java.util.Vector elements)
private EltArbreAsc convertirElement(EltAsc elt,
java.util.Hashtable listeElts)
private void convertirArbre(EltAsc r,
java.util.Hashtable personnes)
private void getElementsPourGeneration(EltArbreAsc elt,
int position,
int noGeneration)
private void construireGenerations()
public EltArbreAsc getElement(int id)
getElement in interface ChargementArbreAscpublic void chargerArbreFromArbre(ChargementArbreAsc ca)
Cette m‚thode permet de charger un arbre ascendant … partir d'un autre arbre.
chargerArbreFromArbre in interface ChargementArbreAsc
public void chargerArbre()
throws JGeneaException
Cette m‚thode permet de charger un arbre ascendant.
chargerArbre in interface ChargementArbreAscpublic EltArbreAsc getRacine()
Cette m‚thode permet de r‚cup‚rer la racine de l'arbre.
getRacine in interface ChargementArbreAscpublic int getNbGenerations()
Cette m‚thode permet de r‚cup‚rer le nombre de g‚n‚rations charg‚es.
getNbGenerations in interface ChargementArbreAscpublic java.util.Vector getGeneration(int numeroGeneration)
Cette m‚thode permet de r‚cup‚rer la liste des personnes d'une g‚n‚ration identifi‚e par un num‚ro.
getGeneration in interface ChargementArbreAscnumeroGeneration - le num‚ro de la g‚n‚rationorg.genealogie.utils.EltArbreAsc
public java.util.Vector chargerFiches(int numeroBase,
int generationBase)
throws JGeneaException
Cette m‚thode permet de r‚cup‚rer la liste des fiches des personnes d'un arbre.
chargerFiches in interface ChargementArbreAscnumeroBase - le num‚ro de la base de l'arbregenerationBase - le num‚ro de la g‚n‚ration de base de l'arbreFiche
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||