01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: PrimaryKey.java,v 1.2 2002/10/17 21:00:57 pierreg0 Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: class PrimaryKey extends CandidateKey {
14: public PrimaryKey(BaseTable table) {
15: super (table);
16: }
17:
18: public boolean equals(Object o) {
19: if (o == this )
20: return true;
21:
22: if (!(o instanceof PrimaryKey))
23: return false;
24:
25: return super .equals(o);
26: }
27:
28: public String toString() {
29: StringBuffer s = new StringBuffer("PRIMARY KEY ")
30: .append(getColumnList(columns));
31:
32: return s.toString();
33: }
34: }
|