public enum TdbIntegrityType extends java.lang.Enum<TdbIntegrityType>
Enum Constant and Description |
---|
Cascade
Modifications in the master database will automatically be projected
onto the slave database
|
NoAction
Nothing happens, this is the same as having no rule in place
|
Restrict
This is the default, which causes actions to be aborted if the action
would force a rule to project a modification onto a slave database
|
SetDefault
The target of the relationship (i.e. the foreign key in the slave
database) is reset to its default value (if any) after projection
|
SetNull
The target of the relationship (i.e. the foreign key in the slave
database) is set NULL (i.e. blank) after projection
|
Undefined
The type is undefined, nothing will happen
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the TRIPxpi protocol name for the current integrity identifier
|
static TdbIntegrityType |
getTypeof(java.lang.String name)
Retrieve the integrity type ID that matches the provided name
|
static TdbIntegrityType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TdbIntegrityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TdbIntegrityType Undefined
public static final TdbIntegrityType Restrict
public static final TdbIntegrityType Cascade
public static final TdbIntegrityType NoAction
public static final TdbIntegrityType SetNull
public static final TdbIntegrityType SetDefault
public static TdbIntegrityType[] values()
for (TdbIntegrityType c : TdbIntegrityType.values()) System.out.println(c);
public static TdbIntegrityType 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 TdbIntegrityType getTypeof(java.lang.String name)
name
- The name to matchpublic java.lang.String getName()