app / de.uniks.codliners.stock_simulator.database / SymbolDao

SymbolDao

interface SymbolDao

Dao that manages Symbols in the database.

Author
Jan Müller

Functions

deleteAll

Deletes all Symbols.

abstract fun deleteAll(): Unit

getAll

Returns all Symbols, wrapped in LiveData.

abstract fun getAll(): LiveData<List<Symbol>>

getAllFiltered

Returns all Symbols matching the query parameters, wrapped in LiveData.

abstract fun getAllFiltered(symbolQuery: String, nameQuery: String, type: Type): LiveData<List<Symbol>>
abstract fun getAllFiltered(symbolQuery: String, nameQuery: String): LiveData<List<Symbol>>

getSymbolCount

Returns the count of Symbols.

abstract fun getSymbolCount(): Int

insertAll

Inserts all Symbols into the StockAppDatabase.

abstract fun insertAll(vararg symbols: Symbol): Unit