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.ForeignKeyNotFoundException; 49 import net.myvietnam.mvncore.exception.ObjectNotFoundException; 50 51 public interface ThreadDAO { 52 53 public static final String TABLE_NAME = "mvnforumThread"; 54 55 public void findByPrimaryKey(int threadID) 56 throws ObjectNotFoundException, DatabaseException; 57 58 public int createThread(int ThreadID, int forumID, String memberName, String lastPostMemberName, 59 String threadTopic, String threadBody, int threadVoteCount, 60 int threadVoteTotalStars, Timestamp threadCreationDate, Timestamp threadLastPostDate, 61 int threadType, int threadOption, int threadStatus, 62 int threadHasPoll, int threadViewCount, int threadReplyCount, 63 String threadIcon, int threadDuration, int threadAttachCount ) 64 throws ObjectNotFoundException, CreateException, DatabaseException, ForeignKeyNotFoundException, DuplicateKeyException; 65 66 public void createMultiple(Collection beans) ; 67 68 69 } 70 | Popular Tags |