public final class

TableInfo.ForeignKey

extends java.lang.Object

 java.lang.Object

↳androidx.room.util.TableInfo.ForeignKey

Overview

Holds the information about an SQLite foreign key

Summary

Fields
public final java.util.List<java.lang.String>columnNames

public final java.lang.StringonDelete

public final java.lang.StringonUpdate

public final java.util.List<java.lang.String>referenceColumnNames

public final java.lang.StringreferenceTable

Constructors
publicForeignKey(java.lang.String referenceTable, java.lang.String onDelete, java.lang.String onUpdate, java.util.List<java.lang.String> columnNames, java.util.List<java.lang.String> referenceColumnNames)

Methods
public booleanequals(java.lang.Object o)

public inthashCode()

public java.lang.StringtoString()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

public final java.lang.String referenceTable

public final java.lang.String onDelete

public final java.lang.String onUpdate

public final java.util.List<java.lang.String> columnNames

public final java.util.List<java.lang.String> referenceColumnNames

Constructors

public ForeignKey(java.lang.String referenceTable, java.lang.String onDelete, java.lang.String onUpdate, java.util.List<java.lang.String> columnNames, java.util.List<java.lang.String> referenceColumnNames)

Methods

public boolean equals(java.lang.Object o)

public int hashCode()

public java.lang.String toString()