Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java
index 9b5865d9b6b..9bbb96bd115 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ClientCachingServiceProxy.java
@@ -23,7 +23,6 @@ import org.eclipse.osee.framework.core.model.cache.RelationTypeCache;
import org.eclipse.osee.framework.core.model.cache.TransactionCache;
import org.eclipse.osee.framework.core.services.IOseeCachingService;
import org.eclipse.osee.framework.core.services.IOseeModelFactoryService;
-import org.eclipse.osee.framework.database.IOseeDatabaseService;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.skynet.core.internal.accessors.ClientArtifactTypeAccessor;
import org.eclipse.osee.framework.skynet.core.internal.accessors.ClientAttributeTypeAccessor;
@@ -31,6 +30,8 @@ import org.eclipse.osee.framework.skynet.core.internal.accessors.ClientOseeEnumT
import org.eclipse.osee.framework.skynet.core.internal.accessors.ClientRelationTypeAccessor;
import org.eclipse.osee.framework.skynet.core.internal.accessors.DatabaseBranchAccessor;
import org.eclipse.osee.framework.skynet.core.internal.accessors.DatabaseTransactionRecordAccessor;
+import org.eclipse.osee.jdbc.JdbcClient;
+import org.eclipse.osee.jdbc.JdbcService;
/**
* @author Roberto E. Escobar
@@ -38,7 +39,7 @@ import org.eclipse.osee.framework.skynet.core.internal.accessors.DatabaseTransac
public class ClientCachingServiceProxy implements IOseeCachingService {
private IOseeModelFactoryService modelFactory;
- private IOseeDatabaseService dbService;
+ private JdbcService jdbcService;
private IOseeCachingService proxiedService;
@@ -46,8 +47,8 @@ public class ClientCachingServiceProxy implements IOseeCachingService {
this.modelFactory = modelFactory;
}
- public void setDatabaseService(IOseeDatabaseService dbService) {
- this.dbService = dbService;
+ public void setJdbcService(JdbcService jdbcService) {
+ this.jdbcService = jdbcService;
}
public void start() {
@@ -115,14 +116,15 @@ public class ClientCachingServiceProxy implements IOseeCachingService {
}
private IOseeCachingService createService(IOseeModelFactoryService factory) {
+ JdbcClient jdbcClient = jdbcService.getClient();
TransactionCache transactionCache = new TransactionCache();
DatabaseBranchAccessor clientBranchAccessor =
- new DatabaseBranchAccessor(dbService, transactionCache, factory.getBranchFactory());
+ new DatabaseBranchAccessor(jdbcClient, transactionCache, factory.getBranchFactory());
BranchCache branchCache = new BranchCache(clientBranchAccessor, transactionCache);
TransactionRecordFactory txFactory = factory.getTransactionFactory();
- transactionCache.setAccessor(new DatabaseTransactionRecordAccessor(dbService, branchCache, txFactory));
+ transactionCache.setAccessor(new DatabaseTransactionRecordAccessor(jdbcClient, branchCache, txFactory));
OseeEnumTypeCache oseeEnumTypeCache =
new OseeEnumTypeCache(new ClientOseeEnumTypeAccessor(factory.getOseeEnumTypeFactory()));

Back to the top