Enum Class TdbIntegrityType
- All Implemented Interfaces:
Serializable
,Comparable<TdbIntegrityType>
,Constable
An enumeration of the possible types of referential integrity rule
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionModifications in the master database will automatically be projected onto the slave databaseNothing happens, this is the same as having no rule in placeThis is the default, which causes actions to be aborted if the action would force a rule to project a modification onto a slave databaseThe target of the relationship (i.e. the foreign key in the slave database) is reset to its default value (if any) after projectionThe target of the relationship (i.e. the foreign key in the slave database) is set NULL (i.e. blank) after projectionThe type is undefined, nothing will happen -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the TRIPxpi protocol name for the current integrity identifierstatic TdbIntegrityType
Retrieve the integrity type ID that matches the provided namestatic TdbIntegrityType
Returns the enum constant of this class with the specified name.static TdbIntegrityType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Undefined
The type is undefined, nothing will happen -
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 -
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 -
SetNull
The target of the relationship (i.e. the foreign key in the slave database) is set NULL (i.e. blank) after projection -
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
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getTypeof
Retrieve the integrity type ID that matches the provided name- Parameters:
name
- The name to match- Returns:
- The type ID
-
getName
Return the TRIPxpi protocol name for the current integrity identifier- Returns:
- The name
-