@Test public void setupPgJdbc42Access() throws Exception { Map<String, Object> properties = new HashMap<>(); properties.put(I_DomainAccess.KEY_KNOWLEDGE, knowledge); properties.put(I_DomainAccess.KEY_DIALECT, "POSTGRES"); properties.put(I_DomainAccess.KEY_URL, "jdbc:postgresql: properties.put(I_DomainAccess.KEY_PGJDBC_PREFIX+".user", System.getProperty("test.db.user")); properties.put(I_DomainAccess.KEY_PGJDBC_PREFIX+".password", System.getProperty("test.db.password")); try { testDomainAccess = new DummyDataAccess(properties); } catch (Exception e) { e.printStackTrace(); } context = testDomainAccess.getContext(); Result result = context.fetch("SELECT 1"); assertEquals("1", result.getValue(0, "?column?").toString()); }
@Override public DSLContext getContext() { return context; }
DataAccess implements I_DomainAccess { @Override public DSLContext getContext() { return context; } }
DataAccess implements I_DomainAccess { @Override public DSLContext getContext() { return context; } DataAccess(SQLDialect dialect, String DBURL, String login, String password, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(Map<String, Object> properties);  DataAccess(DSLContext context, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(I_DomainAccess domainAccess); }
DataAccess implements I_DomainAccess { @Override public DSLContext getContext() { return context; } DataAccess(SQLDialect dialect, String DBURL, String login, String password, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(Map<String, Object> properties);  DataAccess(DSLContext context, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(I_DomainAccess domainAccess); @Override SQLDialect getDialect(); @Override Connection getConnection(); @Override void releaseConnection(Connection connection); @Override DSLContext getContext(); @Override I_KnowledgeCache getKnowledgeManager(); @Override I_IntrospectCache getIntrospectCache(); @Override I_IntrospectCache initializeIntrospectCache(); @Override void setKnowledgeManager(I_KnowledgeCache knowledgeCache); @Override String getServerNodeId(); }
DataAccess implements I_DomainAccess { @Override public DSLContext getContext() { return context; } DataAccess(SQLDialect dialect, String DBURL, String login, String password, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(Map<String, Object> properties);  DataAccess(DSLContext context, I_KnowledgeCache knowledgeManager, I_IntrospectCache introspectCache);  DataAccess(I_DomainAccess domainAccess); @Override SQLDialect getDialect(); @Override Connection getConnection(); @Override void releaseConnection(Connection connection); @Override DSLContext getContext(); @Override I_KnowledgeCache getKnowledgeManager(); @Override I_IntrospectCache getIntrospectCache(); @Override I_IntrospectCache initializeIntrospectCache(); @Override void setKnowledgeManager(I_KnowledgeCache knowledgeCache); @Override String getServerNodeId();  }