|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.metadata.ForeignKeyAction
public class ForeignKeyAction
Foreign keys represent a consistency constraint in the database that must be maintained. This class enumerates the actions which happens when foreign-keys are updated or deleted.
| Field Summary | |
|---|---|
static ForeignKeyAction |
CASCADE
update/delete-action="cascade". |
static ForeignKeyAction |
DEFAULT
update/delete-action="default". |
static ForeignKeyAction |
NONE
update/delete-action="none". |
static ForeignKeyAction |
NULL
update/delete-action="null". |
static ForeignKeyAction |
RESTRICT
update/delete-action="restrict". |
| Constructor Summary | |
|---|---|
protected |
ForeignKeyAction(int i)
constructor |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
static ForeignKeyAction |
getForeignKeyAction(java.lang.String value)
Return ForeignKeyDeleteAction from String. |
protected int |
getType()
Accessor for the type. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ForeignKeyAction CASCADE
public static final ForeignKeyAction RESTRICT
public static final ForeignKeyAction NULL
public static final ForeignKeyAction DEFAULT
public static final ForeignKeyAction NONE
| Constructor Detail |
|---|
protected ForeignKeyAction(int i)
i - type id| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
protected int getType()
public static ForeignKeyAction getForeignKeyAction(java.lang.String value)
value - delete-action attribute value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||