Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
room
/
com.michaelflisar.toolbox.room.dao
/
BaseDao
Base
Dao
abstract
class
BaseDao
<
ID
:
Number
,
Entity
:
IRoomEntity
<
ID
,
Entity
>
>
(
val
id
:
DaoID
<
ID
>
,
val
tableName
:
String
,
val
columnId
:
String
,
val
sortAll
:
String
?
=
null
)
:
BaseDaoInternal
<
ID
,
Entity
>
Inheritors
BaseDaoFull
Members
Constructors
Base
Dao
Link copied to clipboard
constructor
(
id
:
DaoID
<
ID
>
,
tableName
:
String
,
columnId
:
String
,
sortAll
:
String
?
=
null
)
Properties
column
Id
Link copied to clipboard
val
columnId
:
String
id
Link copied to clipboard
val
id
:
DaoID
<
ID
>
sort
All
Link copied to clipboard
val
sortAll
:
String
?
table
Name
Link copied to clipboard
val
tableName
:
String
Functions
_
delete
Link copied to clipboard
abstract
suspend
fun
_delete
(
items
:
List
<
Entity
>
)
:
Int
_
insert
Or
Update
Link copied to clipboard
abstract
suspend
fun
_insertOrUpdate
(
item
:
Entity
)
:
Long
abstract
suspend
fun
_insertOrUpdate
(
items
:
List
<
Entity
>
)
:
List
<
Long
>
_
rawInt
Link copied to clipboard
abstract
suspend
fun
_rawInt
(
query
:
RoomRawQuery
)
:
Int
_
rawItem
Link copied to clipboard
abstract
suspend
fun
_rawItem
(
query
:
RoomRawQuery
)
:
Entity
_
raw
Item
Or
Null
Link copied to clipboard
abstract
suspend
fun
_rawItemOrNull
(
query
:
RoomRawQuery
)
:
Entity
?
_
rawList
Link copied to clipboard
abstract
suspend
fun
_rawList
(
query
:
RoomRawQuery
)
:
List
<
Entity
>
count
Link copied to clipboard
suspend
fun
count
(
)
:
Int
delete
Link copied to clipboard
abstract
suspend
fun
delete
(
item
:
Entity
)
:
Int
open
suspend
fun
delete
(
items
:
List
<
Entity
>
)
:
Int
delete
All
Link copied to clipboard
suspend
fun
deleteAll
(
)
:
Int
delete
By
Id
Link copied to clipboard
suspend
fun
deleteById
(
database
:
RoomDatabase
,
id
:
ID
)
:
Int
delete
By
Ids
Link copied to clipboard
suspend
fun
deleteByIds
(
database
:
RoomDatabase
,
ids
:
List
<
ID
>
)
:
Int
load
Link copied to clipboard
suspend
fun
load
(
id
:
ID
)
:
Entity
load
All
Link copied to clipboard
suspend
fun
loadAll
(
)
:
List
<
Entity
>
persist
Link copied to clipboard
suspend
fun
persist
(
item
:
Entity
)
:
Entity
suspend
fun
persist
(
items
:
List
<
Entity
>
)
:
List
<
Entity
>
try
Load
Link copied to clipboard
suspend
fun
tryLoad
(
id
:
ID
)
:
Entity
?