0% found this document useful (0 votes)
5 views17 pages

Database-1 065302

Uploaded by

nailapp2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views17 pages

Database-1 065302

Uploaded by

nailapp2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Database

An Introduction
SQLite
• SQLite is an open-source database.
• It is used to perform database operations on android
devices.
• These operations include storing, manipulating or
retrieving persistent data from the database.
• The utilization of SQLite requires the use of three main
classes, namely,: user-defined subclass,
SQLiteOpenHelper class, and SQLiteDatabase class.
user-defined subclass
• Example of user-defined subclass:
NedamQaedatBayanat.
• Usage:
class NedamQaedatBayanat(appContext: Context?): SQLiteOpenHelper(……..) {
……………………
SQLiteDatabase
…………………….
}
SQLiteOpenHelper class
• This class is imported from
android.database.sqlite.SQLiteOpenHelper.
• It is used for database creation and version management.
• For performing any database operation, you have to
provide the implementation of onCreate() and
onUpgrade() methods of SQLiteOpenHelper class.
Constructor of
SQLiteOpenHelper class
Methods of SQLiteOpenHelper
class
Methods of SQLiteOpenHelper
class
SQLiteDatabase class
• It contains methods to be performed on sqlite database.
• These methods include create, update, delete, select etc.
Methods of SQLiteDatabase
class
SQLiteDatabase
SQLiteDatabase
SQLiteDatabase
User Interface
User Interface
User Interface
User Interface
User Interface

You might also like