public static Reminder byid(long id) { return new Select() .from(Reminder.class) .where("_ID = ?", id) .executeSingle(); }
public static synchronized ActiveBluetoothDevice first() { return new Select() .from(ActiveBluetoothDevice.class) .orderBy("_ID asc") .executeSingle(); }
public static TransmitterData byid(long id) { return new Select() .from(TransmitterData.class) .where("_ID = ?", id) .executeSingle(); }
public static BgReading findByUuid(String uuid) { return new Select() .from(BgReading.class) .where("uuid = ?", uuid) .executeSingle(); }
public static BgReading byUUID(String uuid) { if (uuid == null) return null; return new Select() .from(BgReading.class) .where("uuid = ?", uuid) .executeSingle(); }
public static Sensor getByTimestamp(double started_at) { return new Select() .from(Sensor.class) .where("started_at = ?", started_at) .executeSingle(); }
public static Reminder byid(long id) { return new Select() .from(Reminder.class) .where("_ID = ?", id) .executeSingle(); }
public static Calibration findByUuid(String uuid) { return new Select() .from(Calibration.class) .where("uuid = ?", uuid) .executeSingle(); }
public static UserNotification lastBgAlert() { return new Select() .from(UserNotification.class) .where("bg_alert = ?", true) .orderBy("_ID desc") .executeSingle(); } public static UserNotification lastCalibrationAlert() {
public static UserNotification lastExtraCalibrationAlert() { return new Select() .from(UserNotification.class) .where("extra_calibration_alert = ?", true) .orderBy("_ID desc") .executeSingle(); }
public static BgReading byUUID(String uuid) { if (uuid == null) return null; return new Select() .from(BgReading.class) .where("uuid = ?", uuid) .executeSingle(); }