|
SQLJet Home | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SqlJetConflictAction>
org.tmatesoft.sqljet.core.schema.SqlJetConflictAction
public enum SqlJetConflictAction
"ON CONFLICT" action.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.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>
|
SQLJet Home | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |