Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
room
/
com.michaelflisar.toolbox.room.dao
/
BaseDaoLong
Base
Dao
Long
abstract
class
BaseDaoLong
<
Entity
:
IRoomEntity
<
Long
,
Entity
>
>
(
val
tableName
:
String
,
val
columnId
:
String
,
val
sortAll
:
String
?
=
null
)
:
IBaseDao
<
Long
,
Entity
>
Members
Constructors
Base
Dao
Long
Link copied to clipboard
constructor
(
tableName
:
String
,
columnId
:
String
,
sortAll
:
String
?
=
null
)
Properties
class
IDInstance
Link copied to clipboard
open
override
val
classIDInstance
:
Long
=
0
column
Id
Link copied to clipboard
open
override
val
columnId
:
String
sort
All
Link copied to clipboard
open
override
val
sortAll
:
String
?
table
Name
Link copied to clipboard
open
override
val
tableName
:
String
Functions
_
delete
Link copied to clipboard
abstract
suspend
fun
_delete
(
items
:
List
<
Entity
>
)
:
Int
_
flowInt
Link copied to clipboard
abstract
fun
_flowInt
(
query
:
RoomRawQuery
)
:
Flow
<
Int
>
_
flowItem
Link copied to clipboard
abstract
fun
_flowItem
(
query
:
RoomRawQuery
)
:
Flow
<
Entity
>
_
flowList
Link copied to clipboard
abstract
fun
_flowList
(
query
:
RoomRawQuery
)
:
Flow
<
List
<
Entity
>
>
_
insert
Or
Update
Link copied to clipboard
abstract
suspend
fun
_insertOrUpdate
(
item
:
Entity
)
:
Long
abstract
suspend
fun
_insertOrUpdate
(
items
:
List
<
Entity
>
)
:
List
<
Long
>
_
loadAllIn
Link copied to clipboard
open
suspend
fun
_loadAllIn
(
ids
:
List
<
Long
>
)
:
List
<
Entity
>
convert
Id
Link copied to clipboard
open
fun
convertId
(
id
:
Long
)
:
Long
count
Link copied to clipboard
open
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
By
Id
Link copied to clipboard
open
suspend
fun
deleteById
(
database
:
RoomDatabase
,
id
:
Long
)
:
Int
delete
By
Ids
Link copied to clipboard
open
suspend
fun
deleteByIds
(
database
:
RoomDatabase
,
ids
:
List
<
Long
>
)
:
Int
flow
Link copied to clipboard
open
fun
flow
(
id
:
Long
)
:
Flow
<
Entity
>
flow
All
Link copied to clipboard
open
fun
flowAll
(
)
:
Flow
<
List
<
Entity
>
>
flow
All
In
Link copied to clipboard
open
fun
flowAllIn
(
ids
:
List
<
Long
>
)
:
Flow
<
List
<
Entity
>
>
flow
Count
Link copied to clipboard
open
fun
flowCount
(
)
:
Flow
<
Int
>
insert
Or
Update
Link copied to clipboard
open
suspend
fun
insertOrUpdate
(
item
:
Entity
)
:
Entity
open
suspend
fun
insertOrUpdate
(
items
:
List
<
Entity
>
)
:
List
<
Entity
>
load
Link copied to clipboard
open
suspend
fun
load
(
id
:
Long
)
:
Entity
load
All
Link copied to clipboard
open
suspend
fun
loadAll
(
)
:
List
<
Entity
>
load
All
In
Link copied to clipboard
open
suspend
fun
loadAllIn
(
ids
:
List
<
Long
>
)
:
List
<
Entity
>
raw
Int
Link copied to clipboard
abstract
suspend
fun
rawInt
(
query
:
RoomRawQuery
)
:
Int
raw
Item
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
?
raw
List
Link copied to clipboard
abstract
suspend
fun
rawList
(
query
:
RoomRawQuery
)
:
List
<
Entity
>
try
Load
Link copied to clipboard
open
suspend
fun
tryLoad
(
id
:
Long
)
:
Entity
?