1 10 11 package com.triactive.jdo.store; 12 13 14 class PrimaryKey extends CandidateKey 15 { 16 public PrimaryKey(BaseTable table) 17 { 18 super(table); 19 } 20 21 22 public boolean equals(Object o) 23 { 24 if (o == this) 25 return true; 26 27 if (!(o instanceof PrimaryKey)) 28 return false; 29 30 return super.equals(o); 31 } 32 33 34 public String toString() 35 { 36 StringBuffer s = new StringBuffer ("PRIMARY KEY ").append(getColumnList(columns)); 37 38 return s.toString(); 39 } 40 } 41 | Popular Tags |