Udostępnij za pośrednictwem


SQLiteDatabase.ConflictRollback Field

Definition

Caution

This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.

When a constraint violation occurs, an immediate ROLLBACK occurs, thus ending the current transaction, and the command aborts with a return code of SQLITE_CONSTRAINT.

[Android.Runtime.Register("CONFLICT_ROLLBACK")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)]
public const Android.Database.Sqlite.Conflict ConflictRollback = 1;
[<Android.Runtime.Register("CONFLICT_ROLLBACK")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)>]
val mutable ConflictRollback : Android.Database.Sqlite.Conflict

Field Value

Value = 1
Attributes

Remarks

When a constraint violation occurs, an immediate ROLLBACK occurs, thus ending the current transaction, and the command aborts with a return code of SQLITE_CONSTRAINT. If no transaction is active (other than the implied transaction that is created on every command) then this algorithm works the same as ABORT.

Java documentation for android.database.sqlite.SQLiteDatabase.CONFLICT_ROLLBACK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to