de.hattrickorganizer.database
Class MatchLineupTable

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

public final class MatchLineupTable
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 MatchLineupTable(JDBCAdapter adapter)
           
 
Method Summary
 void createTable()
           
protected  int delete(java.lang.String[] whereColumns, java.lang.String[] whereValues)
           
protected  void dropTable()
          Drop the current table
protected  de.hattrickorganizer.database.ColumnDescriptor[] getColumns()
           
protected  java.lang.String[] getCreateIndizeStatements()
           
 MatchLineup getMatchLineup(int matchID)
          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()
           
 boolean isMatchLineupVorhanden(int matchid)
          Ist das Match schon in der Datenbank vorhanden?
protected  void setColumns(de.hattrickorganizer.database.ColumnDescriptor[] columns)
           
 void storeMatchLineup(MatchLineup lineup)
          speichert ein Matchlineup
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

MatchLineupTable

protected MatchLineupTable(JDBCAdapter adapter)
Method Detail

initColumns

protected void initColumns()

getCreateIndizeStatements

protected java.lang.String[] getCreateIndizeStatements()

getMatchLineup

public MatchLineup getMatchLineup(int matchID)
TODO Missing Method Documentation

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

isMatchLineupVorhanden

public boolean isMatchLineupVorhanden(int matchid)
Ist das Match schon in der Datenbank vorhanden?

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

storeMatchLineup

public void storeMatchLineup(MatchLineup lineup)
speichert ein Matchlineup

Parameters:
lineup - TODO Missing Constructuor Parameter 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)