1 43 package net.jforum.dao; 44 45 import java.util.List ; 46 47 import net.jforum.entities.Category; 48 49 59 public interface CategoryDAO 60 { 61 69 public Category selectById(int categoryId) throws Exception ; 70 71 78 public List selectAll() throws Exception ; 79 80 88 public boolean canDelete(int categoryId) throws Exception ; 89 90 97 public void delete(int categoryId) throws Exception ; 98 99 106 public void update(Category category) throws Exception ; 107 108 114 public int addNew(Category category) throws Exception ; 115 116 127 public void setOrderUp(Category category, Category otherCategory) throws Exception ; 128 129 140 public void setOrderDown(Category category, Category otherCategory) throws Exception ; 141 } 142 | Popular Tags |