1 21 22 package org.apache.derby.iapi.sql.dictionary; 23 24 25 import org.apache.derby.catalog.ReferencedColumns; 26 import org.apache.derby.catalog.UUID; 27 28 import org.apache.derby.iapi.services.sanity.SanityManager; 29 38 39 public class SubCheckConstraintDescriptor extends SubConstraintDescriptor 40 { 41 47 48 private ReferencedColumns referencedColumns; 50 private String constraintText; 51 52 59 60 public SubCheckConstraintDescriptor(UUID constraintId, String constraintText, 61 ReferencedColumns referencedColumns) 62 { 63 super(constraintId); 64 this.constraintText = constraintText; 65 this.referencedColumns = referencedColumns; 66 } 67 68 73 public String getConstraintText() 74 { 75 return constraintText; 76 } 77 78 83 public ReferencedColumns getReferencedColumnsDescriptor() 84 { 85 return referencedColumns; 86 } 87 88 93 public boolean hasBackingIndex() 94 { 95 return false; 96 } 97 98 103 104 public String toString() 105 { 106 if (SanityManager.DEBUG) 107 { 108 return "constraintText: " + constraintText + "\n" + 109 super.toString(); 110 } 111 else 112 { 113 return ""; 114 } 115 } 116 117 } 118 | Popular Tags |