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 ForumDAO { 51 52 public static final String TABLE_NAME = "mvnforumForum"; 53 54 public void findByPrimaryKey(int forumID) 55 throws ObjectNotFoundException, DatabaseException; 56 57 public void findByAlternateKey_ForumName_CategoryID(String forumName, int categoryID) 58 throws ObjectNotFoundException, DatabaseException; 59 60 public void create(int forumID, int categoryID, String lastPostMemberName, 61 String forumName, String forumDesc, Timestamp forumCreationDate, 62 Timestamp forumModifiedDate, Timestamp forumLastPostDate, int forumOrder, 63 int forumType, int forumFormatOption, int forumOption, 64 int forumStatus, int forumModerationMode, String forumPassword, 65 int forumThreadCount, int forumPostCount) 66 throws CreateException, DatabaseException, DuplicateKeyException ; 67 68 public void createMultiple(Collection beans); 69 70 } 71 72 73 | Popular Tags |