public static class DbFk.Builder extends Object implements Builder<DbFk>, Serializable
DbFk objects.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DbFk.Builder |
addColumn(String... columns)
Adds local columns (from the child table, where the foreign key is defined) to match the ones from the
referenced table (parent table).
|
DbFk.Builder |
addColumns(Collection<String> columns)
Adds local columns (from the child table, where the foreign key is defined) to match the ones from the
referenced table (parent table).
|
DbFk.Builder |
addForeignColumn(String... columns)
Deprecated.
a "foreign key" is actually composed from the local columns of the table where it is defined (the
child table); this name is wrong and will eventually be removed ─ use
addReferencedColumn(String...)
instead. |
DbFk.Builder |
addForeignColumns(Collection<String> columns)
Deprecated.
a "foreign key" is actually composed from the local columns of the table where it is defined (the
child table); this name is wrong and will eventually be removed ─ use
addReferencedColumns(Collection)
instead. |
DbFk.Builder |
addReferencedColumn(String... columns)
Adds columns from the referenced table (parent table) to match the local ones.
|
DbFk.Builder |
addReferencedColumns(Collection<String> columns)
Adds columns from the referenced table (parent table) to match the local ones.
|
DbFk |
build()
Builds the final immutable instance.
|
DbFk.Builder |
foreignTable(String referencedTable)
Deprecated.
a "foreign key" is actually composed from the local columns of the table where it is defined (the
child table); this name is wrong and will eventually be removed ─ use
referencedTable(String)
instead. |
DbFk.Builder |
referencedTable(String referencedTable)
Sets the name of the referenced table (parent table).
|
@Deprecated public DbFk.Builder foreignTable(String referencedTable)
referencedTable(String)
instead.referencedTable - The referenced table name.public DbFk.Builder referencedTable(String referencedTable)
referencedTable - The referenced table name.public DbFk.Builder addColumn(String... columns)
columns - The columns.public DbFk.Builder addColumns(Collection<String> columns)
columns - The columns.@Deprecated public DbFk.Builder addForeignColumn(String... columns)
addReferencedColumn(String...)
instead.columns - The columns.@Deprecated public DbFk.Builder addForeignColumns(Collection<String> columns)
addReferencedColumns(Collection)
instead.columns - The columns.public DbFk.Builder addReferencedColumn(String... columns)
columns - The columns.public DbFk.Builder addReferencedColumns(Collection<String> columns)
columns - The columns.Copyright © 2021 Feedzai. All rights reserved.