/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
protected boolean isColumnSignificant(final Column column) { return column != null && (column instanceof IndexColumn || column.isPartOfPrimaryKey() || column.isPartOfForeignKey() || column.isPartOfIndex()); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} * * @see schemacrawler.schema.Column#isPartOfPrimaryKey() */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
/** * {@inheritDoc} * * @see schemacrawler.schema.Column#isPartOfPrimaryKey() */ @Override public boolean isPartOfPrimaryKey() { return column.isPartOfPrimaryKey(); }
public boolean isValid() { final Column primaryKeyColumn = getPrimaryKeyColumn(); final Column foreignKeyColumn = getForeignKeyColumn(); final Table pkTable = primaryKeyColumn.getParent(); final Table fkTable = foreignKeyColumn.getParent(); if ((foreignKeyColumn.isPartOfPrimaryKey() || foreignKeyColumn.isPartOfUniqueIndex()) && pkTable.compareTo(fkTable) > 0) { return false; } final ColumnDataType fkColumnType = foreignKeyColumn.getColumnDataType(); final ColumnDataType pkColumnType = primaryKeyColumn.getColumnDataType(); final boolean isValid = fkColumnType.getJavaSqlType().getName() .equals(pkColumnType.getJavaSqlType().getName()); return isValid; }
if (pkColumn.isPartOfPrimaryKey())
column.isNullable()); columnDetails = columnType + nullable; emphasize = column.isPartOfPrimaryKey();
out.println(String.format(" - %s=%s", "part of primary key", column.isPartOfPrimaryKey())); out.println(String.format(" - %s=%s", "part of foreign key",
column.isNullable()); final String columnDetails = columnType + nullable; final boolean emphasize = column.isPartOfPrimaryKey();
protected boolean isColumnSignificant(final Column column) { return column != null && (column instanceof IndexColumn || column.isPartOfPrimaryKey() || column.isPartOfForeignKey() || column.isPartOfIndex()); }
protected boolean isColumnSignificant(final Column column) { return column != null && (column instanceof IndexColumn || column.isPartOfPrimaryKey() || column.isPartOfForeignKey() || column.isPartOfIndex()); }
public boolean isValid() { final Column primaryKeyColumn = getPrimaryKeyColumn(); final Column foreignKeyColumn = getForeignKeyColumn(); final Table pkTable = primaryKeyColumn.getParent(); final Table fkTable = foreignKeyColumn.getParent(); if ((foreignKeyColumn.isPartOfPrimaryKey() || foreignKeyColumn.isPartOfUniqueIndex()) && pkTable.compareTo(fkTable) > 0) { return false; } final ColumnDataType fkColumnType = foreignKeyColumn.getColumnDataType(); final ColumnDataType pkColumnType = primaryKeyColumn.getColumnDataType(); final boolean isValid = fkColumnType.getJavaSqlType().getName() .equals(pkColumnType.getJavaSqlType().getName()); return isValid; }
public boolean isValid() { final Column primaryKeyColumn = getPrimaryKeyColumn(); final Column foreignKeyColumn = getForeignKeyColumn(); final Table pkTable = primaryKeyColumn.getParent(); final Table fkTable = foreignKeyColumn.getParent(); if ((foreignKeyColumn.isPartOfPrimaryKey() || foreignKeyColumn.isPartOfUniqueIndex()) && pkTable.compareTo(fkTable) > 0) { return false; } final ColumnDataType fkColumnType = foreignKeyColumn.getColumnDataType(); final ColumnDataType pkColumnType = primaryKeyColumn.getColumnDataType(); final boolean isValid = fkColumnType.getJavaSqlType().getName() .equals(pkColumnType.getJavaSqlType().getName()); return isValid; }