OnConflictStrategy
  public
  
  
  abstract
  @interface
  OnConflictStrategy
  
  
      implements
      
        Annotation
      
  
  
| android.arch.persistence.room.OnConflictStrategy | 
Set of conflict handling strategies for various Dao methods.
 
Check SQLite conflict documentation for details.
Summary
| Constants | |
|---|---|
| int | ABORTOnConflict strategy constant to abort the transaction. | 
| int | FAILOnConflict strategy constant to fail the transaction. | 
| int | IGNOREOnConflict strategy constant to ignore the conflict. | 
| int | REPLACEOnConflict strategy constant to replace the old data and continue the transaction. | 
| int | ROLLBACKOnConflict strategy constant to rollback the transaction. | 
| Inherited methods | |
|---|---|
Constants
ABORT
int ABORT
OnConflict strategy constant to abort the transaction.
Constant Value: 3 (0x00000003)
FAIL
int FAIL
OnConflict strategy constant to fail the transaction.
Constant Value: 4 (0x00000004)
IGNORE
int IGNORE
OnConflict strategy constant to ignore the conflict.
Constant Value: 5 (0x00000005)
REPLACE
int REPLACE
OnConflict strategy constant to replace the old data and continue the transaction.
Constant Value: 1 (0x00000001)
ROLLBACK
int ROLLBACK
OnConflict strategy constant to rollback the transaction.
Constant Value: 2 (0x00000002)
- Annotations
- Classes
- Enums
- Exceptions
