Examples of Category


Examples of com.jbidwatcher.auction.Category

    if (rowList.length == 0) {
      JOptionPane.showMessageDialog(null, "No auctions selected to move!", "Error moving listings", JOptionPane.PLAIN_MESSAGE);
      return;
    }

    Category c = Category.findFirstByName(tab);

    if (c == null) {
      JOptionPane.showMessageDialog(null, "Cannot locate that tab, something has gone wrong.\nClose and restart JBidwatcher.", "Error moving listings", JOptionPane.PLAIN_MESSAGE);
      return;
    }
View Full Code Here

Examples of com.jdkcn.myblog.domain.Category

      if (category.getOrder() == null) {
        category.setOrder(getMaxOrder(parentId) + 1);
      }
      category.setCount(0);
    }
    Category exist = getByName(category.getName(), parentId);
    if (exist != null && !StringUtils.equals(category.getId(), exist.getId())) {
      throw new DuplicateException("category in parentId[" + parentId + "] duplicate with name:" + category.getName());
    }
    Category savedCategory = entityManagerProvider.get().merge(category);
    if (category.getParent() != null) {
      category.getParent().getChildren().add(savedCategory);
    }
    return savedCategory;
  }
View Full Code Here

Examples of com.jpoweredcart.common.entity.catalog.Category

 
  @Override
  public Category get(Integer catId, Class<? extends Category> clazz) {
   
    String sql = "SELECT * FROM " + quoteTable("category")+" WHERE category_id = ?";
    Category cat = getJdbcOperations().queryForObject(sql,
        new Object[]{catId}, new CategoryRowMapper().setTargetClass(clazz));
    return cat;
  }
View Full Code Here

Examples of com.knowgate.hipergate.Category

  // ---------------------------------------------------------------------------

  protected DBFolder(Store oStor, String sName) {
    super(oStor);
    oCatg = new Category();
    iOpenMode = 0;
    sFolderName = sName;
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.Category

    getHibernateTemplate().bulkUpdate("delete from Category c where c.id="+id);
  }
 
  public List<Category> findAllCategoryList(long id) {
    List<Category> list = new ArrayList<Category>();
    Category category = getHibernateTemplate().get(Category.class, id);
    if(category!=null) {
      list.add(category);
      List<Category> childs = findAllChilds(list);
      while(childs!=null&&childs.size()>0) {
        for(Category c:childs) {
View Full Code Here

Examples of com.madgnome.jira.plugins.jirachievements.data.ao.Category

  }

  @Test
  public void getOrCreateShouldCreateIfAny()
  {
    Category category = Category.USER;
    int number = 0;
    statisticRefDaoService.create(StatisticRefEnum.CREATED_ISSUE_COUNT);

    assertNull(daoService.get(category, number));
    Level level = daoService.getOrCreate(category, number, StatisticRefEnum.CREATED_ISSUE_COUNT, 0, 10);
View Full Code Here

Examples of com.multysite.entity.Category

        if (obj != null) {
          CategoryModel cateModel = new CategoryModel();
          cateModel.prepareAll();
          if (cateModel.getListResult().size() == 0) {
            List<Category> listCate = new ArrayList<Category>();
            Category cate = new Category();
            cate.setTitle("Uncategory");
            cate.setAlias("uncategory");
            cate.setLevel(1);
            cate.setParentAlias("");
            CategoryModel.insert(cate);
            listCate.add(cate);
            req.setAttribute("listCategory", listCate);
          } else {
            req.setAttribute("listCategory",
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.auctionmark.util.Category

        }
        @Override
        protected int populateRow(Object[] row) {
            int col = 0;

            Category category = this.categories.poll();
            assert(category != null);
           
            // C_ID
            row[col++] = category.getCategoryID();
            // C_NAME
            row[col++] = category.getName();
            // C_PARENT_ID
            row[col++] = category.getParentCategoryID();
           
            return (col);
        }
View Full Code Here

Examples of com.openbravo.ws.externalsales.Category

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Category)) {
            return false;
        }
        Category other = (Category) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
                ((this.description == null && other.getDescription() == null) ||
                (this.description != null &&
                this.description.equals(other.getDescription()))) &&
                ((this.id == null && other.getId() == null) ||
                (this.id != null &&
                this.id.equals(other.getId()))) &&
                ((this.name == null && other.getName() == null) ||
                (this.name != null &&
                this.name.equals(other.getName())));
        __equalsCalc = null;
        return _equals;
    }
View Full Code Here

Examples of com.p6spy.engine.logging.Category

    } else if (type.isAssignableFrom(Collection.class) || type.isAssignableFrom(List.class)) {
      throw new IllegalArgumentException("type not supported:" + type.getName());
    } else if (type.isAssignableFrom(Pattern.class)) {
      return Pattern.compile(value.toString());
    } else if (type.isAssignableFrom(Category.class)) {
      return new Category(value.toString());
    } else {
//    if (type.isEnum()) {
//        // is sufficient for our use case where toString returns enum name
//        for (T enumConstant : type.getEnumConstants()) {
//           if (enumConstant.toString().equalsIgnoreCase(value.toString())) {
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.