de.hattrickorganizer.model
Class HOMiniModel

java.lang.Object
  extended by de.hattrickorganizer.model.HOMiniModel
All Implemented Interfaces:
IHOMiniModel

public class HOMiniModel
extends java.lang.Object
implements IHOMiniModel

Die Klasse bündelt alle anderen Model, die zu einer HRF Datei gehören. Die Daten können natürlich auch aus der Datenbank kommen


Method Summary
 ISpieler createPlayer(IPlayerData data)
          Creates a ISpieler instance for external use
 void deleteHRF(int hrfid)
          TODO Missing Method Documentation
 IJDBCAdapter getAdapter()
          Getter for property m_clDBAdapter.
 java.util.Vector getAllOldSpieler()
          Gibt alle alte Spieler zurück
 java.util.Vector getAllSpieler()
          Gibt alle Spieler zurück
 IBasics getBasics()
          Gibt die Basics zurück
 java.util.List getDataUsefullMatches(java.util.Date startingDate, java.util.Date startingDateForFriendlies)
          List of useful data for export
 IDBAdapter getDBAdapter()
          Get the the IDBAdapter instance
 java.util.Vector getDBManualTrainingsVector()
          TODO Missing Method Documentation
 IDownloadHelper getDownloadHelper()
          Getter for property m_lcDownloadHelper.
 IEPV getEPV()
          TODO Missing Method Documentation
 IFinanzen getFinanzen()
          Gibt die Finanzen zurück
 IFutureTrainingManager getFutureTrainingManager(ISpieler p, java.util.List trainings, int cotrainer, int keeper, int trainerLvl)
          gets IFutureTrainingManager
 java.util.List getFutureTrainingWeeks()
          gets future Trainingsweeks from DB
 IGUI getGUI()
          TODO Missing Method Documentation
 IHelper getHelper()
          Getter for property m_clHelper.
 IHOFriendlyManager getHOFriendlyManager()
          TODO Missing Method Documentation
 double getHOVersion()
          TODO Missing Method Documentation
 ILiga getLiga()
          Gibt die Basics zurück
 ILineUp getLineUP()
          TODO Missing Method Documentation
 IMatchDetails getMatchDetails(int matchId)
          Gibt die MatchDetails zu einem Match zurück
 IMatchKurzInfo[] getMatchesKurzInfo(int teamId)
          holt die MAtches zu einem Team aus der DB
 IMatchKurzInfo[] getMatchesKurzInfo(int teamId, int matchtyp, boolean asc)
          Wichtig: Wenn die Teamid = -1 ist muss der Matchtyp ALLE_SPIELE sein!
 IMatchLineup getMatchLineup(int matchID)
          gets lineup to a specified match
 IMatchPredictionManager getMatchPredictionManager()
          TODO Missing Method Documentation
 java.util.Properties getResource()
          Getter for property m_clResource.
 ISpieler getSpieler(int id)
          Gibt den Spieler mit der ID zurück
 ISpieler getSpielerAtDate(int spielerid, java.sql.Timestamp time)
          Fetches players data to a given time
 ISpielplan[] getSpielplaene()
          get ALL League Fixtures stored in DB
 ISpielplan getSpielplan(int ligaId, int saison)
          get League Fixtures for specified league and season
 IStadium getStadium()
          Gibt das Stadium zurück
 ITeam getTeam()
          Gibt das Team zurück
 ISpieler getTrainer()
          Gibt den Trainer zurück
 ITrainingsManager getTrainingsManager()
          gets ITrainingsManager
 UserParameter getUserSettings()
          Getter for property m_clUserSettings.
 IVerein getVerein()
          Gibt den Verein zurück
 IXMLParser getXMLParser()
          Getter for property m_clXMLParser.
 IXtraData getXtraDaten()
          TODO Missing Method Documentation
static HOMiniModel instance()
          TODO Missing Method Documentation
 void saveFutureTraining(IFutureTrainingWeek training)
          stores FutureTrainingWeek in database
 void saveTraining(ITrainingWeek training)
          TODO Missing Method Documentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static HOMiniModel instance()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

