| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.ddl |
Contains classes that aid on DDL creation.
|
| com.feedzai.commons.sql.abstraction.dml.dialect |
Contains an SQL builder.
|
| Modifier and Type | Method and Description |
|---|---|
DbFk.Builder |
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 |
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 |
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 |
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 |
DbFk.Builder.addReferencedColumn(String... columns)
Adds columns from the referenced table (parent table) to match the local ones.
|
DbFk.Builder |
DbFk.Builder.addReferencedColumns(Collection<String> columns)
Adds columns from the referenced table (parent table) to match the local ones.
|
DbFk.Builder |
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 |
DbFk.Builder.referencedTable(String referencedTable)
Sets the name of the referenced table (parent table).
|
| Modifier and Type | Method and Description |
|---|---|
DbEntity.Builder |
DbEntity.Builder.addFk(DbFk.Builder... fks)
Adds the FKs.
|
| Modifier and Type | Method and Description |
|---|---|
static DbFk.Builder |
SqlBuilder.dbFk()
Creates a Database Foreign Key builder.
|
Copyright © 2021 Feedzai. All rights reserved.