Examples of Category


Examples of org.lazan.t5.stitch.demo.entities.Category

  }

  private void addCategories(Map<String, Category> catCache, String[] categories) {
    for (String categoryEntry : categories) {
      String[] hierarchy = categoryEntry.split("/");
      Category parentCategory = null;
      for (String categoryName : hierarchy) {
        Category category = catCache.get(categoryName);
        if (category == null) {
          category = new Category();
          category.setName(categoryName);
          category.setParentCategory(parentCategory);
          session.save(category);
         
          catCache.put(categoryName, category);
        }
        parentCategory = category;
View Full Code Here

Examples of org.mapache.business.category.Category

        while(resultSet.next()){
            categories.add(fetchRecordInCategoryObject(resultSet));
        }
    }
    private Category fetchRecordInCategoryObject(ResultSet record) throws SQLException {
        Category c = new Category();
        c.setCategoryID(record.getInt("CategoryID"));
        c.setName(record.getString("Name"));
        try{
            c.setTopicCount(record.getInt("TopicCount"));
        }catch(SQLException e){
            c.setTopicCount(-1);
        }
        return c;
    }
View Full Code Here

Examples of org.modeshape.common.annotation.Category

                label = localizedString(labelAnnotation.i18n(), labelAnnotation.value());
                inferred = false;
            }
        }
        if (category == null) {
            Category cat = getAnnotation(Category.class, field, getters, setters);
            if (cat != null) {
                category = localizedString(cat.i18n(), cat.value());
                inferred = false;
            }
        }
        if (!readOnly) {
            ReadOnly readOnlyAnnotation = getAnnotation(ReadOnly.class, field, getters, setters);
View Full Code Here

Examples of org.monjo.example.Category

    another.setDescription("pojo complexo");
    return another;
  }

  public static PojoWithListInnerObject createMegaZordePojo() {
    Category category = new Category();
    category.setName("NewCategory");
 
    PojoWithListInnerObject pojo = new PojoWithListInnerObject();
    LinkedList<Category> categories = new LinkedList<Category>();
    categories.add(category);
    pojo.setCategories(categories);
View Full Code Here

Examples of org.nasutekds.guitools.controlpanel.datamodel.Category

      classes.add(WindowsServicePanel.class);
    }
    int classIndex = 0;
    for (int i=0; i<labels.length; i++)
    {
      Category category = new Category();
      category.setName(labels[i][0]);
      for (int j=1; j<labels[i].length; j++)
      {
        Action action = new Action();
        action.setName(labels[i][j]);
        action.setAssociatedPanel(classes.get(classIndex));
        classIndex ++;

        category.getActions().add(action);

      }
      categories.add(category);
    }
    return categories;
View Full Code Here

Examples of org.nasutekds.messages.Category

        {
          String categoryName = overrideSeverity.substring(0, equalPos);
          categoryName = categoryName.replace("-", "_").toUpperCase();
          try
          {
            Category category = Category.valueOf(categoryName);

            HashSet<Severity> severities =
                new HashSet<Severity>();
            StringTokenizer sevTokenizer =
              new StringTokenizer(overrideSeverity.substring(equalPos+1), ",");
View Full Code Here

Examples of org.netcools.forum.model.Category

  CategoryDao categoryDao;
 
  @Override
  public void saveCategory(int categoryId, String title, int order,
      int moderated) {
    Category cat = new Category();
    cat.setTitle(title);
    cat.setDisplayOrder(order);
    cat.setModerated(moderated);
   
    categoryDao.save(cat);
  }
View Full Code Here

Examples of org.ocpsoft.rewrite.showcase.bookstore.model.Category

   @RequestAction
   @Deferred
   public String loadData()
   {

      Category category = categoryDao.getBySeoKey(seoKey);

      if (category == null) {
         ResponseUtils.sendError(404);
         return null;
      }
View Full Code Here

Examples of org.openbravo.model.common.businesspartner.Category

    addReadWriteAccess(Category.class);
    final OBCriteria<Category> obc = OBDal.getInstance().createCriteria(Category.class);
    obc.add(Expression.eq("name", "Standard"));
    final List<Category> bogs = obc.list();
    assertEquals(1, bogs.size());
    final Category bp = bogs.get(0);
    bp.setDescription(bp.getDescription() + "A");
    // switch usercontext to force exception
    setUserContext("1000019");
    try {
      commitTransaction();
    } catch (final OBException e) {
View Full Code Here

Examples of org.openquark.cal.compiler.SourceIdentifier.Category

        // If less than 2 argument given, cant rename
        if (args.length < 2) {
            return;
        }
       
        final Category category;
       
        String oldNameString;
        QualifiedName oldName;
       
        String newNameString;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.