2627282930313233343536
try { pst = con.prepareStatement("select * from cotizacion where codigo = ?"); pst.setInt(1, codigo); rs = pst.executeQuery(); while (rs.next()) { cotizacion = cotizacion.load(rs); } } finally { if (rs != null) { rs.close(); }