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 PostDAO { 52 53 public static final String TABLE_NAME = "mvnforumPost"; 54 55 public void findByPrimaryKey(int postID) 56 throws ObjectNotFoundException, DatabaseException; 57 58 public void create(int postID, int parentPostID, int forumID, 59 int threadID, int memberID, String memberName, 60 String lastEditMemberName, String postTopic, String postBody, 61 Timestamp postCreationDate, Timestamp postLastEditDate, String postCreationIP, 62 String postLastEditIP, int postEditCount, int postFormatOption, 63 int postOption, int postStatus, String postIcon, 64 int postAttachCount) 65 throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException ; 66 67 public void createMultiple(Collection beans); 68 69 } 70 | Popular Tags |