1 21 22 package org.apache.derby.impl.sql.conn; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.sql.dictionary.TableDescriptor; 26 27 30 178 class TempTableInfo 179 { 180 181 private TableDescriptor td; 182 private int declaredInSavepointLevel; 183 private int droppededInSavepointLevel; 184 private int dataModifiedInSavepointLevel; 185 186 TempTableInfo(TableDescriptor td, int declaredInSavepointLevel) 187 { 188 this.td = td; 189 this.declaredInSavepointLevel = declaredInSavepointLevel; 190 this.droppededInSavepointLevel = -1; 191 this.dataModifiedInSavepointLevel = -1; 192 } 193 194 197 TableDescriptor getTableDescriptor() { 198 return td; 199 } 200 201 204 void setTableDescriptor(TableDescriptor td) { 205 this.td = td; 206 } 207 208 211 boolean matches(String tableName) { 212 return (td.getName().equals(tableName) && droppededInSavepointLevel == -1); 213 } 214 215 218 int getModifiedInSavepointLevel() { 219 return dataModifiedInSavepointLevel; 220 } 221 222 225 void setModifiedInSavepointLevel(int dataModifiedInSavepointLevel) { 226 this.dataModifiedInSavepointLevel = dataModifiedInSavepointLevel; 227 } 228 229 232 int getDeclaredInSavepointLevel() { 233 return declaredInSavepointLevel; 234 } 235 236 239 void setDeclaredInSavepointLevel(int declaredInSavepointLevel) { 240 this.declaredInSavepointLevel = declaredInSavepointLevel; 241 } 242 243 246 int getDroppedInSavepointLevel() { 247 return droppededInSavepointLevel; 248 } 249 250 253 public void setDroppedInSavepointLevel(int droppededInSavepointLevel) { 254 this.droppededInSavepointLevel = droppededInSavepointLevel; 255 } 256 } 257 | Popular Tags |