Ejemplo n.º 1
0
 public Racquet getRacquet(int racquetId) throws SQLException {
   start();
   rs = stmt.executeQuery("SELECT * FROM racquetInfo WHERE racquetID = '" + racquetId + "'");
   Racquet rtrn = null;
   if (rs.next()) {
     rtrn = new Racquet();
     rtrn.setModelName(rs.getString(2));
     rtrn.setBrand(rs.getString(3));
     rtrn.setMass(rs.getDouble(4));
     rtrn.setLength(rs.getDouble(5));
     //  rtrn.setSwingWeight(rs.getDouble(6));
     rtrn.setBalancePoint(rs.getDouble(7));
     rtrn.setQualityIndex(rs.getDouble(8));
   }
   close();
   return rtrn;
 }