/** * Adds the Indexes to the new table. */ public TableBuilder addIndexes(Collection<? extends IndexBuilder> indexes) { if(indexes != null) { for(IndexBuilder col : indexes) { addIndex(col); } } return this; }
/** * Sets the names of the primary key columns for this table. Convenience * method for creating a primary key index on a table. */ public TableBuilder setPrimaryKey(String... colNames) { addIndex(new IndexBuilder(IndexBuilder.PRIMARY_KEY_NAME) .addColumns(colNames).setPrimaryKey()); return this; }