1 21 22 package org.apache.derby.impl.sql.catalog; 23 24 import org.apache.derby.iapi.services.context.ContextImpl; 25 import org.apache.derby.iapi.services.context.ContextManager; 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.sql.dictionary.DataDictionary; 28 import org.apache.derby.iapi.sql.dictionary.DataDictionaryContext; 29 import org.apache.derby.iapi.error.ExceptionSeverity; 30 42 class DataDictionaryContextImpl 43 extends ContextImpl 44 implements DataDictionaryContext 45 { 46 public DataDictionary getDataDictionary() 54 { 55 return dataDictionary; 56 } 57 58 public void cleanupOnError(Throwable error) 59 { 60 if (error instanceof StandardException) 61 { 62 StandardException se = (StandardException)error; 63 if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) 64 return; 65 } 66 popMe(); 67 } 68 69 76 DataDictionaryContextImpl(ContextManager cm, DataDictionary dataDictionary) 77 { 78 super(cm, DataDictionaryContext.CONTEXT_ID); 79 80 this.dataDictionary = dataDictionary; 81 } 82 83 final DataDictionary dataDictionary; 84 } 85 | Popular Tags |