1 21 22 package org.apache.derby.iapi.sql.dictionary; 23 24 25 import org.apache.derby.catalog.UUID; 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 37 38 public abstract class SubConstraintDescriptor extends TupleDescriptor 39 implements UniqueTupleDescriptor 40 { 41 42 51 52 TableDescriptor td; 54 UUID constraintId; 55 56 61 62 SubConstraintDescriptor(UUID constraintId) 63 { 64 this.constraintId = constraintId; 65 } 66 67 72 public void setConstraintId(UUID constraintId) 73 { 74 this.constraintId = constraintId; 75 } 76 77 82 public UUID getUUID() 83 { 84 return constraintId; 85 } 86 87 92 public abstract boolean hasBackingIndex(); 93 94 100 public void setTableDescriptor(TableDescriptor td) 101 { 102 this.td = td; 103 } 104 105 112 public TableDescriptor getTableDescriptor() 113 { 114 return td; 115 } 116 117 122 123 public String toString() 124 { 125 if (SanityManager.DEBUG) 126 { 127 return "constraintId: " + constraintId + "\n"; 128 } 129 else 130 { 131 return ""; 132 } 133 } 134 135 } 136 | Popular Tags |