Last change
on this file since 68 was
68,
checked in by cbipsl, 14 years ago
|
commit v1 eccad
|
-
Property svn:executable set to
*
|
File size:
1007 bytes
|
Rev | Line | |
---|
[68] | 1 | package org.medias.eccad.persistance; |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | import org.medias.eccad.helpers.LoggerPerso; |
---|
| 5 | import org.medias.eccad.helpers.SpringBeanFactory; |
---|
| 6 | import org.medias.eccad.persistance.dao.GrilleDAO; |
---|
| 7 | import org.medias.eccad.persistance.exception.PersistanceException; |
---|
| 8 | import org.springframework.beans.factory.xml.XmlBeanFactory; |
---|
| 9 | |
---|
| 10 | public class ServicePersistanceRaster { |
---|
| 11 | XmlBeanFactory xmlbean; |
---|
| 12 | |
---|
| 13 | public ServicePersistanceRaster() { |
---|
| 14 | LoggerPerso.log(ServicePersistanceRaster.class, LoggerPerso.DEBUG, "création du service"); |
---|
| 15 | xmlbean = SpringBeanFactory.getXmlFactory(); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | /** |
---|
| 19 | * Permet d'obtenir un tableau de float représentant les données |
---|
| 20 | * @param oid l'identifiant des données |
---|
| 21 | * @return une matrice de float |
---|
| 22 | */ |
---|
| 23 | public float[][] getDataEccad(int oid) { |
---|
| 24 | float[][] tableau; |
---|
| 25 | GrilleDAO grilledao = (GrilleDAO) xmlbean.getBean("grilleDAO"); |
---|
| 26 | try { |
---|
| 27 | tableau = grilledao.getGrilleValue(oid); |
---|
| 28 | } |
---|
| 29 | catch (PersistanceException e) { |
---|
| 30 | e.printStackTrace(); |
---|
| 31 | return null; |
---|
| 32 | } |
---|
| 33 | return tableau; |
---|
| 34 | } |
---|
| 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.