de.hattrickorganizer.database
Class TrainingsTable

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

public final class TrainingsTable
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 TrainingsTable(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()
           
protected  java.sql.ResultSet getSelectByHrfID(int hrfID)
          TODO Missing Method Documentation
protected  java.lang.String getTableName()
           
protected  java.lang.String getTableType()
           
 java.util.Vector getTrainingsVector()
          TODO Missing Method Documentation
protected  void initColumns()
           
 void saveTraining(TrainingPerWeek training)
          TODO Missing Method Documentation
protected  void setColumns(de.hattrickorganizer.database.ColumnDescriptor[] columns)
           
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

TrainingsTable

protected TrainingsTable(JDBCAdapter adapter)
Method Detail

initColumns

protected void initColumns()

saveTraining

public void saveTraining(TrainingPerWeek training)
TODO Missing Method Documentation

Parameters:
training - TODO Missing Method Parameter Documentation

getTrainingsVector

public java.util.Vector getTrainingsVector()
TODO Missing Method 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()

getCreateIndizeStatements

protected java.lang.String[] getCreateIndizeStatements()

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)