50 cards · Public

FIT5046 - Week 7: Android Jetpack Room

Cards in this deck

(50 cards)

Preview terms and definitions before starting your study session.

#1
Term
What is the Room Persistence Library in Android Jetpack?
Definition
An abstraction layer over SQLite that provides robust local database access, object mapping, and compile-time query verification.
#2
Term
What underlying database system does Room use on Android devices?
Definition
SQLite, a lightweight relational database management system for permanent local structured data storage.
#3
Term
Why is Room preferred over raw SQLite helper classes?
Definition
Room eliminates boilerplate code, verifies SQL queries at compile time, supports coroutine flows, and integrates seamlessly with Android Architecture Components.
#4
Term
What are the four core components of a Room database architecture?
Definition
Entities (database tables), DAOs (data access objects), RoomDatabase (database instance holder), and Repository (data abstraction layer).
#5
Term
What is KSP (Kotlin Symbol Processing) and why is it used with Room?
Definition
A fast annotation processor that analyzes Kotlin code directly to generate Room database implementation code, replacing the slower kapt tool.
#6
Term
Which Gradle dependencies are required to build a Room database with KSP?
Definition
implementation(libs.androidx.room.runtime), implementation(libs.androidx.room.ktx), and ksp(libs.androidx.room.compiler).
#7
Term
Where are Room library version numbers and KSP plugins defined in modern Android projects?
Definition
In libs.versions.toml (the Gradle Version Catalog file) and applied in project and module build.gradle.kts files.
#8
Term
What is a Room Entity?
Definition
A Kotlin data class annotated with @Entity that maps directly to a table in the underlying SQLite database.
Showing 8 of 50 cards in this deck.
Study All Now