@Target(value=FIELD)
@Retention(value=CLASS)
public @interface ForeignKey
An annotation that indicates a member should define its SQLite column using the FOREIGN KEY constraint. Must be used
in conjunction with Column.
http://www.sqlite.org/foreignkeys.html http://www.sqlite.org/syntaxdiagrams.html#column-def
| Modifier and Type | Optional Element and Description |
|---|---|
ForeignKey.Deferrable |
deferrable
Returns an enforcement behavior, deferred or immediate.
|
ForeignKey.DeferrableTiming |
deferrableTiming
Returns the initial enforcement behavior.
|
java.lang.String[] |
foreignColumns
Optional set of columns to reference on the foreign table.
|
ForeignKey.ReferentialAction |
onDelete
Referential action to perform upon deletion of this key.
|
ForeignKey.ReferentialAction |
onUpdate
Referential action to perform upon update of this key.
|
public abstract java.lang.String[] foreignColumns
public abstract ForeignKey.ReferentialAction onDelete
public abstract ForeignKey.ReferentialAction onUpdate
public abstract ForeignKey.Deferrable deferrable
public abstract ForeignKey.DeferrableTiming deferrableTiming