| 513 | } |
| 514 | |
| 515 | @Override |
| 516 | public boolean equals(final Object obj) { |
| 517 | if (this == obj) { |
| 518 | return true; |
| 519 | } |
| 520 | if (obj == null || getClass() != obj.getClass()) { |
| 521 | return false; |
| 522 | } |
| 523 | final PStmtKey other = (PStmtKey) obj; |
| 524 | if (!Objects.equals(autoGeneratedKeys, other.autoGeneratedKeys) || !Objects.equals(catalog, other.catalog) |
| 525 | || !Arrays.equals(columnIndexes, other.columnIndexes) || !Arrays.equals(columnNames, other.columnNames)) { |
| 526 | return false; |
| 527 | } |
| 528 | if (!Objects.equals(resultSetConcurrency, other.resultSetConcurrency) || !Objects.equals(resultSetHoldability, other.resultSetHoldability) |
| 529 | || !Objects.equals(resultSetType, other.resultSetType) || !Objects.equals(schema, other.schema)) { |
| 530 | return false; |
| 531 | } |
| 532 | if (!Objects.equals(sql, other.sql)) { |
| 533 | return false; |
| 534 | } |
| 535 | return statementType == other.statementType; |
| 536 | } |
| 537 | |
| 538 | /** |
| 539 | * Gets a flag indicating whether auto-generated keys should be returned; one of {@link Statement#RETURN_GENERATED_KEYS} |