de.hattrickorganizer.database
Class SpielerSkillupTable

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

public final class SpielerSkillupTable
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 SpielerSkillupTable(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 getAllLevelUp(int skillCode, int spielerId)
           
protected  de.hattrickorganizer.database.ColumnDescriptor[] getColumns()
           
protected  java.lang.String[] getCreateIndizeStatements()
           
 java.lang.Object[] getLastLevelUp(int skillCode, int spielerId)
           
protected  java.sql.ResultSet getSelectByHrfID(int hrfID)
          TODO Missing Method Documentation
protected  java.lang.String getTableName()
           
protected  java.lang.String getTableType()
           
 void importFromSpieler()
           
 void importNewSkillup(HOModel homodel)
           
protected  void initColumns()
           
 void saveSkillup(int hrfId, int spielerId, java.sql.Timestamp date, int skillValue, int skillCode)
          speichert die Spieler
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

SpielerSkillupTable

protected SpielerSkillupTable(JDBCAdapter adapter)
Method Detail

initColumns

protected void initColumns()

getCreateIndizeStatements

protected java.lang.String[] getCreateIndizeStatements()

saveSkillup

public void saveSkillup(int hrfId,
                        int spielerId,
                        java.sql.Timestamp date,
                        int skillValue,
                        int skillCode)
speichert die Spieler

Parameters:
hrfId - TODO Missing Constructuor Parameter Documentation
spieler - TODO Missing Constructuor Parameter Documentation
date - TODO Missing Constructuor Parameter Documentation

getLastLevelUp

public java.lang.Object[] getLastLevelUp(int skillCode,
                                         int spielerId)

getAllLevelUp

public java.util.Vector getAllLevelUp(int skillCode,
                                      int spielerId)

importNewSkillup

public void importNewSkillup(HOModel homodel)

importFromSpieler

public void importFromSpieler()

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)