polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soelvs...@apache.org
Subject [1/2] zest-java git commit: removed ModuleEntityStoreUnitOfWork, added EntityStoreSPI#versionOf
Date Wed, 26 Aug 2015 20:04:36 GMT
Repository: zest-java
Updated Branches:
  refs/heads/module_entitystore_uow [created] 587c43d7d


removed ModuleEntityStoreUnitOfWork, added EntityStoreSPI#versionOf


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/698f3925
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/698f3925
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/698f3925

Branch: refs/heads/module_entitystore_uow
Commit: 698f392509533507845f8822b7bb67234965218b
Parents: 1c1286a
Author: Kent Sølvsten <soelvsten@apache.org>
Authored: Wed Aug 26 22:01:21 2015 +0200
Committer: Kent Sølvsten <soelvsten@apache.org>
Committed: Wed Aug 26 22:01:21 2015 +0200

----------------------------------------------------------------------
 .../ModuleEntityStoreUnitOfWork.java            | 85 --------------------
 1 file changed, 85 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/698f3925/core/spi/src/main/java/org/apache/zest/spi/entitystore/ModuleEntityStoreUnitOfWork.java
----------------------------------------------------------------------
diff --git a/core/spi/src/main/java/org/apache/zest/spi/entitystore/ModuleEntityStoreUnitOfWork.java
b/core/spi/src/main/java/org/apache/zest/spi/entitystore/ModuleEntityStoreUnitOfWork.java
deleted file mode 100644
index 609390e..0000000
--- a/core/spi/src/main/java/org/apache/zest/spi/entitystore/ModuleEntityStoreUnitOfWork.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*    http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.zest.spi.entitystore;
-
-import org.apache.zest.api.entity.EntityDescriptor;
-import org.apache.zest.api.entity.EntityReference;
-import org.apache.zest.api.usecase.Usecase;
-import org.apache.zest.spi.entity.EntityState;
-import org.apache.zest.spi.module.ModuleSpi;
-
-public class ModuleEntityStoreUnitOfWork
-    implements EntityStoreUnitOfWork
-{
-    private final ModuleSpi module;
-    private final EntityStoreUnitOfWork underlying;
-
-    public ModuleEntityStoreUnitOfWork( ModuleSpi module, EntityStoreUnitOfWork underlying
)
-    {
-        this.module = module;
-        this.underlying = underlying;
-    }
-
-    public ModuleSpi module()
-    {
-        return module;
-    }
-
-    @Override
-    public String identity()
-    {
-        return underlying.identity();
-    }
-
-    @Override
-    public long currentTime()
-    {
-        return underlying.currentTime();
-    }
-
-    @Override
-    public EntityState newEntityState( ModuleSpi module, EntityReference reference, EntityDescriptor
descriptor )
-        throws EntityStoreException
-    {
-        return underlying.newEntityState( module, reference, descriptor );
-    }
-
-    @Override
-    public EntityState entityStateOf( ModuleSpi module, EntityReference reference )
-        throws EntityStoreException, EntityNotFoundException
-    {
-        return underlying.entityStateOf( module, reference );
-    }
-
-    @Override
-    public StateCommitter applyChanges()
-        throws EntityStoreException
-    {
-        return underlying.applyChanges();
-    }
-
-    @Override
-    public void discard()
-    {
-        underlying.discard();
-    }
-
-    public Usecase usecase()
-    {
-        return underlying.usecase();
-    }
-}


Mime
View raw message