Rev 1417 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.modeles.structure;import org.tela_botanica.client.modeles.aDonneeListe;import com.google.gwt.json.client.JSONArray;import com.google.gwt.json.client.JSONObject;/*** Table de hachage composée d'informations sur les Structures et les Personnes, renvoyé par un objet de type DAO* La clé est une concaténation des clés primaires de la table coel_structure_a_personne séparées par un tiret "-".** @author david delon**/public class StructureAPersonneListe extends aDonneeListe<StructureAPersonne> {private static final long serialVersionUID = -2000442795474013672L;public StructureAPersonneListe() {super();}public StructureAPersonneListe(int taille) {super(taille);}public StructureAPersonneListe(JSONArray structures) {super(structures.size()) ;final int taillemax = structures.size();for (int i = 0; i < taillemax; i++) {JSONObject structureAPersonneCourante = structures.get(i).isObject() ;if (structureAPersonneCourante != null) {StructureAPersonne structureAPersonne = new StructureAPersonne(structureAPersonneCourante);this.put(structureAPersonne.getId(), structureAPersonne);}}}}