Skip Headers

# Creating a TableDefinition Class

Previous

Next

The `TableDefinition` class includes all the information required to create a new table, including the names and properties of a table and all its fields.

The `TableDefinition` class has the following methods:

- `setName`

- `addField`

- `addPrimaryKeyField`

- `addIdentityField`

- `addForeignKeyConstraint`

All table definitions must call the `setName` method to set the name of the table that is described by the `TableDefinition`.