~crf-team/crf-irp/crf-irp

« back to all changes in this revision

Viewing changes to JavaSource/fr/croixrouge/rdp/services/list/ListServiceImpl.java

  • Committer: Thomas
  • Date: 2010-03-10 23:55:46 UTC
  • Revision ID: thomas@daisybox-port-20100310235546-23635dk6x5asb1ca
Upgrade ExtJs 3.1.1
Upgrade Spring 3.0.1 + dependencies
Change Jawr JS post processor : YUI
Upgrade to last build of dwr 3 trunk 69 revision 3019(after build 116), upgrade jawr-dwr plugin 1.4 unofficiale from jose noheda, Jawr 3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import fr.croixrouge.rdp.model.monitor.DispositifEtat;
13
13
import fr.croixrouge.rdp.model.monitor.DispositifType;
14
14
import fr.croixrouge.rdp.model.monitor.EquipierRole;
 
15
import fr.croixrouge.rdp.model.monitor.InterventionEtat;
15
16
import fr.croixrouge.rdp.model.monitor.InterventionMotif;
 
17
import fr.croixrouge.rdp.model.monitor.InterventionMotifAnnulation;
16
18
import fr.croixrouge.rdp.model.monitor.InterventionOrigine;
17
19
import fr.croixrouge.rdp.model.monitor.UserRole;
18
20
import fr.croixrouge.rdp.model.monitor.rowMapper.DelegationRowMapper;
50
52
    "SELECT id_type, label_type, nombre_equipier_max, id_role_leader \n"+
51
53
    "FROM   dispositif_type d   \n"+
52
54
    "ORDER BY id_type ASC       \n";
53
 
  @SuppressWarnings("unchecked")
 
55
 
54
56
  public List<DispositifType> getTypesDispositif()
55
57
  {
56
58
    return this.jdbcTemplate.query(queryForGetTypesDispositif, new Object[]{}, new int[]{}, new DispositifTypeRowMapper());
62
64
    "SELECT id_etat, label_etat \n" +
63
65
    "FROM   dispositif_etat d   \n" +
64
66
    "ORDER BY id_etat ASC       \n";
65
 
  @SuppressWarnings("unchecked")
66
67
  public List<DispositifEtat> getEtatsDispositif()
67
68
  {
68
69
    return this.jdbcTemplate.query(queryForGetEtatsDispositif,new Object[]{}, new int[]{}, new DispositifEtatRowMapper());
74
75
    "SELECT id_role, label_role, evaluable \n" +
75
76
    "FROM   equipier_role                  \n" +
76
77
    "ORDER BY id_role ASC                  \n";
77
 
  @SuppressWarnings("unchecked")
78
78
  public List<EquipierRole> getRolesEquipier()
79
79
  {
80
80
    return this.jdbcTemplate.query(queryForGetRolesEquipier,new Object[]{}, new int[]{}, new EquipierRoleRowMapper());
86
86
    "SELECT id_role, label_role, code_role  \n" +
87
87
    "FROM   user_role                       \n" +
88
88
    "ORDER BY id_role ASC                   \n";
89
 
  @SuppressWarnings("unchecked")
90
89
  public List<UserRole> getRolesUser()
91
90
  {
92
91
    return this.jdbcTemplate.query(queryForGetRolesUser,new Object[]{}, new int[]{}, new UserRoleRowMapper(true));
98
97
    "SELECT id_motif, label_motif \n" +
99
98
    "FROM   intervention_motif    \n" +
100
99
    "ORDER BY id_motif ASC        \n";
101
 
  @SuppressWarnings("unchecked")
102
100
  public List<InterventionMotif> getMotifsIntervention()
103
101
  {
104
102
    return this.jdbcTemplate.query(queryForGetMotifsIntervention,new Object[]{}, new int[]{}, new InterventionMotifRowMapper());
108
106
    "SELECT id_motif_annulation, label_motif_annulation \n" +
109
107
    "FROM   intervention_motif_annulation    \n" +
110
108
    "ORDER BY id_motif_annulation ASC        \n";
111
 
  @SuppressWarnings("unchecked")
112
 
  public List<InterventionMotif> getMotifsAnnulationIntervention()
 
109
  public List<InterventionMotifAnnulation> getMotifsAnnulationIntervention()
113
110
  {
114
111
    return this.jdbcTemplate.query(queryForGetMotifsAnnulationIntervention,new Object[]{}, new int[]{}, new InterventionMotifAnnulationRowMapper());
115
112
  }
118
115
    "SELECT   id_origine, label_origine \n" +
119
116
    "FROM     intervention_origine      \n" +
120
117
    "ORDER BY id_origine ASC            \n";
121
 
  @SuppressWarnings("unchecked")
122
118
  public List<InterventionOrigine> getOriginesIntervention()
123
119
  {
124
120
    return this.jdbcTemplate.query(queryForGetOriginesIntervention,new Object[]{}, new int[]{}, new InterventionOrigineRowMapper());
130
126
    "SELECT   id_delegation, nom, departement \n" +
131
127
    "FROM     delegation d                    \n" +
132
128
    "ORDER BY id_delegation ASC               \n";
133
 
  @SuppressWarnings("unchecked")
134
129
  public List<Delegation> getDelegations()
135
130
  {
136
131
    return this.jdbcTemplate.query(queryForGetDelegations,new Object[]{}, new int[]{}, new DelegationRowMapper());
140
135
    "SELECT   id_etat, label_etat\n" +
141
136
    "FROM     intervention_etat  \n" +
142
137
    "ORDER BY id_etat ASC        \n";
143
 
  @SuppressWarnings("unchecked")
144
 
  public List<Delegation> getEtatsIntervention()
 
138
  public List<InterventionEtat> getEtatsIntervention()
145
139
  {
146
140
    return this.jdbcTemplate.query(queryForGetEtatsIntervention,new Object[]{}, new int[]{}, new InterventionEtatRowMapper());
147
141
  }