congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.activeandroid.query
Code IndexAdd Tabnine to your IDE (free)

How to use com.activeandroid.query

Best Java code snippets using com.activeandroid.query (Showing top 20 results out of 315)

origin: NightscoutFoundation/xDrip

public static Reminder byid(long id) {
  return new Select()
      .from(Reminder.class)
      .where("_ID = ?", id)
      .executeSingle();
}
origin: NightscoutFoundation/xDrip

public static List<UserError> all() {
  return new Select()
      .from(UserError.class)
      .orderBy("timestamp desc")
      .execute();
}
origin: NightscoutFoundation/xDrip

public static void deleteAll() {
  new Delete()
      .from(DesertSync.class)
      .execute();
}
origin: NightscoutFoundation/xDrip

public static LibreBlock getLatestForTrend(long start_time, long end_time) {
  return new Select()
      .from(LibreBlock.class)
      .where("bytestart == 0")
      .where("byteend >= 344")
      .where("timestamp >= ?", start_time)
      .where("timestamp <= ?", end_time)
      .orderBy("timestamp desc")
      .executeSingle();
}

origin: NightscoutFoundation/xDrip

public static List<LibreBlock> getForTrend(long start_time, long end_time) {
  return new Select()
      .from(LibreBlock.class)
      .where("bytestart == 0")
      .where("byteend >= 344")
      .where("timestamp >= ?", start_time)
      .where("timestamp <= ?", end_time)
      .orderBy("timestamp asc")
      .execute();
}
origin: jamorham/xDrip-plus

public static void deleteAll() {
  new Delete()
      .from(DesertSync.class)
      .execute();
}
origin: NightscoutFoundation/xDrip

public static SensorSendQueue nextSensorJob() {
  SensorSendQueue job = new Select()
      .from(SensorSendQueue.class)
      .where("success =", false)
      .orderBy("_ID desc")
      .limit(1)
      .executeSingle();
  return job;
}
origin: NightscoutFoundation/xDrip

public static List<AlertType> getAllActive() {
  List<AlertType> alerts  = new Select()
      .from(AlertType.class)
      .where("active = ?", true)
      .execute();
  return alerts;
}
origin: jamorham/xDrip-plus

public static void delete_all(boolean from_interactive) {
  if (from_interactive) {
    //GcmActivity.push_delete_all_treatments();
  }
  new Delete()
      .from(Treatments.class)
      .execute();
  // not synced with uploader queue - should we?
}
origin: NightscoutFoundation/xDrip

public static synchronized ActiveBluetoothDevice first() {
  return new Select()
      .from(ActiveBluetoothDevice.class)
      .orderBy("_ID asc")
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static TransmitterData byid(long id) {
  return new Select()
      .from(TransmitterData.class)
      .where("_ID = ?", id)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static BgReading findByUuid(String uuid) {
  return new Select()
      .from(BgReading.class)
      .where("uuid = ?", uuid)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static BgReading byUUID(String uuid) {
  if (uuid == null) return null;
  return new Select()
      .from(BgReading.class)
      .where("uuid = ?", uuid)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static Sensor getByTimestamp(double started_at) {
  return new Select()
      .from(Sensor.class)
      .where("started_at = ?", started_at)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static Reminder byid(long id) {
  return new Select()
      .from(Reminder.class)
      .where("_ID = ?", id)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static Calibration findByUuid(String uuid) {
  return new Select()
      .from(Calibration.class)
      .where("uuid = ?", uuid)
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static UserNotification lastBgAlert() {
  return new Select()
      .from(UserNotification.class)
      .where("bg_alert = ?", true)
      .orderBy("_ID desc")
      .executeSingle();
}
public static UserNotification lastCalibrationAlert() {
origin: jamorham/xDrip-plus

public static UserNotification lastExtraCalibrationAlert() {
  return new Select()
      .from(UserNotification.class)
      .where("extra_calibration_alert = ?", true)
      .orderBy("_ID desc")
      .executeSingle();
}
origin: jamorham/xDrip-plus

public static LibreBlock getLatestForTrend(long start_time, long end_time) {
  return new Select()
      .from(LibreBlock.class)
      .where("bytestart == 0")
      .where("byteend >= 344")
      .where("timestamp >= ?", start_time)
      .where("timestamp <= ?", end_time)
      .orderBy("timestamp desc")
      .executeSingle();
}

origin: NightscoutFoundation/xDrip

public static BgReading byUUID(String uuid) {
  if (uuid == null) return null;
  return new Select()
      .from(BgReading.class)
      .where("uuid = ?", uuid)
      .executeSingle();
}
com.activeandroid.query

Most used classes

  • From
  • Delete
  • Select
  • Join$JoinType
  • Join
  • Sqlable,
  • Update
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now