org.jpox.metadata
Class ForeignKeyUpdateAction

java.lang.Object
  extended byorg.jpox.metadata.ForeignKeyAction
      extended byorg.jpox.metadata.ForeignKeyUpdateAction
All Implemented Interfaces:
java.io.Serializable

public class ForeignKeyUpdateAction
extends ForeignKeyAction

Foreign keys represent a consistency constraint in the database that must be maintained. The user can specify by the update-action attribute what happens if the target row of a foreign key is updated See jdo specification 2.0 §15.5

Since:
1.1
Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
static ForeignKeyUpdateAction CASCADE
          update-action="cascade".
static ForeignKeyUpdateAction DEFAULT
          update-action="default".
static ForeignKeyUpdateAction DEFAULT_ACTION
          the default action
static ForeignKeyUpdateAction NULL
          update-action="null".
static ForeignKeyUpdateAction RESTRICT
          update-action="restrict".
 
Method Summary
static ForeignKeyUpdateAction getForeignKeyUpdateAction(java.lang.String value)
          Return ForeignKeyUpdateAction from String.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jpox.metadata.ForeignKeyAction
equals, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CASCADE

public static final ForeignKeyUpdateAction CASCADE
update-action="cascade". The database will automatically update all rows that refer to the row being updated


RESTRICT

public static final ForeignKeyUpdateAction RESTRICT
update-action="restrict". The user is required to explicitly make the relationship valid by application code


NULL

public static final ForeignKeyUpdateAction NULL
update-action="null". The database will automatically nullify the columns in all rows that refer to the row being updated


DEFAULT

public static final ForeignKeyUpdateAction DEFAULT
update-action="default". The database will automatically set the columns in all rows that refer to the row being updated to their default value


DEFAULT_ACTION

public static final ForeignKeyUpdateAction DEFAULT_ACTION
the default action

Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.

getForeignKeyUpdateAction

public static ForeignKeyUpdateAction getForeignKeyUpdateAction(java.lang.String value)
Return ForeignKeyUpdateAction from String.

Parameters:
value - update-action attribute value
Returns:
Instance of ForeignKeyUpdateAction. If value invalid, return null.


Copyright © -2007 . All Rights Reserved.