BaseStore

open class BaseStore : MediaStore

A base wrapper for io.requery.EntityStore.

Author

rsubramaniam

Properties

Link copied to clipboard
The maximum of expressions allowed in the queries generation by this store.
Link copied to clipboard
The maximum of variables allowed in the queries generation by this store.

Functions

Link copied to clipboard
open fun compact(): Boolean
Compacts the physical database file size by running the SQLite VACUUM statement.
Link copied to clipboard
Deletes an identifiable entity from the store.
Link copied to clipboard
open fun deleteOfflineVideo(videoId: String): Boolean
Deletes the first offline video entity with the given video identifier.
Link copied to clipboard
open fun findOfflineAssetUri(uri: Uri): Uri
Finds the local URI of a remote asset that has been downloaded successfully.
Link copied to clipboard
open fun <T : IdentifiableEntity?> findOfflineVideo(videoId: String): T
Finds the first offline video entity with the given video identifier.
Link copied to clipboard
open fun getFileSize(): Long
Gets the size of the backing database file.
Link copied to clipboard
open fun onCreated(version: Int)
Called when new EntityDataStore has been created.
Link copied to clipboard
open fun onUpgraded(oldVersion: Int, newVersion: Int)
Called when the EntityDataStore has been upgraded from an previous version to a new version.
Link copied to clipboard
open fun <E : IdentifiableEntity?> refreshEntity(entity: E): E
Refresh the given entity.
Link copied to clipboard
open fun <T : IdentifiableEntity?> saveEntity(entity: T): T
Inserts or updates the given entity.
Link copied to clipboard
Updates the entity with given unique video identifier to save the video license information.
Link copied to clipboard
Updates the entity with given unique video identifier to save the video metadata object, while retaining the previously saved license information.