public long addOrUpdateBluetooth(Bluetooth bluetooth) { ContentValues content = new ContentValues(); content.put("status", bluetooth.getStatus()); content.put("name", bluetooth.getName()); content.put("address", bluetooth.getAddress()); content.put("used", bluetooth.getUsed()); return addOrUpdate(bluetooth.getId(), Bluetooth.NAME, content); }