@Test public void testUpsert(){ try { OptTemplateRef optTemplateRef = new OptTemplateRef(testDomainAccess); optTemplateRef.upsert(); } catch (Exception e) { e.printStackTrace(); } }
@Override public void upsert() throws Exception { Map<String,Collection<Map<String, String>>> operationalTemplateMap = getKnowledgeManager().listOperationalTemplates(); int count = 0; for (Map<String, String> defMap: operationalTemplateMap.get(getKnowledgeManager().TEMPLATES)){ if (defMap.containsKey(getKnowledgeManager().ERROR)) continue; else { ++count; upsertEntry(defMap); } } log.info("Created:"+count+" template entries"); }
OptTemplateRef extends DataAccess implements I_OptTemplateRef { @Override public void upsert() throws Exception { Map<String,Collection<Map<String, String>>> operationalTemplateMap = getKnowledgeManager().listOperationalTemplates(); int count = 0; for (Map<String, String> defMap: operationalTemplateMap.get(getKnowledgeManager().TEMPLATES)){ if (defMap.containsKey(getKnowledgeManager().ERROR)) continue; else { ++count; upsertEntry(defMap); } } log.info("Created:"+count+" template entries"); } }
OptTemplateRef extends DataAccess implements I_OptTemplateRef { @Override public void upsert() throws Exception { Map<String,Collection<Map<String, String>>> operationalTemplateMap = getKnowledgeManager().listOperationalTemplates(); int count = 0; for (Map<String, String> defMap: operationalTemplateMap.get(getKnowledgeManager().TEMPLATES)){ if (defMap.containsKey(getKnowledgeManager().ERROR)) continue; else { ++count; upsertEntry(defMap); } } log.info("Created:"+count+" template entries"); } OptTemplateRef(I_DomainAccess domainAccess);  OptTemplateRef(DSLContext context, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); }
OptTemplateRef extends DataAccess implements I_OptTemplateRef { @Override public void upsert() throws Exception { Map<String,Collection<Map<String, String>>> operationalTemplateMap = getKnowledgeManager().listOperationalTemplates(); int count = 0; for (Map<String, String> defMap: operationalTemplateMap.get(getKnowledgeManager().TEMPLATES)){ if (defMap.containsKey(getKnowledgeManager().ERROR)) continue; else { ++count; upsertEntry(defMap); } } log.info("Created:"+count+" template entries"); } OptTemplateRef(I_DomainAccess domainAccess);  OptTemplateRef(DSLContext context, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); @Override void upsert(); @Override void deleteAll(); @Override DataAccess getDataAccess(); }
OptTemplateRef extends DataAccess implements I_OptTemplateRef { @Override public void upsert() throws Exception { Map<String,Collection<Map<String, String>>> operationalTemplateMap = getKnowledgeManager().listOperationalTemplates(); int count = 0; for (Map<String, String> defMap: operationalTemplateMap.get(getKnowledgeManager().TEMPLATES)){ if (defMap.containsKey(getKnowledgeManager().ERROR)) continue; else { ++count; upsertEntry(defMap); } } log.info("Created:"+count+" template entries"); } OptTemplateRef(I_DomainAccess domainAccess);  OptTemplateRef(DSLContext context, I_KnowledgeCache knowledgeCache, I_IntrospectCache introspectCache); @Override void upsert(); @Override void deleteAll(); @Override DataAccess getDataAccess();  }