Helper

abstract class Helper

Database helper class used to manage the creation and upgrading of the database. This class also provides the SQLiteDatabase object used by the other classes.

Author

sergey.zaburunov

Constructors

Link copied to clipboard
protected constructor(context: Context, mapperList: Array<IDataMapper>)
constructor

Types

Link copied to clipboard
protected open class OpenHelper
Open helper class to manage database creation and version management.

Properties

Link copied to clipboard
private val context: Context
external context
Link copied to clipboard
val db: SQLiteDatabase
database connection object
Link copied to clipboard
a directory (mostly on sd card) to store blob objects.
Link copied to clipboard
open var instance: Helper
instance object to access the class
Link copied to clipboard
List of manages data mapper.
Link copied to clipboard
Open helper to manage database creation and version management
Link copied to clipboard
private val TAG: String
Logging tag

Functions

Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun close()
close all db connections and destroy class
Link copied to clipboard
private open fun createTables(db: SQLiteDatabase)
Create all tables.
Link copied to clipboard
protected abstract fun Database_Name(): String
The name of the database file
Link copied to clipboard
protected abstract fun Database_Version(): Int
current database version
Link copied to clipboard
open fun deleteTables()
Delete all rows from all tables.
Link copied to clipboard
private open fun dropTables(db: SQLiteDatabase)
Drop all tables.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasInstance(): Boolean
Checks if the db singleton has been set.
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
protected abstract fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int): Boolean
upgrade all tables
Link copied to clipboard
Create all tables.
Link copied to clipboard
open fun test_dropTables()
Drop all tables.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun wait()