Tabnine Logo
Delete.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.activeandroid.query.Delete
constructor

Best Java code snippets using com.activeandroid.query.Delete.<init> (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.queryDelete<init>

Popular methods of Delete

  • from

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JPanel (javax.swing)
  • Best IntelliJ plugins
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