1 40 package com.mvnforum.db; 41 42 import java.util.Collection ; 43 44 import net.myvietnam.mvncore.exception.CreateException; 45 import net.myvietnam.mvncore.exception.DatabaseException; 46 import net.myvietnam.mvncore.exception.DuplicateKeyException; 47 import net.myvietnam.mvncore.exception.ObjectNotFoundException; 48 import net.myvietnam.mvncore.exception.ForeignKeyNotFoundException; 49 50 public interface MemberPermissionDAO { 51 52 public static final String TABLE_NAME = DatabaseConfig.TABLE_PREFIX + "MemberPermission"; 53 54 public void findByPrimaryKey(int memberID, int permission) 55 throws ObjectNotFoundException, DatabaseException; 56 57 public void create(int memberID, int permission) 58 throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException; 59 60 public void delete(int memberID, int permission) 61 throws DatabaseException, ObjectNotFoundException; 62 63 public void delete_inMember(int memberID) 64 throws DatabaseException; 65 66 public Collection getBeans_inMember(int memberID) 67 throws DatabaseException; 68 } 69 | Popular Tags |