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 GroupPermissionDAO { 51 52 public static final String TABLE_NAME = DatabaseConfig.TABLE_PREFIX + "GroupPermission"; 53 54 public void findByPrimaryKey(int groupID, int permission) 55 throws ObjectNotFoundException, DatabaseException; 56 57 public void create(int groupID, int permission) 58 throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException; 59 60 public void delete(int groupID, int permission) 61 throws DatabaseException, ObjectNotFoundException; 62 63 public void delete_inGroup(int groupID) 64 throws DatabaseException; 65 66 public Collection getBeans_inGroup(int groupID) 67 throws DatabaseException; 68 69 public Collection getDistinctGroups() 70 throws DatabaseException; 71 } 72 | Popular Tags |