ResumeDao

abstract class ResumeDao

Data access object to perform operation related to resume app.

Constructors

Link copied to clipboard
fun ResumeDao()

Functions

Link copied to clipboard
abstract fun deleteEducationById(educationId: Int)

to delete educations from database.

Link copied to clipboard
abstract fun deleteEducationsByParentId(resumeId: Int)

to delete educations from database.

Link copied to clipboard
abstract fun deleteProjectById(projectId: Int)

to delete project from database.

Link copied to clipboard
abstract fun deleteProjectsByParentId(resumeId: Int)

to delete projects from database.

Link copied to clipboard
abstract fun deleteResumeById(resumeId: Int)

to delete resume from database.

Link copied to clipboard
fun deleteResumeWithCascadeById(resumeId: Int)
Link copied to clipboard
abstract fun deleteSkillById(skillId: Int)

to delete project from database.

Link copied to clipboard
abstract fun deleteSkillsByParentId(resumeId: Int)

to delete skills from database.

Link copied to clipboard
abstract fun deleteWorkById(workId: Int)

to delete project from database.

Link copied to clipboard
abstract fun deleteWorksByParentId(resumeId: Int)

to delete works from database.

Link copied to clipboard
abstract fun getResumeById(resumeId: Int): ResumeEntity?

to get the ResumeEntity or null from database.

Link copied to clipboard
abstract fun getResumes(): Flow<List<ResumeEntity>>

to get the list of ResumeEntity from database as latest created resume as first.

Link copied to clipboard
abstract fun getResumeWithEducations(resumeId: Int): List<ResumeWithEducations>

to get the list of ResumeWithEducations from database as latest created resume as first.

Link copied to clipboard
abstract fun getResumeWithProjects(resumeId: Int): List<ResumeWithProjects>

to get the list of ResumeWithProjects from database as latest created resume as first.

Link copied to clipboard
abstract fun getResumeWithSkills(resumeId: Int): List<ResumeWithSkills>

to get the list of ResumeWithSkills from database as latest created resume as first.

Link copied to clipboard
abstract fun getResumeWithWorks(resumeId: Int): List<ResumeWithWorks>

to get the list of ResumeWithWorks from database as latest created resume as first.

Link copied to clipboard
abstract suspend fun insertOrUpdateEducations(educations: List<EducationEntity>): List<Long>

to insert or update the EducationEntity

Link copied to clipboard
abstract suspend fun insertOrUpdateProjects(projects: List<ProjectEntity>): List<Long>

to insert or update the ProjectEntity

Link copied to clipboard
abstract suspend fun insertOrUpdateResume(resume: ResumeEntity): Long

to insert or update the ResumeEntity

Link copied to clipboard
abstract suspend fun insertOrUpdateSkills(skills: List<SkillEntity>): List<Long>

to insert or update the SkillEntity

Link copied to clipboard
abstract suspend fun insertOrUpdateWorks(works: List<WorkEntity>): List<Long>

to insert or update the WorkEntity