Class ForeignKey.Builder (2.38.1)

public abstract static class ForeignKey.Builder

Inheritance

java.lang.Object > ForeignKey.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract ForeignKey build()

Creates a ForignKey object.

Returns
TypeDescription
ForeignKey

setColumnReferences(List<ColumnReference> columnReferences)

public abstract ForeignKey.Builder setColumnReferences(List<ColumnReference> columnReferences)

The set of column references for this foreign key. *

Parameter
NameDescription
columnReferencesList<ColumnReference>
Returns
TypeDescription
ForeignKey.Builder

setName(String name)

public abstract ForeignKey.Builder setName(String name)

The name of the foreign key. *

Parameter
NameDescription
nameString
Returns
TypeDescription
ForeignKey.Builder

setReferencedTable(TableId referencedTable)

public abstract ForeignKey.Builder setReferencedTable(TableId referencedTable)

The table referenced by this foreign key. *

Parameter
NameDescription
referencedTableTableId
Returns
TypeDescription
ForeignKey.Builder