|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SQLRelationship.Deferrability>
ca.sqlpower.architect.SQLRelationship.Deferrability
public static enum SQLRelationship.Deferrability
The enumeration of all referential integrity constraint checking policies.
| Enum Constant Summary | |
|---|---|
INITIALLY_DEFERRED
Indicates the constrain is deferrable, and checking is deferred by default unless the current transaction has been set for immediate constraint checking. |
|
INITIALLY_IMMEDIATE
Indicates the constrain is deferrable, and checking is performed immediately unless the current transaction has been set for deferred constraint checking. |
|
NOT_DEFERRABLE
Indicates that the checking for this constraint must always be immediate regardless of the current transaction setting. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the JDBC code number for this deferrability rule. |
static SQLRelationship.Deferrability |
ruleForCode(int code)
Returns the enumeration value associated with the given code number. |
static SQLRelationship.Deferrability |
ruleForCode(int code,
SQLRelationship.Deferrability defaultValue)
Returns the enumeration value associated with the given code number, or the given default value if the given code number is not valid. |
static SQLRelationship.Deferrability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SQLRelationship.Deferrability[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SQLRelationship.Deferrability INITIALLY_DEFERRED
public static final SQLRelationship.Deferrability INITIALLY_IMMEDIATE
public static final SQLRelationship.Deferrability NOT_DEFERRABLE
| Method Detail |
|---|
public static final SQLRelationship.Deferrability[] values()
for(SQLRelationship.Deferrability c : SQLRelationship.Deferrability.values())
System.out.println(c);
public static SQLRelationship.Deferrability 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 namepublic static SQLRelationship.Deferrability ruleForCode(int code)
java.lang.IllegalArgumentException - if the given code number is not valid.
public static SQLRelationship.Deferrability ruleForCode(int code,
SQLRelationship.Deferrability defaultValue)
ruleForCode(int),
which throws an exception when asked for an invalid code.
public int getCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||