-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class LocalCampaignTrackDbHelper extends SQLiteOpenHelper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLocalCampaignTrackDbHelper.LocalCampaignEntry
-
Field Summary
Fields Modifier and Type Field Description public final static intDATABASE_VERSIONpublic final static StringDATABASE_NAME
-
Constructor Summary
Constructors Constructor Description LocalCampaignTrackDbHelper(Context context)
-
Method Summary
Modifier and Type Method Description voidonCreate(SQLiteDatabase sqLiteDatabase)voidonUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion)StringgetTableAsString(SQLiteDatabase db)Helper function that parses a given table into a stringand returns it for easy printing. -
Methods inherited from class android.database.sqlite.SQLiteOpenHelper
close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onCreate, onDowngrade, onOpen, onUpgrade, setIdleConnectionTimeout, setLookasideConfig, setOpenParams, setWriteAheadLoggingEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LocalCampaignTrackDbHelper
LocalCampaignTrackDbHelper(Context context)
-
-
Method Detail
-
onCreate
void onCreate(SQLiteDatabase sqLiteDatabase)
-
onUpgrade
void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion)
-
getTableAsString
String getTableAsString(SQLiteDatabase db)
Helper function that parses a given table into a stringand returns it for easy printing. The string consists ofthe table name and then each row is iterated through withcolumn_name: value pairs printed out.
- Parameters:
db- the database to get the table from
-
-
-
-