public class Constraint.OnConflict extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ABORT
When an applicable constraint violation occurs, the ABORT resolution algorithm aborts the current SQL statement with an SQLITE_CONSTRAINT error and backs out any changes made by the current SQL statement;
but changes caused by prior SQL statements within the same transaction are preserved and the transaction remains active.
|
static String |
FAIL
When an applicable constraint violation occurs, the FAIL resolution algorithm aborts the current SQL statement with an SQLITE_CONSTRAINT error.
|
static String |
IGNORE
When an applicable constraint violation occurs, the IGNORE resolution algorithm skips the one row that contains the constraint violation and continues processing subsequent rows of the SQL statement as if nothing went wrong.
|
static String |
REPLACE
When a UNIQUE constraint violation occurs, the REPLACE algorithm deletes pre-existing rows that are causing the constraint violation prior to inserting or updating the current row and the command continues executing normally.
|
static String |
ROLLBACK
When an applicable constraint violation occurs, the ROLLBACK resolution algorithm aborts the current SQL statement with an SQLITE_CONSTRAINT error and rolls back the current transaction.
|
| Constructor and Description |
|---|
Constraint.OnConflict() |
public static final String ROLLBACK
public static final String ABORT
public static final String FAIL
public static final String IGNORE
public static final String REPLACE
Copyright © 2012–2014. All rights reserved.