Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.Category


    case BLOB_KEY:
      return new BlobKey(((BlobKeyPropertyInfo) info).getBlobKey());
    case BOOL:
      return ((BooleanPropertyInfo) info).getPayload();
    case CATEGORY:
      return new Category(((CategoryPropertyInfo) info).getPayload());
    case DOUBLE:
      return ((DoublePropertyInfo) info).getPayload();
    case EMAIL:
      return new Email(((EmailPropertyInfo) info).getPayload());
    case GEOPT:
View Full Code Here


    public S3QueryResultList<ActivityModel> getActivitysByPostType(UserModel userModel, String postType, int num, String cursor) {

        if (StringUtil.isEmpty(cursor)) return getActivitysByPostType(userModel, postType, num);

        Category category = new Category(postType);

        ActivityModelMeta meta = ActivityModelMeta.get();
        ModelRefAttributeMeta<ActivityModel, ModelRef<UserModel>, UserModel> refMeta = meta.userModelRef;
        CoreAttributeMeta<ActivityModel,Category> categoryMeta = meta.verb;
View Full Code Here

     * @return
     * ---------------------------------------------------------------------------------------------------
     */
    private S3QueryResultList<ActivityModel> getActivitysByAttachmentsType(UserModel userModel, String type, int num) {

        Category category = new Category(type);

        ActivityModelMeta meta = ActivityModelMeta.get();
        ModelRefAttributeMeta<ActivityModel, ModelRef<UserModel>, UserModel> refMeta = meta.userModelRef;
        CoreAttributeMeta<ActivityModel,Category> categoryMeta = meta.attachmentsType;

View Full Code Here

    public S3QueryResultList<ActivityModel> getActivitysByAttachmentsType(UserModel userModel, String type, int num, String cursor) {

        if (StringUtil.isEmpty(cursor)) return getActivitysByAttachmentsType(userModel, type, num);

        Category category = new Category(type);

        ActivityModelMeta meta = ActivityModelMeta.get();
        ModelRefAttributeMeta<ActivityModel, ModelRef<UserModel>, UserModel> refMeta = meta.userModelRef;
        CoreAttributeMeta<ActivityModel,Category> categoryMeta = meta.attachmentsType;
View Full Code Here

     * @return
     * ---------------------------------------------------------------------------------------------------
     */
    private S3QueryResultList<ActivityModel> getActivitysByPostType(UserModel userModel, String postType, int num) {

        Category category = new Category(postType);

        ActivityModelMeta meta = ActivityModelMeta.get();
        ModelRefAttributeMeta<ActivityModel, ModelRef<UserModel>, UserModel> refMeta = meta.userModelRef;
        CoreAttributeMeta<ActivityModel,Category> categoryMeta = meta.verb;

View Full Code Here

    while (it.hasNext()) {
      Set set = (Set) it.next();
      Object[] array = set.toArray();
      for (Object o : array) {
        if (o instanceof Category) {
          Category c = (Category) o;
          mapa.put(c.getCategory(), c);
        }
      }
    }
    return new ArrayList<Category>(mapa.values());
  }
View Full Code Here

  }

  @Override
  public void addTag(String tag) {
    this.initTags();
    this.tags.add(new Category(tag));
  }
View Full Code Here

  }

  @Override
  public void removeTag(String tag) {
    this.initTags();
    this.tags.remove(new Category(tag));
  }
View Full Code Here

  }

  @Override
  public void addTags(Collection<String> tags) {
    this.initTags();
    Category cTag;
    for(String tag : tags) {
      cTag = new Category(tag);
      if(!this.tags.contains(cTag)){
        this.tags.add(cTag);
      }
    }
  }
View Full Code Here

  }

  @Override
  public void removeTags(Collection<String> tags) {
    this.initTags();
    Category cTag;
    for(String tag : tags) {
      cTag = new Category(tag);
      this.tags.remove(cTag);
    }
   
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.Category

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.