getAdapter

public IJDBCAdapter getAdapter()
Getter for property m_clDBAdapter.

Specified by:
getAdapter in interface IHOMiniModel
Returns:
Value of property m_clDBAdapter.

getDBAdapter

public IDBAdapter getDBAdapter()
Get the the IDBAdapter instance

Specified by:
getDBAdapter in interface IHOMiniModel
Returns:
a valid IDBAdapter instance

getAllOldSpieler

public java.util.Vector getAllOldSpieler()
Gibt alle alte Spieler zurück

Specified by:
getAllOldSpieler in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getAllSpieler

public java.util.Vector getAllSpieler()
Gibt alle Spieler zurück

Specified by:
getAllSpieler in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getBasics

public IBasics getBasics()
Gibt die Basics zurück

Specified by:
getBasics in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getDBManualTrainingsVector

public java.util.Vector getDBManualTrainingsVector()
TODO Missing Method Documentation

Specified by:
getDBManualTrainingsVector in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getDownloadHelper

public IDownloadHelper getDownloadHelper()
Getter for property m_lcDownloadHelper.

Specified by:
getDownloadHelper in interface IHOMiniModel
Returns:
Value of property m_lcDownloadHelper.

getEPV

public IEPV getEPV()
TODO Missing Method Documentation

Specified by:
getEPV in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getFinanzen

public IFinanzen getFinanzen()
Gibt die Finanzen zurück

Specified by:
getFinanzen in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getGUI

public IGUI getGUI()
TODO Missing Method Documentation

Specified by:
getGUI in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getHOFriendlyManager

public IHOFriendlyManager getHOFriendlyManager()
TODO Missing Method Documentation

Specified by:
getHOFriendlyManager in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getHOVersion

public double getHOVersion()
TODO Missing Method Documentation

Specified by:
getHOVersion in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getHelper

public IHelper getHelper()
Getter for property m_clHelper.

Specified by:
getHelper in interface IHOMiniModel
Returns:
Value of property m_clHelper.

getLiga

public ILiga getLiga()
Gibt die Basics zurück

Specified by:
getLiga in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getLineUP

public ILineUp getLineUP()
TODO Missing Method Documentation

Specified by:
getLineUP in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getMatchDetails

public IMatchDetails getMatchDetails(int matchId)
Gibt die MatchDetails zu einem Match zurück

Specified by:
getMatchDetails in interface IHOMiniModel
Parameters:
matchId - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getMatchLineup

public IMatchLineup getMatchLineup(int matchID)
gets lineup to a specified match

Specified by:
getMatchLineup in interface IHOMiniModel
Parameters:
matchID - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getMatchPredictionManager

public IMatchPredictionManager getMatchPredictionManager()
TODO Missing Method Documentation

Specified by:
getMatchPredictionManager in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getMatchesKurzInfo

public IMatchKurzInfo[] getMatchesKurzInfo(int teamId)
holt die MAtches zu einem Team aus der DB

Specified by:
getMatchesKurzInfo in interface IHOMiniModel
Parameters:
teamId - Die Teamid oder -1 für alle
Returns:
TODO Missing Return Method Documentation

getMatchesKurzInfo

public IMatchKurzInfo[] getMatchesKurzInfo(int teamId,
                                           int matchtyp,
                                           boolean asc)
Wichtig: Wenn die Teamid = -1 ist muss der Matchtyp ALLE_SPIELE sein!

Specified by:
getMatchesKurzInfo in interface IHOMiniModel
Parameters:
teamId - Die Teamid oder -1 für alle
matchtyp - Const in ISpielePanel!
asc - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getResource

public java.util.Properties getResource()
Getter for property m_clResource.

Specified by:
getResource in interface IHOMiniModel
Returns:
Value of property m_clResource. usage minimodel.getResource().getProperty("Download") to get Name for download in current language

getSpieler

public ISpieler getSpieler(int id)
Gibt den Spieler mit der ID zurück

Specified by:
getSpieler in interface IHOMiniModel
Parameters:
id - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getSpielerAtDate

