Пример #1
0
  @Override
  protected void populate(Cursor cursor) {
    super.populate(cursor);

    setId(Entity.getLong(cursor, _ID));
    setGlobalId(Entity.getString(cursor, GLOBAL_ID));
    setFeedOwnerId(Entity.getLong(cursor, _ID_FEED_OWNER));
    setActor(Entity.getString(cursor, ACTOR));
    setObject(Entity.getString(cursor, OBJECT));
    setVerb(Entity.getString(cursor, VERB));
    setTarget(Entity.getString(cursor, TARGET));
    setCreationDate(Entity.getLong(cursor, CREATION_DATE));
    setLastModifiedDate(Entity.getLong(cursor, LAST_MODIFIED_DATE));
  }
Пример #2
0
 /**
  * Gets a list of all the "dirty" person activities.
  *
  * @param resolver The content resolver.
  * @return A list of updated person activities.
  * @throws Exception If an error occurs while fetching.
  */
 public static List<PersonActivity> getUpdatedPersonActivities(ContentResolver resolver)
     throws Exception {
   return Entity.getEntities(
       PersonActivity.class, resolver, CONTENT_URI, null, DIRTY + " = 1", null, null);
 }
Пример #3
0
 @Override
 public void fetchLocalId(ContentResolver resolver) {
   setId(Entity.getLocalId(CONTENT_URI, _ID, GLOBAL_ID, globalId, resolver));
   // TODO: fetch feedOwnerId
 }