TablePartial(final Table table) { this(requireNonNull(table, "No table provided").getSchema(), table.getName()); addAttributes(table.getAttributes()); }
TablePartial(final Table table) { this(requireNonNull(table, "No table provided").getSchema(), table.getName()); addAttributes(table.getAttributes()); }
columns.sort(columnsSort); final Schema schema = table.getSchema(); if (schema != null)
columns.sort(columnsSort); final Schema schema = table.getSchema(); if (schema != null)
private void assertReferencedColumnExists(final Catalog catalog, final Column column) { assertThat(column, notNullValue()); final Table table = column.getParent(); assertThat("Table references do not match - " + table.getName(), table == catalog.lookupTable(table.getSchema(), table.getName()) .get()); assertThat("Column references do not match", column == table.lookupColumn(column.getName()).get()); }
assertThat("Primary key table table should not be in the database - " + table.getName(), catalog.lookupTable(table.getSchema(), table.getName()), emptyOptional()); assertThat("Column references do not match",
assertThat("Could not find any columns", table0.getColumns(), not(empty())); final MutableTable table1 = new MutableTable(table0.getSchema(), "Test Table 1"); final MutableTable table2 = new MutableTable(table0.getSchema(), "Test Table 2"); final MutablePrimaryKey primaryKey = (MutablePrimaryKey) table0
@Override public DaSchema getSchema() { return new DaSchemaImpl(table.getSchema(), schemaStrategy); }
/** * {@inheritDoc} * * @see schemacrawler.schema.Schema#getTables() */ @Override public Collection<Table> getTables(final Schema schema) { final Collection<Table> values = getTables(); for (final Iterator<Table> iterator = values.iterator(); iterator.hasNext();) { final Table mutableTable = iterator.next(); if (!mutableTable.getSchema().equals(schema)) { iterator.remove(); } } return values; }
private Color getTableNameBgColor(final Table table) { final Color tableNameBgColor; final Schema schema = table.getSchema(); if (!colorMap.containsKey(schema)) { tableNameBgColor = pastelColorHTMLValue(schema.getFullName()); colorMap.put(schema, tableNameBgColor); } else { tableNameBgColor = colorMap.get(schema); } return tableNameBgColor; }
TablePartial(final Table table) { this(requireNonNull(table, "No table provided").getSchema(), table.getName()); addAttributes(table.getAttributes()); }
TablePartial(final Table table) { this(requireNonNull(table, "No table provided").getSchema(), table.getName()); addAttributes(table.getAttributes()); }
columns.sort(columnsSort); final Schema schema = table.getSchema(); if (schema != null)
columns.sort(columnsSort); final Schema schema = table.getSchema(); if (schema != null)