| net.jforum.dao.BannerDAO
All known Subclasses: net.jforum.dao.generic.GenericBannerDAO,
BannerDAO | public interface BannerDAO (Code) | | Model interface for
net.jforum.entities.Banner .
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: Samuel Yung version: $Id: BannerDAO.java,v 1.6 2006/08/23 02:13:34 rafaelsteil Exp $ |
addNew | public int addNew(Banner banner)(Code) | | Adds a new banner.
Parameters: banner - Reference to a valid and configured Banner object int |
canDelete | public boolean canDelete(int bannerId)(Code) | | Checks if is possible to delete a specific banner.
Parameters: bannerId - The banner ID to verify true if is possible to delete, false if not See Also: BannerDAO.delete(int) |
delete | public void delete(int bannerId)(Code) | | Delete a banner.
Parameters: bannerId - The banner ID to delete |
selectActiveBannerByPlacement | public List selectActiveBannerByPlacement(int placement)(Code) | | Select a list of active banners by its placement.
Parameters: placement - The placement number List |
selectById | public Banner selectById(int bannerId)(Code) | | Gets a specific Banner .
Parameters: bannerId - The Banner ID to search Banner object containing all the information See Also: BannerDAO.selectAll |
update | public void update(Banner banner)(Code) | | Updates a banner.
Parameters: banner - Reference to a Banner object to update |
|
|