You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2015/09/10 14:07:38 UTC

[39/50] [abbrv] isis git commit: ISIS-1194: inlined PersistenceSession#getInstancesFromPersistenceLayer

ISIS-1194: inlined PersistenceSession#getInstancesFromPersistenceLayer


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/7a1d8862
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/7a1d8862
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/7a1d8862

Branch: refs/heads/ISIS-1194
Commit: 7a1d8862e51ef5573e788c341104f0e0b3a21956
Parents: 853114d
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Sep 10 10:12:34 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Sep 10 10:12:34 2015 +0100

----------------------------------------------------------------------
 .../core/runtime/system/persistence/PersistenceSession.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/7a1d8862/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
index 479dfab..365c8c4 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
@@ -456,10 +456,6 @@ public class PersistenceSession implements TransactionalResource, SessionScopedC
         if (LOG.isDebugEnabled()) {
             LOG.debug("getInstances matching " + persistenceQuery);
         }
-        return getInstancesFromPersistenceLayer(persistenceQuery);
-    }
-
-    private List<ObjectAdapter> getInstancesFromPersistenceLayer(final PersistenceQuery persistenceQuery) {
         return getTransactionManager().executeWithinTransaction(
                 new TransactionalClosureWithReturn<List<ObjectAdapter>>() {
                     @Override
@@ -477,6 +473,7 @@ public class PersistenceSession implements TransactionalResource, SessionScopedC
                     }
                 });
     }
+
     //endregion
 
     @SuppressWarnings("unchecked")