1 40 package org.mvnforum.phpbb2mvnforum.db; 41 42 import java.sql.Timestamp ; 43 import java.util.Collection ; 44 45 import net.myvietnam.mvncore.exception.CreateException; 46 import net.myvietnam.mvncore.exception.DatabaseException; 47 import net.myvietnam.mvncore.exception.DuplicateKeyException; 48 import net.myvietnam.mvncore.exception.ObjectNotFoundException; 49 50 public interface CategoryDAO { 51 52 public static final String TABLE_NAME = "mvnforumCategory"; 53 54 public void findByPrimaryKey(int categoryID) 55 throws ObjectNotFoundException, DatabaseException; 56 57 public void findByAlternateKey_CategoryName(String categoryName) 58 throws ObjectNotFoundException, DatabaseException; 59 60 public void create(int categoryID, int parentCategoryID, String categoryName, 61 String categoryDesc, Timestamp categoryCreationDate, Timestamp categoryModifiedDate, 62 int categoryOrder, int categoryOption, int categoryStatus) 63 throws CreateException, DatabaseException, DuplicateKeyException ; 64 65 public void createMultiple(Collection beans) ; 66 67 } 68 | Popular Tags |