OnConflictStrategy

class OnConflictStrategy
androidx.room.OnConflictStrategy

Set of conflict handling strategies for various Dao methods.

Check SQLite conflict documentation for details.

Summary

Constants
static Int

OnConflict strategy constant to abort the transaction.

static Int

OnConflict strategy constant to fail the transaction.

static Int

OnConflict strategy constant to ignore the conflict.

static Int

OnConflict strategy constant to replace the old data and continue the transaction.

static Int

OnConflict strategy constant to rollback the transaction.

Public constructors

Set of conflict handling strategies for various Dao methods.

Constants

ABORT

static val ABORT: Int

OnConflict strategy constant to abort the transaction.

Value: 3

FAIL

static val FAIL: Int

OnConflict strategy constant to fail the transaction.

Value: 4

IGNORE

static val IGNORE: Int

OnConflict strategy constant to ignore the conflict.

Value: 5

REPLACE

static val REPLACE: Int

OnConflict strategy constant to replace the old data and continue the transaction.

Value: 1

ROLLBACK

static val ROLLBACK: Int

OnConflict strategy constant to rollback the transaction.

Value: 2

Public constructors

<init>

OnConflictStrategy()

Set of conflict handling strategies for various Dao methods.

Check SQLite conflict documentation for details.