All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avos.avoscloud.AVSaveOption Maven / Gradle / Ivy

There is a newer version: 4.7.15
Show newest version
package com.avos.avoscloud;

/**
 * AVSaveOption is a option value for AVObject save operation
 */
public class AVSaveOption {

  AVQuery matchQuery;
  boolean fetchWhenSave;

  /**
   * refresh object value with latest data from remote server after AVObject saved
   *
   * @param fetchWhenSave set true to enable this functionality
   * @return
   */
  public AVSaveOption setFetchWhenSave(boolean fetchWhenSave) {
    this.fetchWhenSave = fetchWhenSave;
    return this;
  }

  /**
   * Only save object when query matches AVObject instance data
   *
   * @param query
   * @return
   */

  public AVSaveOption query(AVQuery query) {
    this.matchQuery = query;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy