Constructor and Description |
---|
TableBuilder()
Constructs a new table builder.
|
Modifier and Type | Method and Description |
---|---|
Table |
build(DB db)
Build the table object.
|
TableBuilder |
columns(String... columns)
Set columns.
|
TableBuilder |
key(String... columns)
Set key columns.
|
TableBuilder |
name(String name)
Set table name.
|
public TableBuilder name(String name)
name
- Name for the table.@SafeVarargs public final TableBuilder columns(String... columns)
columns
- Columns for the table.@SafeVarargs public final TableBuilder key(String... columns)
Values for the key columns are used to uniquely identify database rows, e.g., they
can be set to the columns that define the table's primary key. The key
columns are used by key-based operations like JDBDT.delete(DataSet)
and JDBDT.update(DataSet)
.
columns
- Columns for the table.Copyright © 2016–2021 JDBDT. All rights reserved.