picview/src/com/google/android/apps/picview/data/WebResponseDatabase.java
public long put(URL url, String modified, String response) {
    ContentValues values = new ContentValues();
    values.put(COLUMN_URL, url.toString());
    values.put(COLUMN_MODIFIED, modified);
    values.put(COLUMN_RESPONSE, response);

    return db.replace(TABLE_NAME, COLUMN_RESPONSE, values);
  }
/**
   * Puts a response into the database.
   * 
   * @param url
   *          the request URL
   * @param modified
   *          the version key of the response, usually a date string
   * @param response
   *          the web response of the request to store
   * @return the row
   */
Puts a response into the database.

@param url
the request URL
@param modified
the version key of the response, usually a date string
@param response
the web response of the request to store
@return the row
Puts a response into the database . @param url the request URL @param modified the version key of the response usually a date string @param response the web response of the request to store @return the row
public long put(URL url, String modified, String response) {
    ContentValues values = new ContentValues();
    values.put(COLUMN_URL, url.toString());
    values.put(COLUMN_MODIFIED, modified);
    values.put(COLUMN_RESPONSE, response);
    return db.replace(TABLE_NAME, COLUMN_RESPONSE, values);
  }
public long put ( URL url , String modified , String response ) { ContentValues values = new ContentValues ( ) ; values . put ( COLUMN_URL , url . toString ( ) ) ; values . put ( COLUMN_MODIFIED , modified ) ; values . put ( COLUMN_RESPONSE , response ) ; return db . replace ( TABLE_NAME , COLUMN_RESPONSE , values ) ; }
Puts a response into the database.
Puts a response into the database .