Exemple #1
0
 public int DbInsertCarInfo(CarInfo ci) throws SQLException {
   String sql =
       "insert into CarInfo values(default,'"
           + ci.getCarPlate()
           + "','"
           + ci.getCarModel()
           + "','"
           + ci.getCarLeaseDate()
           + "','"
           + ci.getCarReaturnDate()
           + "');";
   return state.executeUpdate(sql);
 }