1 21 22 package org.apache.derby.iapi.sql.dictionary; 23 24 import org.apache.derby.iapi.sql.conn.LanguageConnectionContext; 25 import org.apache.derby.iapi.error.StandardException; 26 27 import org.apache.derby.catalog.DependableFinder; 28 import org.apache.derby.iapi.services.sanity.SanityManager; 29 30 import org.apache.derby.iapi.reference.SQLState; 31 32 import org.apache.derby.impl.sql.catalog.DDdependableFinder; 34 import org.apache.derby.impl.sql.catalog.DDColumnDependableFinder; 35 36 43 44 public class TupleDescriptor 45 { 46 52 54 public static final int COLUMN_LIST = 1; 55 public static final int CONGLOMERATE_LIST = 2; 56 public static final int TRIGGER_LIST = 3; 57 public static final int CONSTRAINT_LIST = 4; 58 59 75 81 private DataDictionary dataDictionary; 82 83 89 public TupleDescriptor() {} 90 91 public TupleDescriptor(DataDictionary dataDictionary) 92 { 93 this.dataDictionary = dataDictionary; 94 } 95 96 protected DataDictionary getDataDictionary() throws StandardException 97 { 98 return dataDictionary; 99 } 100 101 protected void setDataDictionary(DataDictionary dd) 102 { 103 dataDictionary = dd; 104 } 105 106 112 public boolean isPersistent() 113 { 114 return true; 115 } 116 117 118 124 125 public DependableFinder getDependableFinder(int formatId) 126 { 127 return new DDdependableFinder(formatId); 128 } 129 130 DependableFinder getColumnDependableFinder(int formatId, byte[] 131 columnBitMap) 132 { 133 return new DDColumnDependableFinder(formatId, columnBitMap); 134 } 135 136 139 public String getDescriptorType() 140 { 141 if (SanityManager.DEBUG) {SanityManager.NOTREACHED(); } 142 return null; 143 } 144 146 public String getDescriptorName() 147 { 148 if (SanityManager.DEBUG) {SanityManager.NOTREACHED(); } 149 return null; 150 } 151 } 152 | Popular Tags |