| net.jforum.dao.GroupDAO
All known Subclasses: net.jforum.dao.generic.GenericGroupDAO,
GroupDAO | public interface GroupDAO (Code) | | Model interface for
net.jforum.entities.Group .
This interface defines methods which are expected to be
implementd by a specific data access driver. The intention is
to provide all functionality needed to update, insert, delete and
select some specific data.
author: Rafael Steil version: $Id: GroupDAO.java,v 1.6 2006/08/23 02:13:34 rafaelsteil Exp $ |
addNew | public void addNew(Group group)(Code) | | Adds a new group.
Parameters: group - Reference to a valid and configured Group object |
canDelete | public boolean canDelete(int groupId)(Code) | | Checks if is possible to delete a specific group.
Parameters: groupId - The group ID to verify true if is possible to delete, false if not See Also: GroupDAO.delete(int) |
selectAll | public List selectAll()(Code) | | Get all groups
ArrayList containing the groups. Each entryis an Group object. |
selectById | public Group selectById(int groupId)(Code) | | Gets a specific Group .
Parameters: groupId - The Group ID to search Group object containing all the information See Also: GroupDAO.selectAll |
selectUsersIds | public List selectUsersIds(int groupId)(Code) | | Select the users associated to some group;
ArrayList with the user ids Parameters: groupId - int |
update | public void update(Group group)(Code) | | Updates a group.
Parameters: group - Reference to a Group object to update |
|
|