hoplugins.transfers.vo
Class PlayerTransfer

java.lang.Object
  extended byhoplugins.transfers.vo.PlayerTransfer

public class PlayerTransfer
extends java.lang.Object

Value Object representing a player transfer.

Author:
Boy van der Werf

Field Summary
static int BUY
          Type to indicate a BUY transfer
static int REBOUGHT
          Type to indicate a SELL transfer
static int SELL
          Type to indicate a SELL transfer
 
Constructor Summary
PlayerTransfer(int transferid, int playerid)
          Creates an instance of PlayerTransfer representing a player transfer.
 
Method Summary
 int getBuyerid()
          Gets the id of the buyer team.
 java.lang.String getBuyerName()
          Gets the name of the buyer team.
 java.sql.Timestamp getDate()
          Gets the transfer date
 int getMarketvalue()
          Gets the market value of the player on transfer date.
 int getPlayerId()
          Gets the id of the transfered player.
 plugins.ISpieler getPlayerInfo()
          Gets the information about the player on transfer date.
 java.lang.String getPlayerName()
          Gets the name of the transfered player.
 int getPrice()
          Gets the tranfer price.
 int getSeason()
          Gets the season number.
 int getSellerid()
          Gets the id of the seller team.
 java.lang.String getSellerName()
          Gets the name of the seller team.
 int getTransferID()
          Gets the id of the transfer.
 int getTsi()
          Gets the TSI value when player was tranfered.
 int getType()
          Gets the transfer type.
 int getWeek()
          Gets the week number.
 void setBuyerid(int id)
          Sets the id of the buyer team.
 void setBuyerName(java.lang.String name)
          Sets the name of the buyer team.
 void setDate(java.sql.Timestamp date)
          Sets the transfer date
 void setMarketvalue(int value)
          Sets the market value of the player on transfer date.
 void setPlayerInfo(plugins.ISpieler info)
          Sets the information about the player on transfer date.
 void setPlayerName(java.lang.String name)
          Sets the name of the transfered player.
 void setPrice(int price)
          Sets the transfer price.
 void setSeason(int season)
          Gets the season number.
 void setSellerid(int id)
          Sets the id of the seller team.
 void setSellerName(java.lang.String name)
          Sets the name of the seller team.
 void setTsi(int tsi)
          Sets the TSI value when player was tranfered.
 void setWeek(int week)
          Gets the week number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUY

public static final int BUY
Type to indicate a BUY transfer

See Also:
Constant Field Values

SELL

public static final int SELL
Type to indicate a SELL transfer

See Also:
Constant Field Values

REBOUGHT

public static final int REBOUGHT
Type to indicate a SELL transfer

See Also:
Constant Field Values
Constructor Detail

PlayerTransfer

public PlayerTransfer(int transferid,
                      int playerid)
Creates an instance of PlayerTransfer representing a player transfer.

Parameters:
transferid - Id of the transfer
playerid - Id of the transferred player
Method Detail

setBuyerName

public final void setBuyerName(java.lang.String name)
Sets the name of the buyer team.

Parameters:
name - name of the buyer team

getBuyerName

public final java.lang.String getBuyerName()
Gets the name of the buyer team.

Returns:
Name of the buyer team

setBuyerid

public final void setBuyerid(int id)
Sets the id of the buyer team.

Parameters:
id - Id of the buyer team

getBuyerid

public final int getBuyerid()
Gets the id of the buyer team.

Returns:
Id of the buyer team

setDate

public final void setDate(java.sql.Timestamp date)
Sets the transfer date

Parameters:
date - Transfer date

getDate

public final java.sql.Timestamp getDate()
Gets the transfer date

Returns:
Transfer date

setMarketvalue

public final void setMarketvalue(int value)
Sets the market value of the player on transfer date.

Parameters:
value - Market value of the player on transfer date.

getMarketvalue

public final int getMarketvalue()
Gets the market value of the player on transfer date.

Returns:
Market value of the player on transfer date.

getPlayerId

public final int getPlayerId()
Gets the id of the transfered player.

Returns:
Id of the transfered player.

setPlayerInfo

public final void setPlayerInfo(plugins.ISpieler info)
Sets the information about the player on transfer date.

Parameters:
info - Player information on transfer date.

getPlayerInfo

public final plugins.ISpieler getPlayerInfo()
Gets the information about the player on transfer date.

Returns:
Playerinformation if available. else null

setPlayerName

public final void setPlayerName(java.lang.String name)
Sets the name of the transfered player.

Parameters:
name - Name of the transfered player.

getPlayerName

public final java.lang.String getPlayerName()
Gets the name of the transfered player.

Returns:
Name of the transfered player.

setPrice

public final void setPrice(int price)
Sets the transfer price.

Parameters:
price - Transfer price.

getPrice

public final int getPrice()
Gets the tranfer price.

Returns:
Transfer price

setSeason

public final void setSeason(int season)
Gets the season number.

Parameters:
season - number on transfer date

getSeason

public final int getSeason()
Gets the season number.

Returns:
Season number on transfer date

setSellerName

public final void setSellerName(java.lang.String name)
Sets the name of the seller team.

Parameters:
name - Name of the seller team.

getSellerName

public final java.lang.String getSellerName()
Gets the name of the seller team.

Returns:
Name of the seller team.

setSellerid

public final void setSellerid(int id)
Sets the id of the seller team.

Parameters:
id - Id of the seller team.

getSellerid

public final int getSellerid()
Gets the id of the seller team.

Returns:
Id of the seller team.

getTransferID

public final int getTransferID()
Gets the id of the transfer.

Returns:
Id of the transfer

setTsi

public final void setTsi(int tsi)
Sets the TSI value when player was tranfered.

Parameters:
tsi - TSI value on transfer date.

getTsi

public final int getTsi()
Gets the TSI value when player was tranfered.

Returns:
TSI value on transfer date

getType

public final int getType()
Gets the transfer type.

Returns:
Type

setWeek

public final void setWeek(int week)
Gets the week number.

Parameters:
week - number on transfer date

getWeek

public final int getWeek()
Gets the week number.

Returns:
Week number on transfer date


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