1 package com.daffodilwoods.daffodildb.server.sql99.dql.execution; 2 3 import com.daffodilwoods.daffodildb.server.sql99.common.*; 4 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 5 import com.daffodilwoods.database.resource.*; 6 7 17 18 public class StringReference implements _Reference { 19 20 23 24 private int index; 25 int size; 26 27 30 31 private String columnName; 32 33 36 37 private String tableName; 38 39 42 43 private TableDetails table; 44 45 48 49 private ColumnDetails cd; 50 51 private String reason; 52 public StringReference(ColumnDetails cc) throws DException { 53 cd = cc; 54 columnName = cd.getQualifiedColumnName(); 55 tableName = cd.getNameOfTable(); 56 } 57 58 63 64 public String getColumn() throws DException { 65 return columnName; 66 } 67 68 73 74 public String getTableName() throws DException { 75 return tableName; 76 } 77 78 83 84 public int getIndex() throws DException { 85 return index; 86 } 87 88 93 94 public void setIndex(int index0) throws DException { 95 index = index0; 96 } 97 98 103 104 public void setTableDetails(TableDetails table0) throws DException { 105 table = table0; 106 } 107 108 113 114 public TableDetails getTableDetails() throws DException { 115 return table; 116 } 117 118 123 124 public String getQualifiedColumnName() throws DException { 125 return columnName; 126 } 127 128 132 133 public ColumnDetails getColumnDetails() { 134 return cd; 135 } 136 137 140 141 public int getReferenceType() throws DException { 142 143 throw new java.lang.UnsupportedOperationException ( 144 "Method getReferenceType() not yet implemented."); 145 } 146 147 public String toString() { 148 return " TABLENAME : " + tableName + " COLUMNNAME : " + columnName; 149 } 150 151 public String getTriggerTableAlias() throws DException { 152 throw new java.lang.UnsupportedOperationException ( 153 "Method getTriggerTableAlias() not yet implemented."); 154 } 155 156 public int getDatatype() throws DException { 157 throw new UnsupportedOperationException (); 158 } 159 160 public void setDatatype(int type) throws DException { 161 throw new UnsupportedOperationException (); 162 } 163 164 public void setSize(int size0) throws DException { 165 size = size0; 166 } 167 168 public int getSize() throws DException { 169 return size; 170 } 171 public void setReason(String reason0) throws DException { 172 reason = reason0; 173 } 174 175 public String getReason() throws DException { 176 return reason; 177 } 178 179 180 boolean isCloned; 181 public boolean isCloned(){ 182 return isCloned; 183 } 184 public void setCloned(boolean isCloned0){ 185 isCloned=isCloned0; 186 } 187 188 189 } 190 | Popular Tags |