1 40 package com.mvnforum.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 import net.myvietnam.mvncore.exception.ForeignKeyNotFoundException; 50 import net.myvietnam.mvncore.exception.AssertionException; 51 52 public interface MessageFolderDAO { 53 54 public static final String TABLE_NAME = DatabaseConfig.TABLE_PREFIX + "MessageFolder"; 55 56 public void findByPrimaryKey(String folderName, int memberID) 57 throws ObjectNotFoundException, DatabaseException; 58 59 public void create(String folderName, int memberID, int folderOrder, 60 int folderStatus, int folderOption, int folderType, 61 Timestamp folderCreationDate, Timestamp folderModifiedDate) 62 throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException; 63 64 public void delete(String folderName, int memberID) 65 throws DatabaseException, ObjectNotFoundException; 66 67 public MessageFolderBean getMessageFolder(String folderName, int memberID) 68 throws ObjectNotFoundException, DatabaseException; 69 70 public Collection getMessageFolders_inMember(int memberID) 71 throws DatabaseException; 72 73 public int getMaxFolderOrder(int memberID) 74 throws DatabaseException, AssertionException; 75 76 public void increaseFolderOrder(String folderName, int memberID, Timestamp folderModifiedDate) 78 throws ObjectNotFoundException, DatabaseException; 79 80 public void decreaseFolderOrder(String folderName, int memberID, Timestamp folderModifiedDate) 82 throws ObjectNotFoundException, DatabaseException; 83 } 84 | Popular Tags |