Search in sources :

Example 1 with DataAccess

use of org.ehrbase.dao.access.support.DataAccess in project ehrbase by ehrbase.

the class I_DomainAccessTest method buildDomainAccess.

public static I_DomainAccess buildDomainAccess(DSLContext context, TemporaryFolder temporaryFolder, CacheRule cacheRule) throws Exception {
    IntrospectService introspectCache = KnowledgeCacheHelper.buildKnowledgeCache(temporaryFolder, cacheRule);
    I_KnowledgeCache knowledge = introspectCache.getKnowledge();
    return new DataAccess(context, knowledge, introspectCache, KnowledgeCacheHelper.buildServerConfig()) {

        @Override
        public DataAccess getDataAccess() {
            return this;
        }
    };
}
Also used : I_KnowledgeCache(org.ehrbase.ehr.knowledge.I_KnowledgeCache) IntrospectService(org.ehrbase.service.IntrospectService) DataAccess(org.ehrbase.dao.access.support.DataAccess)

Aggregations

DataAccess (org.ehrbase.dao.access.support.DataAccess)1 I_KnowledgeCache (org.ehrbase.ehr.knowledge.I_KnowledgeCache)1 IntrospectService (org.ehrbase.service.IntrospectService)1