de.palmmedia.yahtzee.data
Class DataRepository.DataOpenHelper

java.lang.Object
  extended by SQLiteOpenHelper
      extended by de.palmmedia.yahtzee.data.DataRepository.DataOpenHelper
Enclosing class:
DataRepository

private static class DataRepository.DataOpenHelper
extends SQLiteOpenHelper

SQLiteOpenHelper to create the database.


Field Summary
private static String DATABASE_NAME
          The name of the database.
private static int DATABASE_VERSION
          The version of the database.
private static String HIGHSCORES_TABLE_CREATE
          The SQL to create the highscores table.
private static String PLAYER_TABLE_CREATE
          The SQL to create the players table.
 
Constructor Summary
DataRepository.DataOpenHelper(Context context)
          Constructor.
 
Method Summary
 void onCreate(SQLiteDatabase db)
          
 void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_VERSION

private static final int DATABASE_VERSION
The version of the database.

See Also:
Constant Field Values

DATABASE_NAME

private static final String DATABASE_NAME
The name of the database.

See Also:
Constant Field Values

PLAYER_TABLE_CREATE

private static final String PLAYER_TABLE_CREATE
The SQL to create the players table.

See Also:
Constant Field Values

HIGHSCORES_TABLE_CREATE

private static final String HIGHSCORES_TABLE_CREATE
The SQL to create the highscores table.

See Also:
Constant Field Values
Constructor Detail

DataRepository.DataOpenHelper

public DataRepository.DataOpenHelper(Context context)
Constructor.

Parameters:
context - The context.
Method Detail

onCreate

public void onCreate(SQLiteDatabase db)


onUpgrade

public void onUpgrade(SQLiteDatabase db,
                      int oldVersion,
                      int newVersion)