public ISpieler getSpielerAtDate(int spielerid,
                                 java.sql.Timestamp time)
Fetches players data to a given time

Specified by:
getSpielerAtDate in interface IHOMiniModel
Parameters:
spielerid - ID of player
time - timestamp to use
Returns:
ISpieler containing data to player

getSpielplaene

public ISpielplan[] getSpielplaene()
get ALL League Fixtures stored in DB

Specified by:
getSpielplaene in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getSpielplan

public ISpielplan getSpielplan(int ligaId,
                               int saison)
get League Fixtures for specified league and season

Specified by:
getSpielplan in interface IHOMiniModel
Parameters:
ligaId - LeagueLevelUnitID -> XtraData
saison - Season If both params are set to -1 latestet downloaded league Fixtures is fetched. This must not be the actual one! that can be a former season or a league not of user Team , just the latest downloaded by User!
Returns:
TODO Missing Return Method Documentation

getStadium

public IStadium getStadium()
Gibt das Stadium zurück

Specified by:
getStadium in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getTeam

public ITeam getTeam()
Gibt das Team zurück

Specified by:
getTeam in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getTrainer

public ISpieler getTrainer()
Gibt den Trainer zurück

Specified by:
getTrainer in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getTrainingsManager

public ITrainingsManager getTrainingsManager()
gets ITrainingsManager

Specified by:
getTrainingsManager in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getUserSettings

public UserParameter getUserSettings()
Getter for property m_clUserSettings.

Specified by:
getUserSettings in interface IHOMiniModel
Returns:
Value of property m_clUserSettings.

getVerein

public IVerein getVerein()
Gibt den Verein zurück

Specified by:
getVerein in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getXMLParser

public IXMLParser getXMLParser()
Getter for property m_clXMLParser.

Specified by:
getXMLParser in interface IHOMiniModel
Returns:
Value of property m_clXMLParser.

getXtraDaten

public IXtraData getXtraDaten()
TODO Missing Method Documentation

Specified by:
getXtraDaten in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

deleteHRF

public void deleteHRF(int hrfid)
TODO Missing Method Documentation

Specified by:
deleteHRF in interface IHOMiniModel
Parameters:
hrfid - TODO Missing Method Parameter Documentation

saveTraining

public void saveTraining(ITrainingWeek training)
TODO Missing Method Documentation

Specified by:
saveTraining in interface IHOMiniModel
Parameters:
training - TODO Missing Method Parameter Documentation

getFutureTrainingManager

public IFutureTrainingManager getFutureTrainingManager(ISpieler p,
                                                       java.util.List trainings,
                                                       int cotrainer,
                                                       int keeper,
                                                       int trainerLvl)
Description copied from interface: IHOMiniModel
gets IFutureTrainingManager

Specified by:
getFutureTrainingManager in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

getFutureTrainingWeeks

public java.util.List getFutureTrainingWeeks()
Description copied from interface: IHOMiniModel
gets future Trainingsweeks from DB

Specified by:
getFutureTrainingWeeks in interface IHOMiniModel
Returns:
TODO Missing Return Method Documentation

saveFutureTraining

public void saveFutureTraining(IFutureTrainingWeek training)
Description copied from interface: IHOMiniModel
stores FutureTrainingWeek in database

Specified by:
saveFutureTraining in interface IHOMiniModel
Parameters:
training - TODO Missing Constructuor Parameter Documentation

createPlayer

public ISpieler createPlayer(IPlayerData data)
Description copied from interface: IHOMiniModel
Creates a ISpieler instance for external use

Specified by:
createPlayer in interface IHOMiniModel
Parameters:
data - player data to be created
Returns:
Spieler instance

getDataUsefullMatches

public java.util.List getDataUsefullMatches(java.util.Date startingDate,
                                            java.util.Date startingDateForFriendlies)
List of useful data for export

Specified by:
getDataUsefullMatches in interface IHOMiniModel
Parameters:
startingDate - starting data to export from (for non friendlies)
startingDateForFriendlies - starting data to export from (for friendlies)
Returns:
List of ExportMatchData objects