1 package org.mvnforum.phpbb2mvnforum.db; 2 3 import java.sql.Timestamp ; 4 5 import net.myvietnam.mvncore.exception.CreateException; 6 import net.myvietnam.mvncore.exception.DatabaseException; 7 import net.myvietnam.mvncore.exception.DuplicateKeyException; 8 import net.myvietnam.mvncore.exception.ObjectNotFoundException; 9 10 public interface MessageDAO { 11 12 public static String TABLE_NAME = "mvnforumMessage"; 13 14 public void findByPrimaryKey(int messageID) 15 throws ObjectNotFoundException, DatabaseException ; 16 17 public int create(String folderName, int memberID, 18 int messageSenderID, String messageSenderName, String messageToList, 19 String messageCcList, String messageBccList, String messageTopic, 20 String messageBody, int messageType, int messageOption, 21 int messageStatus, int messageReadStatus, int messageNotify, 22 String messageIcon, int messageAttachCount, String messageIP, 23 Timestamp messageCreationDate) 24 throws CreateException, DatabaseException, DuplicateKeyException; 25 26 } 27 | Popular Tags |