public enum SqlJetConflictAction extends java.lang.Enum<SqlJetConflictAction>
Enum Constant and Description |
---|
ABORT
When a constraint violation occurs, the command backs out any prior
changes it might have made and aborts with a return code of
SQLITE_CONSTRAINT.
|
FAIL
When a constraint violation occurs, the command aborts with a return code
SQLITE_CONSTRAINT.
|
IGNORE
When a constraint violation occurs, the one row that contains the
constraint violation is not inserted or changed.
|
REPLACE
When a UNIQUE constraint violation occurs, the pre-existing rows that are
causing the constraint violation are removed prior to inserting or
updating the current row.
|
ROLLBACK
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.
|
Modifier and Type | Method and Description |
---|---|
static SqlJetConflictAction |
decode(java.lang.String s) |
java.lang.String |
toString() |
static SqlJetConflictAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SqlJetConflictAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlJetConflictAction ROLLBACK
public static final SqlJetConflictAction ABORT
public static final SqlJetConflictAction FAIL
public static final SqlJetConflictAction IGNORE
public static final SqlJetConflictAction REPLACE
public static SqlJetConflictAction[] values()
for (SqlJetConflictAction c : SqlJetConflictAction.values()) System.out.println(c);
public static SqlJetConflictAction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SqlJetConflictAction decode(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Enum<SqlJetConflictAction>
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.