| net.jforum.dao.CategoryDAO
All known Subclasses: net.jforum.repository.CategoryModelDummy, net.jforum.dao.generic.GenericCategoryDAO,
CategoryDAO | public interface CategoryDAO (Code) | | Model interface for
net.jforum.entities.Category .
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: CategoryDAO.java,v 1.6 2006/08/23 02:13:34 rafaelsteil Exp $ |
addNew | public int addNew(Category category)(Code) | | Adds a new category.
Parameters: category - Reference to a valid and configured Category object int |
canDelete | public boolean canDelete(int categoryId)(Code) | | Checks if is possible to delete a specific category.
Parameters: categoryId - The category ID to verify true if is possible to delete, false if not See Also: CategoryDAO.delete(int) |
selectById | public Category selectById(int categoryId)(Code) | | Gets a specific Category .
Parameters: categoryId - The Category ID to search Category object containing all the information See Also: CategoryDAO.selectAll |
update | public void update(Category category)(Code) | | Updates a category.
Parameters: category - Reference to a Category object to update |
|
|