1 package com.daffodilwoods.daffodildb.server.serversystem.dmlvalidation.triggersystem; 2 3 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 4 import com.daffodilwoods.daffodildb.utils.comparator.*; 5 import com.daffodilwoods.database.general.*; 6 import com.daffodilwoods.database.resource.*; 7 8 15 public class TriggerSystem implements _TriggerSystem{ 16 17 20 private _DataDictionarySystem dataDictionarySystem; 21 22 25 private WeakOrderedKeyList triggerDatabaseList = new WeakOrderedKeyList( new CTusjohDbtfJoTfotjujwfDpnqbsbups()); 26 27 32 public TriggerSystem( _DataDictionarySystem dataDictionarySystem ) throws DException { 33 this.dataDictionarySystem = dataDictionarySystem; 34 } 35 36 44 45 public _TriggerDatabase getTriggerDatabase(String databaseURL) throws DException { 46 _TriggerDatabase triggerDatabase = (_TriggerDatabase)triggerDatabaseList.get(databaseURL); 47 if( triggerDatabase != null ) 48 return triggerDatabase; 49 triggerDatabaseList.put(databaseURL , triggerDatabase = new TriggerDatabase(dataDictionarySystem.getDataDictionary( databaseURL ).getDDSTriggerOperation()) ); 50 return triggerDatabase; 51 } 52 53 public void deleteDatabase(String parm1) throws com.daffodilwoods.database.resource.DException { 54 try { 55 triggerDatabaseList.delete(parm1); 56 } 57 catch (DException ex) { 58 } 59 } 60 } 61 | Popular Tags |