hoplugins.transfers.dao
Class TransfersDAO

java.lang.Object
  extended byhoplugins.transfers.dao.TransfersDAO

public final class TransfersDAO
extends java.lang.Object

DAO to store and retrieve transfers in the HO database.

Author:
Boy van der Werf

Method Summary
static java.util.List getTransfers(int playerid, boolean allTransfers)
          Gets a list of transfers.
static java.util.List getTransfers(int season, boolean bought, boolean sold)
          Gets a list of transfers for your own team.
static java.util.List getTransfers(int teamid, int season, boolean bought, boolean sold)
          Gets a list of transfers.
static void reloadTeamTransfers(int teamid)
          Reload transfer data for a team from the HT xml.
static void updatePlayerTransfers(int playerId)
          Update transfer data for a player.
static void updateTeamTransfers(int teamid)
          Update transfer data for a team from the HT xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTransfers

public static java.util.List getTransfers(int playerid,
                                          boolean allTransfers)
Gets a list of transfers.

Parameters:
playerid - Player id for selecting transfers.
allTransfers - If false this method will only return transfers for your own team, otherwise it will return all transfers for the player.
Returns:
List of transfers.

getTransfers

public static java.util.List getTransfers(int season,
                                          boolean bought,
                                          boolean sold)
Gets a list of transfers for your own team.

Parameters:
season - Season number for selecting transfers.
bought - true to include BUY transfers.
sold - true to include SELL transfers.
Returns:
List of transfers.

getTransfers

public static java.util.List getTransfers(int teamid,
                                          int season,
                                          boolean bought,
                                          boolean sold)
Gets a list of transfers.

Parameters:
teamid - Team id to select transfers for.
season - Season number for selecting transfers.
bought - true to include BUY transfers.
sold - true to include SELL transfers.
Returns:
List of transfers.

reloadTeamTransfers

public static void reloadTeamTransfers(int teamid)
                                throws java.lang.Exception
Reload transfer data for a team from the HT xml.

Parameters:
teamid - Team id to reload data for
Throws:
java.lang.Exception - If an error occurs.

updatePlayerTransfers

public static void updatePlayerTransfers(int playerId)
Update transfer data for a player.

Parameters:
playerId - Player

updateTeamTransfers

public static void updateTeamTransfers(int teamid)
Update transfer data for a team from the HT xml.

Parameters:
teamid - Team id to update data for


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