1 package org.javabb.dao.entity; 2 3 import java.util.List ; 4 5 import org.javabb.dao.DAOConstants; 6 import org.javabb.vh.Stats; 7 import org.javabb.vo.Category; 8 9 24 25 30 public interface ICategoryDAO extends DAOConstants { 31 32 33 public static final int ID = 1; 34 35 public static final int SORTING_POSITION = 2; 36 37 public static final int NAME = 3; 38 39 42 public int countAllPosts(); 43 44 47 public int countAllTopics(); 48 49 52 public int countAllUsers(); 53 54 57 public Stats getStatistics(); 58 59 63 public Category load(Long categoryId); 64 65 69 public List findAll(int[] orderingFields); 70 71 public Category insertCategory(Category cat); 72 public Category getLastCattegoryByOrder(); 73 public void deleteCategory(Category cat); 74 75 } 76 | Popular Tags |