Stay organized with collections Save and categorize content based on your preferences.

RoomDatabase.QueryCallback

public interface RoomDatabase.QueryCallback


Callback interface for when SQLite queries are executed.

Can be set using RoomDatabase.Builder.setQueryCallback.

Summary

Public methods

abstract void
onQuery(@NonNull String sqlQuery, @NonNull List<Object> bindArgs)

Called when a SQL query is executed.

Public methods

onQuery

abstract void onQuery(@NonNull String sqlQuery, @NonNull List<Object> bindArgs)

Called when a SQL query is executed.

Parameters
@NonNull String sqlQuery

The SQLite query statement.

@NonNull List<Object> bindArgs

Arguments of the query if available, empty list otherwise.