1 41 package com.mvnforum.db; 42 43 import java.util.Collection ; 44 45 import net.myvietnam.mvncore.exception.AssertionException; 46 import net.myvietnam.mvncore.exception.CreateException; 47 import net.myvietnam.mvncore.exception.DatabaseException; 48 import net.myvietnam.mvncore.exception.DuplicateKeyException; 49 import net.myvietnam.mvncore.exception.ObjectNotFoundException; 50 import net.myvietnam.mvncore.exception.ForeignKeyNotFoundException; 51 52 public interface PmAttachMessageDAO { 53 54 public static final String TABLE_NAME = DatabaseConfig.TABLE_PREFIX + "PmAttachMessage"; 55 56 public void findByPrimaryKey(int messageID, int pmAttachID) 57 throws ObjectNotFoundException, DatabaseException; 58 59 public void create(int messageID, int pmAttachID, int relationType, 60 int relationOption, int relationStatus) 61 throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException; 62 63 public void delete(int messageID, int pmAttachID) 64 throws DatabaseException, ObjectNotFoundException; 65 66 public void delete_inMessage(int messageID) 67 throws DatabaseException; 68 69 public Collection getBeans_inMessage(int messageID) 70 throws DatabaseException; 71 72 public Collection getBeans_inPmAttach(int pmAttachID) 73 throws DatabaseException; 74 75 public int getNumberOfBeans_inMessage(int messageID) 76 throws AssertionException, DatabaseException; 77 78 public int getNumberOfBeans_inPmAttach(int pmAttachID) 79 throws AssertionException, DatabaseException; 80 81 } 82 | Popular Tags |