package Ġcom . example . f lick er example . room Ċ Ċ import Ġandroidx . room . Database Ċ import Ġandroidx . room . Room Ċ import Ġandroidx . room . Room Database Ċ import Ġcom . example . f lick er example . core . app Ċ import Ġcom . example . f lick er example . models . photos . Photo Item Ċ import Ġcom . example . f lick er example . models . photos . Search Query Ċ import Ġcom . example . f lick er example . room . dao . Photo Item Dao Ċ import Ġcom . example . f lick er example . room . dao . Search Query Dao Ċ Ċ @ Database ( entities Ġ= Ġ[ Search Query :: class , ĠPhoto Item :: class ], Ġversion Ġ= Ġ 1 ) Ċ abstract Ġclass Ġ_ F lickr DB Ġ: ĠRoom Database () Ġ{ ĊĊĠĠĠ Ġabstract Ġfun Ġsearch Query Dao (): ĠSearch Query Dao ĊĊĠĠĠ Ġabstract Ġfun Ġphoto Item Dao (): ĠPhoto Item Dao Ċ Ċ } Ċ Ċ val Ġf lick er DB Ġby Ġlazy Ġ{ ĊĠĠĠ Ġsynchronized (_ F lickr DB :: class ) Ġ{ ĊĠĠĠĠĠĠĠ ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġapp , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ F lickr DB :: class . java , Ġ" flickr . db " ĊĠĠĠĠĠĠĠ Ġ). build () ĊĠĠĠ Ġ} Ċ } ĊĊ