Enum TdbIntegrityType
- java.lang.Object
-
- java.lang.Enum<TdbIntegrityType>
-
- com.tietoenator.trip.jxp.database.TdbIntegrityType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TdbIntegrityType>
public enum TdbIntegrityType extends java.lang.Enum<TdbIntegrityType>
An enumeration of the possible types of referential integrity rule
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Cascade
Modifications in the master database will automatically be projected onto the slave databaseNoAction
Nothing happens, this is the same as having no rule in placeRestrict
This is the default, which causes actions to be aborted if the action would force a rule to project a modification onto a slave databaseSetDefault
The target of the relationship (i.e. the foreign key in the slave database) is reset to its default value (if any) after projectionSetNull
The target of the relationship (i.e. the foreign key in the slave database) is set NULL (i.e. blank) after projectionUndefined
The type is undefined, nothing will happen
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Return the TRIPxpi protocol name for the current integrity identifierstatic TdbIntegrityType
getTypeof(java.lang.String name)
Retrieve the integrity type ID that matches the provided namestatic 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.
-
-
-
Enum Constant Detail
-
Undefined
public static final TdbIntegrityType Undefined
The type is undefined, nothing will happen
-
Restrict
public static final TdbIntegrityType 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
public static final TdbIntegrityType Cascade
Modifications in the master database will automatically be projected onto the slave database
-
NoAction
public static final TdbIntegrityType NoAction
Nothing happens, this is the same as having no rule in place
-
SetNull
public static final TdbIntegrityType SetNull
The target of the relationship (i.e. the foreign key in the slave database) is set NULL (i.e. blank) after projection
-
SetDefault
public static final TdbIntegrityType 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 Detail
-
values
public static TdbIntegrityType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TdbIntegrityType c : TdbIntegrityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TdbIntegrityType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getTypeof
public static TdbIntegrityType getTypeof(java.lang.String name)
Retrieve the integrity type ID that matches the provided name- Parameters:
name
- The name to match- Returns:
- The type ID
-
getName
public java.lang.String getName()
Return the TRIPxpi protocol name for the current integrity identifier- Returns:
- The name
-
-