hoplugins.teamAnalyzer.dao
Class FavoritesDAO

java.lang.Object
  extended byhoplugins.teamAnalyzer.dao.FavoritesDAO

public class FavoritesDAO
extends java.lang.Object

DB Access Manager for Favourite Teams

Author:
Massimiliano Amato

Constructor Summary
FavoritesDAO()
          Creates a new FavoritesDAO object.
 
Method Summary
 void addTeam(Team team)
          Add a new Favourite team
 java.util.List getTeams()
          Returns all favourite teams
 boolean isFavourite(int teamId)
          check if a team is a favourite team
 void removeTeam(int teamId)
          Remove a Favourite team
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoritesDAO

public FavoritesDAO()
Creates a new FavoritesDAO object.

Method Detail

isFavourite

public boolean isFavourite(int teamId)
check if a team is a favourite team

Parameters:
teamId -
Returns:
true if team is a favourite

getTeams

public java.util.List getTeams()
Returns all favourite teams

Returns:
List of Teams Object

addTeam

public void addTeam(Team team)
Add a new Favourite team

Parameters:
team - the new favourite team

removeTeam

public void removeTeam(int teamId)
Remove a Favourite team

Parameters:
teamId - the favourite team to be removed


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.