31 lines
674 B
Java
31 lines
674 B
Java
package androidx.room;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
@Retention(RetentionPolicy.CLASS)
|
|
public @interface ForeignKey {
|
|
public static final int CASCADE = 5;
|
|
public static final int NO_ACTION = 1;
|
|
public static final int RESTRICT = 2;
|
|
public static final int SET_DEFAULT = 4;
|
|
public static final int SET_NULL = 3;
|
|
|
|
@Retention(RetentionPolicy.CLASS)
|
|
public @interface Action {
|
|
}
|
|
|
|
String[] childColumns();
|
|
|
|
boolean deferred() default false;
|
|
|
|
Class<?> entity();
|
|
|
|
@Action
|
|
int onDelete() default 1;
|
|
|
|
@Action
|
|
int onUpdate() default 1;
|
|
|
|
String[] parentColumns();
|
|
}
|