Subversion Repositories eFlore/Applications.cel

Rev

Rev 151 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 153
Line 16... Line 16...
16
import com.google.gwt.json.client.JSONParser;
16
import com.google.gwt.json.client.JSONParser;
17
import com.google.gwt.json.client.JSONString;
17
import com.google.gwt.json.client.JSONString;
18
import com.google.gwt.json.client.JSONValue;
18
import com.google.gwt.json.client.JSONValue;
Line 19... Line 19...
19
 
19
 
20
/**
20
/**
21
 * DAO  liste noms scientifiques
21
 * DAO  liste noms scientifiques // utilisation d'un cahce memoire pour eviter des requetes inutiles.
22
 * @author David Delon
22
 * @author David Delon
23
 * 
23
 * 
24
 */
24
 */
Line -... Line 25...
-
 
25
public class ListeReferentielNomAsynchroneDAO implements FournisseurListe {
Line 25... Line 26...
25
public class ListeReferentielNomAsynchroneDAO implements FournisseurListe {
26
 
26
 
27
 
27
 
28
	//TODO : limiter taille du cache ? (si pb performance)
28
	
29
	
Line 38... Line 39...
38
	 */
39
	 */
Line 39... Line 40...
39
	
40
	
Line -... Line 41...
-
 
41
	private HashMap <String,ListeReferentielNom> cache = new HashMap();
-
 
42
	
40
	private HashMap <String,ListeReferentielNom> cache = new HashMap();
43
	
41
	
44
 
Line 42... Line 45...
42
	
45
	
43
	public ListeReferentielNomAsynchroneDAO(ObservationModele observationModele)
46
	public ListeReferentielNomAsynchroneDAO(ObservationModele observationModele)
Line 57... Line 60...
57
	
60
	
58
	public void obtenirListeDonnees(final Rafraichissable r, final String critere)
61
	public void obtenirListeDonnees(final Rafraichissable r, final String critere)
Line 59... Line 62...
59
	{
62
	{
Line 60... Line 63...
60
		
63
		
61
		
64
		
62
		ListeReferentielNom referentielNomData=null;
65
		ListeReferentielNom referentielNomDataFromCache=null;
63
		
66
		
Line 64... Line 67...
64
		
67