app
androidJvm
app
/
com.iomt.android.room.device
/
DeviceDao
Device
Dao
interface
DeviceDao
:
BasicDao
<
DeviceEntity
>
Data Access Object of
DeviceEntity
Members
Functions
delete
Link copied to clipboard
abstract
suspend
fun
delete
(
entity
:
DeviceEntity
)
get
All
Link copied to clipboard
abstract
fun
getAll
(
)
:
Flow
<
DeviceEntity
>
get
By
Id
Link copied to clipboard
abstract
suspend
fun
getById
(
deviceId
:
Long
)
:
DeviceEntity
?
get
By
Mac
Link copied to clipboard
abstract
suspend
fun
getByMac
(
mac
:
String
)
:
DeviceEntity
?
get
By
Mac
Or
Save
Link copied to clipboard
open
suspend
fun
getByMacOrSave
(
mac
:
String
,
name
:
String
)
:
DeviceEntity
insert
Link copied to clipboard
abstract
suspend
fun
insert
(
entity
:
DeviceEntity
)
:
Long
update
Link copied to clipboard
abstract
suspend
fun
update
(
entity
:
DeviceEntity
)