Package org.ldv.sio.getap.app

Examples of org.ldv.sio.getap.app.AccPersonalise


        "select * from ap where origineEtat = 0 or (origineEtat = 1 and idUser = "
            + id + ")", new AccMapper());
  }

  public AccPersonalise getAPById(int id) {
    AccPersonalise acc;
    try {
      acc = this.jdbcTemplate.queryForObject(
          "select * from ap where id = ?", new Object[] { id },
          new AccMapper());
    } catch (EmptyResultDataAccessException e) {
View Full Code Here


    return acc;
  }

  public AccPersonalise getAPByNom(String nom) {
    AccPersonalise acc;
    try {
      acc = this.jdbcTemplate.queryForObject(
          "select * from ap where libelle = ?", new Object[] { nom },
          new AccMapper());
    } catch (EmptyResultDataAccessException e) {
View Full Code Here

  }

  private static final class AccMapper implements RowMapper<AccPersonalise> {
    public AccPersonalise mapRow(ResultSet rs, int rowNum)
        throws SQLException {
      AccPersonalise acc = new AccPersonalise();
      acc.setId(rs.getInt("id"));
      acc.setNom(rs.getString("libelle"));
      acc.setOrigineEtat(rs.getInt("origineEtat"));
      acc.setIdUser(rs.getLong("idUser"));
      try {
        acc.setCount(rs.getInt("apByType"));
        acc.setIdEleve(rs.getInt("idEleve"));
      } catch (SQLException ex) {

      }
      return acc;
    }
View Full Code Here

TOP

Related Classes of org.ldv.sio.getap.app.AccPersonalise

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.