Tabnine Logo
Delete.from
Code IndexAdd Tabnine to your IDE (free)

How to use
from
method
in
com.activeandroid.query.Delete

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

origin: NightscoutFoundation/xDrip

@Deprecated
public static void emptyQueue() {
  try {
    new Delete()
        .from(BgSendQueue.class)
        .execute();
  } catch (Exception e) {
    // failed
  }
}
origin: jamorham/xDrip-plus

@Deprecated
public static void emptyQueue() {
  try {
    new Delete()
        .from(BgSendQueue.class)
        .execute();
  } catch (Exception e) {
    // failed
  }
}
origin: NightscoutFoundation/xDrip

public static void deleteAll() {
  new Delete()
      .from(DesertSync.class)
      .execute();
}
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

@Deprecated
public static List<BgSendQueue> cleanQueue() {
  return new Delete()
      .from(BgSendQueue.class)
      .where("mongo_success = ?", true)
      .where("operation_type = ?", "create")
      .execute();
}
origin: NightscoutFoundation/xDrip

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 List<StepCounter> cleanup(int retention_days) {
  return new Delete()
      .from(StepCounter.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * 86400000L))
      .execute();
}
origin: NightscoutFoundation/xDrip

public static List<BgReading> cleanup(int retention_days) {
  return new Delete()
      .from(BgReading.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * Constants.DAY_IN_MS))
      .execute();
}
origin: NightscoutFoundation/xDrip

public static List<BloodTest> cleanup(int retention_days) {
  return new Delete()
      .from(BloodTest.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * Constants.DAY_IN_MS))
      .execute();
}
origin: jamorham/xDrip-plus

public static List<PebbleMovement> cleanup(int retention_days) {
  return new Delete()
      .from(PebbleMovement.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * 86400000L))
      .execute();
}
origin: jamorham/xDrip-plus

public static List<BloodTest> cleanup(int retention_days) {
  return new Delete()
      .from(BloodTest.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * Constants.DAY_IN_MS))
      .execute();
}
origin: jamorham/xDrip-plus

public static List<Prediction> cleanup(int retention_days) {
  return new Delete()
      .from(Prediction.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * 86400000L))
      .execute();
}
origin: jamorham/xDrip-plus

public static void testDeleteRange(long start_time, long end_time) {
  List<BgReading> bgrs = new Delete()
      .from(BgReading.class)
      .where("timestamp < ?", end_time)
      .where("timestamp > ?",start_time)
      .execute();
  // UserError.Log.d("OB1TEST","Deleted: "+bgrs.size()+" records");
}
origin: jamorham/xDrip-plus

public static List<HeartRate> cleanup(int retention_days) {
  return new Delete()
      .from(HeartRate.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * 86400000L))
      .execute();
}
origin: jamorham/xDrip-plus

public static List<BgReading> cleanup(int retention_days) {
  return new Delete()
      .from(BgReading.class)
      .where("timestamp < ?", JoH.tsl() - (retention_days * Constants.DAY_IN_MS))
      .execute();
}
origin: NightscoutFoundation/xDrip

public static void cleanupOutOfRangeValues() {
  new Delete()
      .from(BgReading.class)
      .where("timestamp > ?", JoH.tsl() - (3 * Constants.DAY_IN_MS))
      .where("calculated_value > ?", 324)
      .execute();
}
origin: jamorham/xDrip-plus

public static void cleanupOutOfRangeValues() {
  new Delete()
      .from(BgReading.class)
      .where("timestamp > ?", JoH.tsl() - (3 * Constants.DAY_IN_MS))
      .where("calculated_value > ?", 324)
      .execute();
}
origin: jamorham/xDrip-plus

public static void cleanup() {
  try {
    new Delete()
        .from(DesertSync.class)
        .where("timestamp < ?", JoH.tsl() - 86400000L)
        .execute();
  } catch (Exception e) {
    UserError.Log.d(TAG, "Exception cleaning uploader queue: " + e);
  }
}
origin: NightscoutFoundation/xDrip

public static void emptyQueue() {
  fixUpTable();
  try {
    new Delete()
        .from(UploaderQueue.class)
        .execute();
    last_cleanup = JoH.tsl();
    JoH.static_toast_long("Uploader queue emptied!");
  } catch (Exception e) {
    UserError.Log.d(TAG, "Exception cleaning uploader queue: " + e);
  }
}
origin: jamorham/xDrip-plus

public static void emptyQueue() {
  fixUpTable();
  try {
    new Delete()
        .from(UploaderQueue.class)
        .execute();
    last_cleanup = JoH.tsl();
    JoH.static_toast_long("Uploader queue emptied!");
  } catch (Exception e) {
    UserError.Log.d(TAG, "Exception cleaning uploader queue: " + e);
  }
}
com.activeandroid.queryDeletefrom

Popular methods of Delete

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 12 Jupyter Notebook extensions
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