/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
final List<IndexColumn> thatColumns = that.getColumns(); compareTo = CompareUtility.compareLists(thisColumns, thatColumns);
final List<IndexColumn> thatColumns = that.getColumns(); compareTo = CompareUtility.compareLists(thisColumns, thatColumns);
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final ForeignKey other = (ForeignKey) obj; final List<ForeignKeyColumnReference> thisColumnReferences = getColumnReferences(); final List<ForeignKeyColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
/** * {@inheritDoc} * <p> * Note: Since foreign keys are not always explicitly named in * databases, the sorting routine orders the foreign keys by the names * of the columns in the foreign keys. * </p> */ @Override public int compareTo(final NamedObject obj) { if (obj == null) { return -1; } final BaseForeignKey<?> other = (BaseForeignKey<?>) obj; final List<? extends ColumnReference> thisColumnReferences = getColumnReferences(); final List<? extends ColumnReference> otherColumnReferences = other .getColumnReferences(); return CompareUtility.compareLists(thisColumnReferences, otherColumnReferences); }
final List<IndexColumn> thatColumns = that.getColumns(); compareTo = CompareUtility.compareLists(thisColumns, thatColumns);
final List<IndexColumn> thatColumns = that.getColumns(); compareTo = CompareUtility.compareLists(thisColumns, thatColumns);
final List<IndexColumn> thatColumns = that.getColumns(); compareTo = CompareUtility.compareLists(thisColumns, thatColumns);