Пример #1
0
 public void insertRide(Ride ride) {
   ContentValues values = new ContentValues();
   values.put("date", ride.getDate());
   values.put("isPaid", ride.isIsPaid());
   values.put("sentWs", ride.isSentWs());
   db.insert("ride", null, values);
 }
Пример #2
0
 public void updateRide(Ride ride) {
   ContentValues values = new ContentValues();
   values.put("isPaid", ride.isIsPaid());
   values.put("sentWs", ride.isSentWs());
   db.update("ride", values, "_id = ?", new String[] {String.valueOf("" + ride.getId())});
 }