| 461 | } |
| 462 | |
| 463 | @Override |
| 464 | public boolean equals(Object obj) { |
| 465 | if (obj == this) { |
| 466 | return true; |
| 467 | } |
| 468 | if (!(obj instanceof Schema)) { |
| 469 | return false; |
| 470 | } |
| 471 | Schema that = (Schema) obj; |
| 472 | if (this.getPrimaryKeyColumnCount() != that.getPrimaryKeyColumnCount()) { |
| 473 | return false; |
| 474 | } |
| 475 | if (this.getColumns().size() != that.getColumns().size()) { |
| 476 | return false; |
| 477 | } |
| 478 | for (int i = 0; i < this.getColumns().size(); i++) { |
| 479 | if (!this.getColumnByIndex(i).equals(that.getColumnByIndex(i))) { |
| 480 | return false; |
| 481 | } |
| 482 | } |
| 483 | return true; |
| 484 | } |
| 485 | |
| 486 | @Override |
| 487 | public int hashCode() { |