Home / Community / FIT5046 - Week 7: Android Jetpack Room
Public

FIT5046 - Week 7: Android Jetpack Room

50 accessible of 50 cards

Card Preview

50 accessible of 50 cards

A quick, read-only look at the deck content.

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.

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.

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.

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).

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.

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).

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.

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.