org.sql.generation.api.grammar.definition.table
Class ReferentialAction

java.lang.Object
  extended by org.sql.generation.api.grammar.definition.table.ReferentialAction

public final class ReferentialAction
extends java.lang.Object

This enum represents the five referential actions of SQL. These are CASCADE, SET_NULL, SET_DEFAULT, RESTRICT, and NO_ACTION.

Author:
Stanislav Muhametsin

Field Summary
static ReferentialAction CASCADE
          Represents the cascading policy (CASCADE.
static ReferentialAction NO_ACTION
          Represents the policy, which checks the integrity after UPDATE or DELETE statement, and the statement will not be executed if it violates integrity.
static ReferentialAction RESTRICT
          Represents the policy, which checks the integrity before UPDATE or DELETE statement, and the statement will not be executed if it violates integrity.
static ReferentialAction SET_DEFAULT
          Represents the policy, which sets the value as default (SET DEFAULT.
static ReferentialAction SET_NULL
          Represents the policy, which sets the value as NULL (SET NULL.
 
Constructor Summary
ReferentialAction()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CASCADE

public static final ReferentialAction CASCADE
Represents the cascading policy (CASCADE.


SET_NULL

public static final ReferentialAction SET_NULL
Represents the policy, which sets the value as NULL (SET NULL.


SET_DEFAULT

public static final ReferentialAction SET_DEFAULT
Represents the policy, which sets the value as default (SET DEFAULT.


RESTRICT

public static final ReferentialAction RESTRICT
Represents the policy, which checks the integrity before UPDATE or DELETE statement, and the statement will not be executed if it violates integrity.


NO_ACTION

public static final ReferentialAction NO_ACTION
Represents the policy, which checks the integrity after UPDATE or DELETE statement, and the statement will not be executed if it violates integrity.

Constructor Detail

ReferentialAction

public ReferentialAction()


Copyright © 2010. All Rights Reserved.