Rule

Inheritance: java.lang.Object, java.lang.Enum

public enum Rule extends Enum<System.Data.Rule>

Indicates the action that occurs when a ForeignKeyConstraint is enforced.

Fields

FieldDescription
CASCADEDelete or update related rows.
NONENo action taken on related rows.
SET_DEFAULTSet values in related rows to the value contained in the DataColumn.getDefaultValue() / DataColumn.setDefaultValue(java.lang.Object) property.
SET_NULLSet values in related rows to DBNull.

Methods

MethodDescription
valueOf(Class arg0, String arg1)
compareTo(E arg0)
equals(Object arg0)
getDeclaringClass()
hashCode()
name()
ordinal()
toString()
valueOf(String name)
values()

CASCADE

public static final System.Data.Rule CASCADE

Delete or update related rows. This is the default.

NONE

public static final System.Data.Rule NONE

No action taken on related rows.

SET_DEFAULT

public static final System.Data.Rule SET_DEFAULT

Set values in related rows to the value contained in the DataColumn.getDefaultValue() / DataColumn.setDefaultValue(java.lang.Object) property.

SET_NULL

public static final System.Data.Rule SET_NULL

Set values in related rows to DBNull.

valueOf(Class arg0, String arg1)

public static T <T>valueOf(Class<T> arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String

Returns: T

compareTo(E arg0)

public final int compareTo(E arg0)

Parameters:

ParameterTypeDescription
arg0E

Returns: int

equals(Object arg0)

public final boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getDeclaringClass()

public final Class<E> getDeclaringClass()

Returns: java.lang.Class

hashCode()

public final int hashCode()

Returns: int

name()

public final String name()

Returns: java.lang.String

ordinal()

public final int ordinal()

Returns: int

toString()

public String toString()

Returns: java.lang.String

valueOf(String name)

public static System.Data.Rule valueOf(String name)

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: Rule

values()

public static System.Data.Rule[] values()

Returns: com.aspose.words.net.System.Data.Rule[]