Class Table.TableBuilder

java.lang.Object
org.ivoa.dm.tapschema.Table.TableBuilder
Enclosing class:
Table

public static class Table.TableBuilder extends Object
A builder class for table, mainly for use in the functional builder pattern.
  • Field Details

    • table_name

      public String table_name
      name of the table.
    • table_type

      public TableType table_type
      the type of table.
    • utype

      public String utype
      utype.
    • description

      public String description
      description.
    • table_index

      public Integer table_index
      used to recommend table ordering for clients. Clients may order by index (ascending) so lower index items would appear earlier in a listing.
    • columns

      public List<Column> columns
      the columns that make up the table.
    • fkeys

      public List<ForeignKey> fkeys
      the foreign keys for this table.
  • Constructor Details

    • TableBuilder

      public TableBuilder()
  • Method Details

    • create

      public Table create()
      create a table from this builder.
      Returns:
      an object initialized from the builder.