de.hattrickorganizer.database
Class MatchLineupPlayerTable

java.lang.Object
  extended by de.hattrickorganizer.database.MatchLineupPlayerTable

public final class MatchLineupPlayerTable
extends java.lang.Object


Field Summary
protected  JDBCAdapter adapter
          Database connection
protected  de.hattrickorganizer.database.ColumnDescriptor[] columns
          describes a tableColumn (name, datatype, nullable ..)
static java.lang.String TABLENAME
          tablename
 
Constructor Summary
protected MatchLineupPlayerTable(JDBCAdapter adapter)
           
 
Method Summary
 void createTable()
           
protected  int delete(java.lang.String[] whereColumns, java.lang.String[] whereValues)
           
protected  void dropTable()
          Drop the current table
 java.util.Vector getAlleBewertungen(int spielerid)
          Gibt eine Liste an Ratings zurück, auf denen der Spieler gespielt hat: 0 = Max 1 = Min 2 = Durchschnitt 3 = posid
 float[] getBewertungen4Player(int spielerid)
          Gibt die beste, schlechteste und durchschnittliche Bewertung für den Spieler, sowie die Anzahl der Bewertungen zurück // Match
 float[] getBewertungen4PlayerUndPosition(int spielerid, byte position)
          Gibt die beste, schlechteste und durchschnittliche Bewertung für den Spieler, sowie die Anzahl der Bewertungen zurück // Match
protected  de.hattrickorganizer.database.ColumnDescriptor[] getColumns()
           
protected  java.lang.String[] getCreateIndizeStatements()
           
 java.util.Vector getMatchLineupPlayers(int matchID, int teamID)
          TODO Missing Method Documentation
protected  java.sql.ResultSet getSelectByHrfID(int hrfID)
          TODO Missing Method Documentation
protected  java.lang.String getTableName()
           
protected  java.lang.String getTableType()
           
protected  void initColumns()
           
protected  void setColumns(de.hattrickorganizer.database.ColumnDescriptor[] columns)
           
protected  void storeMatchLineupPlayer(MatchLineupPlayer player, int matchID, int teamID)
          TODO Missing Method Documentation
protected  void truncateTable()
          Truncate the current table (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLENAME

public static final java.lang.String TABLENAME
tablename

See Also:
Constant Field Values

columns

protected de.hattrickorganizer.database.ColumnDescriptor[] columns
describes a tableColumn (name, datatype, nullable ..)


adapter

protected JDBCAdapter adapter
Database connection

Constructor Detail

MatchLineupPlayerTable

protected MatchLineupPlayerTable(JDBCAdapter adapter)
Method Detail

initColumns

protected void initColumns()

getCreateIndizeStatements

protected java.lang.String[] getCreateIndizeStatements()

getAlleBewertungen

public java.util.Vector getAlleBewertungen(int spielerid)
Gibt eine Liste an Ratings zurück, auf denen der Spieler gespielt hat: 0 = Max 1 = Min 2 = Durchschnitt 3 = posid

Parameters:
spielerid - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getBewertungen4Player

public float[] getBewertungen4Player(int spielerid)
Gibt die beste, schlechteste und durchschnittliche Bewertung für den Spieler, sowie die Anzahl der Bewertungen zurück // Match

Parameters:
spielerid - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getBewertungen4PlayerUndPosition

public float[] getBewertungen4PlayerUndPosition(int spielerid,
                                                byte position)
Gibt die beste, schlechteste und durchschnittliche Bewertung für den Spieler, sowie die Anzahl der Bewertungen zurück // Match

Parameters:
spielerid - Spielerid
position - Usere positionscodierung mit taktik
Returns:
TODO Missing Return Method Documentation

storeMatchLineupPlayer

protected void storeMatchLineupPlayer(MatchLineupPlayer player,
                                      int matchID,
                                      int teamID)
TODO Missing Method Documentation

Parameters:
player - TODO Missing Method Parameter Documentation
matchID - TODO Missing Method Parameter Documentation
teamID - TODO Missing Method Parameter Documentation

getMatchLineupPlayers

public java.util.Vector getMatchLineupPlayers(int matchID,
                                              int teamID)
TODO Missing Method Documentation

Parameters:
matchID - TODO Missing Method Parameter Documentation
teamID - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getTableType

protected java.lang.String getTableType()

getTableName

protected java.lang.String getTableName()

setColumns

protected void setColumns(de.hattrickorganizer.database.ColumnDescriptor[] columns)

getColumns

protected de.hattrickorganizer.database.ColumnDescriptor[] getColumns()

delete

protected int delete(java.lang.String[] whereColumns,
                     java.lang.String[] whereValues)

createTable

public void createTable()

getSelectByHrfID

protected java.sql.ResultSet getSelectByHrfID(int hrfID)
TODO Missing Method Documentation

Parameters:
tableName - TODO Missing Method Parameter Documentation
hrfID - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

dropTable

protected void dropTable()
Drop the current table


truncateTable

protected void truncateTable()
Truncate the current table (i.e. remove all rows)