org.droidparts.test.persist
Class DBOpenHelper

java.lang.Object
  extended by android.database.sqlite.SQLiteOpenHelper
      extended by org.droidparts.persist.sql.AbstractDBOpenHelper
          extended by org.droidparts.test.persist.DBOpenHelper
All Implemented Interfaces:
DB, SQL.DDL

public class DBOpenHelper
extends AbstractDBOpenHelper
implements DB


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.droidparts.test.persist.DB
DB.Column, DB.Table
 
Field Summary
 
Fields inherited from interface org.droidparts.contract.SQL.DDL
ADD_COLUMN, ALTER_TABLE, BLOB, CLOSING_BRACE, CREATE_INDEX, CREATE_TABLE, CREATE_UNIQUE_INDEX, DEFAULT, INTEGER, NOT_NULL, ON, OPENING_BRACE, PK, REAL, SEPARATOR, TEXT, UNIQUE
 
Constructor Summary
DBOpenHelper(android.content.Context ctx)
           
 
Method Summary
protected  void onCreateTables(android.database.sqlite.SQLiteDatabase db)
           
 void onUpgrade(android.database.sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
           
 
Methods inherited from class org.droidparts.persist.sql.AbstractDBOpenHelper
addMissingColumns, createIndex, createTables, dropTables, executeStatements, getContext, onCreate, onOpen, onOpenExtra
 
Methods inherited from class android.database.sqlite.SQLiteOpenHelper
close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onDowngrade, setWriteAheadLoggingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBOpenHelper

public DBOpenHelper(android.content.Context ctx)
Method Detail

onCreateTables

protected void onCreateTables(android.database.sqlite.SQLiteDatabase db)
Specified by:
onCreateTables in class AbstractDBOpenHelper

onUpgrade

public void onUpgrade(android.database.sqlite.SQLiteDatabase db,
                      int oldVersion,
                      int newVersion)
Specified by:
onUpgrade in class android.database.sqlite.SQLiteOpenHelper


Copyright © 2011-2013. All Rights Reserved.