plugins
Interface IDBAdapter

All Known Implementing Classes:
DBAdapter

public interface IDBAdapter

Interface to make some basic DBZugriff functions accessible for plugins.

Author:
aik

Method Summary
 int getHrfIDSameTraining(java.sql.Timestamp time)
          Returns an HRF before the matchData and after previous TrainingTime.
 ITeam getTeam(int hrfID)
          Returns the Team object for the given hrf dataset
 int getTrainerType(int hrfID)
          Returns the trainer code for the specified hrf.
 

Method Detail

getHrfIDSameTraining

int getHrfIDSameTraining(java.sql.Timestamp time)
Returns an HRF before the matchData and after previous TrainingTime.

Parameters:
timestamp - matchData
Returns:
the ID of the HRF dataset

getTeam

ITeam getTeam(int hrfID)
Returns the Team object for the given hrf dataset

Parameters:
hrfID - HRF for which to load Team
Returns:
the team information for to the given hrf id

getTrainerType

int getTrainerType(int hrfID)
Returns the trainer code for the specified hrf. -99 if error

Parameters:
hrfID - HRF for which to load TrainerType
Returns:
constant for the trainer type