View Javadoc
1 package com.bonevich.erj.model; 2 3 /*** A class that represents ... 4 * 5 * @see Relation 6 * @author Jeffrey D. Bonevich <bonevich@telocity.com> 7 */ 8 public class UniqueKey extends KeyConstraint 9 { 10 ////////////////////////////////////////////////////////// 11 // Constants 12 public static final String NEW_UNIQUEKEY_STR = "ak_"; 13 14 ////////////////////////////////////////////////////////// 15 // Constructors 16 public UniqueKey(Relation relation, Attribute[] attributes) 17 { 18 super(relation, attributes); 19 setIdentifier(NEW_UNIQUEKEY_STR + relation.getKeyCount()); 20 } 21 22 ////////////////////////////////////////////////////////// 23 // Operations 24 public void accept(KeyVisitor visitor) 25 { 26 visitor.visitUniqueKey(this); 27 } 28 29 } /* end class UniqueKey */

This page was automatically generated by Maven