Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

DatabaseUtilsCompat

class DatabaseUtilsCompat
kotlin.Any
   ↳ androidx.core.database.DatabaseUtilsCompat

Helper for accessing features in android.database.DatabaseUtils.

Summary

Public methods

static Array<String!>!
appendSelectionArgs(originalValues: Array<String!>!, newValues: Array<String!>!)

Appends one set of selection args to another.

static String!

Concatenates two SQL WHERE clauses, handling empty or null values.

Public methods

appendSelectionArgs

static fun appendSelectionArgs(originalValues: Array<String!>!, newValues: Array<String!>!): Array<String!>!

Deprecated: Use android.database.DatabaseUtils#appendSelectionArgs(String[], String[]) directly.

Appends one set of selection args to another. This is useful when adding a selection argument to a user provided set.

concatenateWhere

static fun concatenateWhere(a: String!, b: String!): String!

Deprecated: Use android.database.DatabaseUtils#concatenateWhere(String, String) directly.

Concatenates two SQL WHERE clauses, handling empty or null values.